File: Imakefile

package info (click to toggle)
vnc4 4.1.1%2BX4.3.0-31
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 171,548 kB
  • ctags: 288,231
  • sloc: ansic: 2,205,256; cpp: 56,016; sh: 38,092; pascal: 13,773; asm: 12,656; tcl: 9,182; lisp: 7,831; perl: 3,338; makefile: 2,957; yacc: 2,902; objc: 2,698; xml: 2,614; python: 2,383; lex: 1,477; awk: 901; csh: 58; sed: 50
file content (125 lines) | stat: -rw-r--r-- 2,595 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
XCOMM $XFree86: xc/programs/xedit/lisp/Imakefile,v 1.22 2002/12/14 04:41:13 dawes Exp $

#include "lisp.cf"
#include "lisp.rules"

#define DoNormalLib	YES
#define DoSharedLib	NO
#define DoExtraLib	NO
#define DoDebugLib	NO
#define DoProfileLib	NO
#define LibName		lisp
#define LibInstall	NO
#define LibHeaders	NO

#if !HasSnprintf
#ifndef UseInstalled
LinkSourceFile(snprintf.c, $(LIBSRC)/misc)
#endif
  SNPRINTF_SRCS = snprintf.c
  SNPRINTF_OBJS = snprintf.o
#endif

#if defined(LynxOSArchitecture) || defined(SVR3Architecture) || defined(LinuxArchitecture)
#ifndef UseInstalled
LinkSourceFile(realpath.c, $(TOP)/programs/xedit)
#endif
        RP_SRCS = realpath.c
        RP_OBJS = realpath.o
     RP_DEFINES = -DNEED_REALPATH
#endif
#if !HasStrcasecmp
#ifndef UseInstalled
LinkSourceFile(strcasecmp.c, $(TOP)/programs/xedit)
#endif
   STRCCMP_SRCS = strcasecmp.c
   STRCCMP_OBJS = strcasecmp.o
STRCCMP_DEFINES = -DNEED_STRCASECMP
#endif
#if !HasSetenv
    SETENV_SRCS = env.c
    SETENV_OBJS = env.o
 SETENV_DEFINES = -DNEED_SETENV
#endif
       SYS_SRCS = $(RP_SRCS) $(STRCCMP_SRCS) $(SETENV_SRCS) $(SNPRINTF_SRCS)
       SYS_OBJS = $(RP_OBJS) $(STRCCMP_OBJS) $(SETENV_OBJS) $(SNPRINTF_OBJS)
    SYS_DEFINES = $(RP_DEFINES) $(STRCCMP_DEFINES) $(SETENV_DEFINES)

#define IHaveSubdirs
#define PassCDebugFlags CDEBUGFLAGS="$(CDEBUGFLAGS)"

LIB		= LibName
SAMP		= lsp
SAMPSRC		= lsp.c
SAMPOBJ		= lsp.o

SUBDIRS		= mp re modules

SRCS		= $(SYS_SRCS) \
		bytecode.c \
		core.c \
		debugger.c \
		format.c \
		hash.c \
		helper.c \
		io.c \
		lisp.c \
		math.c \
		package.c \
		pathname.c \
		read.c \
		regex.c \
		require.c \
		string.c \
		struct.c \
		stream.c \
		time.c \
		write.c \
		xedit.c
OBJS		= $(SYS_OBJS) \
		bytecode.o \
		core.o \
		debugger.o \
		format.o \
		hash.o \
		helper.o \
		io.o \
		lisp.o \
		math.o \
		package.o \
		pathname.o \
		read.o \
		regex.o \
		require.o \
		string.o \
		struct.o \
		stream.o \
		time.o \
		write.o \
		xedit.o

#include <Library.tmpl>

AllTarget(ProgramTargetName($(SAMP)))

#if BuildSharedLispModules
CCOPTIONS	= -fpic
DLLIB		= DlLibrary
LOCAL_LDFLAGS	= -Xlinker -E
SHARED_DEFINES	= -DSHARED_MODULES
#endif

        DEFINES = -DLISP $(SHARED_DEFINES) -DLISPDIR='"$(LISPDIR)"' \
		  $(SNPRINTF_DEFS) $(SYS_DEFINES) $(SIGNAL_DEFINES)
        DEPLIBS = mp re
       INCLUDES = -I. -Imp -Ire -I- $(MISC_INCLUDES)
LOCAL_LIBRARIES = -L. -llisp -Lmp -lmp -Lre -lre -lm $(DLLIB)

#ifdef IHaveSubdirs
ForceSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
#endif

DependTarget()

NormalProgramTarget($(SAMP),$(SAMPOBJ),$(DEPLIBS),$(LOCAL_LIBRARIES),)