forked from franzinc/clim2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.defs
148 lines (107 loc) · 3.35 KB
/
Makefile.defs
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
#
# Makefile.defs for CLIM 2.0
# where to dump the CLIM images
CLIM = clim.dxl
SHARED_EXT = so
LISP = ../src/lispi$(exe)
DCL = dcli
# Set the case mode when building and dumping an image
# case_mode:
# ansi -- traditional case-insensitive upper-case CL
# modern -- case-sensitive lower-case CL
case_mode = modern
ifeq ($(case_mode),ansi)
CASE_MODE = :case-insensitive-upper
endif
ifeq ($(case_mode),modern)
CASE_MODE = :case-sensitive-lower
endif
ifndef CASE_MODE
..........................case_mode not defined or bad value...................
endif
# This controls whether patches are loaded before dumping an image.
# They should be loaded except during development
# load_patches:
# yes -- load them
# no -- don't load
load_patches = yes
ifeq ($(load_patches),no)
STOP_PATCHES = '(pushnew :clim-dont-load-patches *features*)'
endif
CL = $(LISP) -I $(DCL)
CLOPTS = -qq -batch -backtrace-on-error -locale japan.euc
RM = rm
CAT = cat
ECHO = echo
TAGS = etags
SHELL = sh
# Lisp optimization for compiling
SPEED ?= 3
SAFETY ?= 1
# This next should be set to 1 for distribution
DEBUG ?= 1
# Training
TRAIN_TIMES=1
# view, file, print
PSVIEW=:file
HPGLVIEW=:file
TRAIN_COMPILE=t
TRAIN_PROFILEP=t
TRAIN_BM=t
FRAME_TESTS=t
ifneq ($(OS_NAME),windows)
CFLAGS = -O -D_NO_PROTO -DSTRINGS_ALIGNED -DNO_REGEX -DNO_ISDIR \
-DUSE_RE_COMP -DUSER_GETWD
endif
# Used for tags
ALL_SRC = *.lisp */*.lisp *.cl */*.cl *.c */*.c *.h */*.h
# These are the files that make up the source code product.
PRODUCT_SRC_FILES = sys/*.lisp utils/*.lisp silica/*.lisp clim/*.lisp \
demo/*.lisp test/test-suite.lisp
ifneq ($(OS_NAME),windows)
# This has to be kept consistent with xlib/xlib-funs.lisp
UNDEFS=misc/undefinedsymbols
# This has to be kept consistent with tk/xt-funs.lisp
XT_UNDEFS=misc/undefinedsymbols.xt
# This has to be kept consistent with tk/xm-funs.lisp
XM_UNDEFS=misc/undefinedsymbols.motif
# This has to be kept consistent with tk/xm-classes.lisp
XMC_UNDEFS=misc/undefinedsymbols.cmotif
# This has to be kept consistent with tk/ol-funs.lisp
OL_UNDEFS=misc/undefinedsymbols.olit
# This has to be kept consistent with tk/ol-classes.lisp
OLC_UNDEFS=misc/undefinedsymbols.colit
# This has to be kept consistent with wnn/jl-funs.lisp
WNN_UNDEFS=misc/undefinedsymbols.wnn
# These are the fasls and the .o that form the product
PRODUCT-GENERIC-FASLS = \
climg.fasl climdemo.fasl clim-debug.fasl climps.fasl \
climhpgl.fasl # climgg.fasl
PRODUCT-XM-FASLS = climxm.fasl clim-debugxm.fasl
PRODUCT-OL-FASLS = climol.fasl clim-debugol.fasl
PRODUCT-WNN-FASLS = climwnn.fasl clim-debugwnn.fasl
PRODUCT-GENERIC-OBJS= \
stub-xt.o stub-x.o xtsupport.o xlibsupport.o
STATIC-XM-OBJS= stub-motif.o xmsupport.o
SHARED-XM-OBJS= climxm.$(SHARED_EXT)
STATIC-OL-OBJS= stub-olit.o olsupport.o
SHARED-OL-OBJS= climol.$(SHARED_EXT)
WNNLIB = libwnn.a
STATIC-WNN-OBJS=stub-wnn.o $(WNNLIB)
SYSTEM= motif-clim
PRODUCT-FASLS= $(PRODUCT-GENERIC-FASLS) $(PRODUCT-XM-FASLS)
PRODUCT-OBJS= $(PRODUCT-GENERIC-OBJS) $(STATIC-XM-OBJS)
ICS-PRODUCT-FASLS= $(PRODUCT-WNN-FASLS)
ICS-PRODUCT-OBJS= $(STATIC-WNN-OBJS)
else
# this is for Windows.
# I don't know if we need the other things too.
PRODUCT-GENERIC-FASLS = \
climg.fasl climdemo.fasl climps.fasl
PRODUCT-WIN32-FASLS = climnt.fasl
SYSTEM= aclnt-clim
PRODUCT-FASLS = $(PRODUCT-GENERIC-FASLS) $(PRODUCT-WIN32-FASLS)
endif
# not used anymore
make = xxx
BENCHMARK_FILE=nil