aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-06-13 18:14:04 +0000
committerRichard M. Stallman1993-06-13 18:14:04 +0000
commit5293b432788bfc3875d4fec1b776f84a7b692d43 (patch)
treeefb913ef0d5cd756f82f37275c26089432a3e069 /lib-src
parent136284159eb7c841afb4c1678b9616d78bd96e8a (diff)
downloademacs-5293b432788bfc3875d4fec1b776f84a7b692d43.tar.gz
emacs-5293b432788bfc3875d4fec1b776f84a7b692d43.zip
(CPP_CFLAGS): New variable.
Use it instead of ALL_CFLAGS when compiling a .c file. (getopt.o, getopt1.o): Add explicit compilation commands.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/Makefile.in55
1 files changed, 31 insertions, 24 deletions
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in
index 0cdc6747c0f..c42b6252041 100644
--- a/lib-src/Makefile.in
+++ b/lib-src/Makefile.in
@@ -106,8 +106,13 @@ SOURCES = COPYING ChangeLog Makefile.in README aixcc.lex emacs.csh \
106### the information in ../src/config.h. 106### the information in ../src/config.h.
107ALL_CFLAGS = ${C_SWITCH_SYSTEM} -Demacs -DHAVE_CONFIG_H \ 107ALL_CFLAGS = ${C_SWITCH_SYSTEM} -Demacs -DHAVE_CONFIG_H \
108 -I${srcdir} -I${srcdir}/../src -I. -I../src ${CFLAGS} 108 -I${srcdir} -I${srcdir}/../src -I. -I../src ${CFLAGS}
109CPP_CFLAGS = ${C_SWITCH_SYSTEM} -Demacs -DHAVE_CONFIG_H \
110 -I${srcdir} -I${srcdir}/../src -I. -I../src ${CPPFLAGS} ${CFLAGS}
111# This is the default compilation command.
112# But we should never rely on it, because some make version
113# failed to find it for getopt.o. Using an explicit command made it work.
109.c.o: 114.c.o:
110 ${CC} -c ${CPPFLAGS} ${ALL_CFLAGS} $< 115 ${CC} -c ${CPP_CFLAGS} $<
111 116
112all: ${UTILITIES} ${INSTALLABLES} 117all: ${UTILITIES} ${INSTALLABLES}
113 118
@@ -194,89 +199,91 @@ test-distrib: ${srcdir}/test-distrib.c
194GETOPTOBJS = getopt.o getopt1.o $(ALLOCA) 199GETOPTOBJS = getopt.o getopt1.o $(ALLOCA)
195GETOPTDEPS = $(GETOPTOBJS) ${srcdir}/getopt.h 200GETOPTDEPS = $(GETOPTOBJS) ${srcdir}/getopt.h
196getopt.o: ${srcdir}/getopt.c ${srcdir}/getopt.h 201getopt.o: ${srcdir}/getopt.c ${srcdir}/getopt.h
202 ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt.c
197getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h 203getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h
204 ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt1.c
198 205
199etags: ${srcdir}/etags.c $(GETOPTDEPS) 206etags: ${srcdir}/etags.c $(GETOPTDEPS)
200 $(CC) ${ALL_CFLAGS} -DETAGS ${srcdir}/etags.c $(GETOPTOBJS) $(LOADLIBES) -o etags 207 $(CC) ${CPP_CFLAGS} -DETAGS ${srcdir}/etags.c $(GETOPTOBJS) $(LOADLIBES) -o etags
201 208
202ctags: ${srcdir}/etags.c $(GETOPTDEPS) 209ctags: ${srcdir}/etags.c $(GETOPTDEPS)
203 $(CC) ${ALL_CFLAGS} -DCTAGS ${srcdir}/etags.c $(GETOPTOBJS) $(LOADLIBES) -o ctags 210 $(CC) ${CPP_CFLAGS} -DCTAGS ${srcdir}/etags.c $(GETOPTOBJS) $(LOADLIBES) -o ctags
204 211
205wakeup: ${srcdir}/wakeup.c 212wakeup: ${srcdir}/wakeup.c
206 $(CC) ${ALL_CFLAGS} ${srcdir}/wakeup.c $(LOADLIBES) -o wakeup 213 $(CC) ${CPP_CFLAGS} ${srcdir}/wakeup.c $(LOADLIBES) -o wakeup
207 214
208make-docfile: ${srcdir}/make-docfile.c 215make-docfile: ${srcdir}/make-docfile.c
209 $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) -o make-docfile 216 $(CC) ${CPP_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) -o make-docfile
210 217
211digest-doc: ${srcdir}/digest-doc.c 218digest-doc: ${srcdir}/digest-doc.c
212 $(CC) ${ALL_CFLAGS} ${srcdir}/digest-doc.c $(LOADLIBES) -o digest-doc 219 $(CC) ${CPP_CFLAGS} ${srcdir}/digest-doc.c $(LOADLIBES) -o digest-doc
213 220
214sorted-doc: ${srcdir}/sorted-doc.c ${ALLOCA} 221sorted-doc: ${srcdir}/sorted-doc.c ${ALLOCA}
215 $(CC) ${ALL_CFLAGS} ${srcdir}/sorted-doc.c ${ALLOCA} $(LOADLIBES) -o sorted-doc 222 $(CC) ${CPP_CFLAGS} ${srcdir}/sorted-doc.c ${ALLOCA} $(LOADLIBES) -o sorted-doc
216 223
217b2m: ${srcdir}/b2m.c ../src/config.h 224b2m: ${srcdir}/b2m.c ../src/config.h
218 $(CC) -I${srcdir}/../src ${ALL_CFLAGS} ${srcdir}/b2m.c $(LOADLIBES) -o b2m 225 $(CC) -I${srcdir}/../src ${CPP_CFLAGS} ${srcdir}/b2m.c $(LOADLIBES) -o b2m
219 226
220movemail: ${srcdir}/movemail.c ../src/config.h 227movemail: ${srcdir}/movemail.c ../src/config.h
221 $(CC) -I${srcdir}/../src ${ALL_CFLAGS} ${srcdir}/movemail.c $(LOADLIBES) -o movemail 228 $(CC) -I${srcdir}/../src ${CPP_CFLAGS} ${srcdir}/movemail.c $(LOADLIBES) -o movemail
222 229
223cvtmail: ${srcdir}/cvtmail.c 230cvtmail: ${srcdir}/cvtmail.c
224 $(CC) ${ALL_CFLAGS} ${srcdir}/cvtmail.c $(LOADLIBES) -o cvtmail 231 $(CC) ${CPP_CFLAGS} ${srcdir}/cvtmail.c $(LOADLIBES) -o cvtmail
225 232
226fakemail: ${srcdir}/fakemail.c ../src/config.h 233fakemail: ${srcdir}/fakemail.c ../src/config.h
227 $(CC) -I${srcdir}/../src ${ALL_CFLAGS} ${srcdir}/fakemail.c $(LOADLIBES) -o fakemail 234 $(CC) -I${srcdir}/../src ${CPP_CFLAGS} ${srcdir}/fakemail.c $(LOADLIBES) -o fakemail
228 235
229yow: ${srcdir}/yow.c ../src/paths.h 236yow: ${srcdir}/yow.c ../src/paths.h
230 $(CC) ${ALL_CFLAGS} ${srcdir}/yow.c $(LOADLIBES) -o yow 237 $(CC) ${CPP_CFLAGS} ${srcdir}/yow.c $(LOADLIBES) -o yow
231 238
232env: ${srcdir}/env.c ../src/config.h 239env: ${srcdir}/env.c ../src/config.h
233 $(CC) -DEMACS -I${srcdir}/../src ${ALL_CFLAGS} ${srcdir}/env.c $(LOADLIBES) -o env 240 $(CC) -DEMACS -I${srcdir}/../src ${CPP_CFLAGS} ${srcdir}/env.c $(LOADLIBES) -o env
234 241
235emacsserver: ${srcdir}/emacsserver.c ../src/config.h 242emacsserver: ${srcdir}/emacsserver.c ../src/config.h
236 $(CC) -I${srcdir}/../src ${ALL_CFLAGS} ${srcdir}/emacsserver.c $(LOADLIBES) -o emacsserver 243 $(CC) -I${srcdir}/../src ${CPP_CFLAGS} ${srcdir}/emacsserver.c $(LOADLIBES) -o emacsserver
237 244
238emacsclient: ${srcdir}/emacsclient.c ../src/config.h 245emacsclient: ${srcdir}/emacsclient.c ../src/config.h
239 $(CC) -I${srcdir}/../src ${ALL_CFLAGS} ${srcdir}/emacsclient.c $(LOADLIBES) -o emacsclient 246 $(CC) -I${srcdir}/../src ${CPP_CFLAGS} ${srcdir}/emacsclient.c $(LOADLIBES) -o emacsclient
240 247
241hexl: ${srcdir}/hexl.c 248hexl: ${srcdir}/hexl.c
242 $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl 249 $(CC) ${CPP_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl
243 250
244TIMEROBJS=getdate.o timer.o $(ALLOCA) 251TIMEROBJS=getdate.o timer.o $(ALLOCA)
245getdate.o: ${srcdir}/getdate.y ../src/config.h 252getdate.o: ${srcdir}/getdate.y ../src/config.h
246 ${YACC} ${YFLAGS} ${srcdir}/getdate.y 253 ${YACC} ${YFLAGS} ${srcdir}/getdate.y
247 $(CC) -I${srcdir}/../src $(ALL_CFLAGS) -c y.tab.c 254 $(CC) -I${srcdir}/../src $(CPP_CFLAGS) -c y.tab.c
248 mv y.tab.o getdate.o 255 mv y.tab.o getdate.o
249timer.o: ${srcdir}/timer.c ../src/config.h 256timer.o: ${srcdir}/timer.c ../src/config.h
250 $(CC) -c -I${srcdir}/../src $(ALL_CFLAGS) ${srcdir}/timer.c 257 $(CC) -c -I${srcdir}/../src $(CPP_CFLAGS) ${srcdir}/timer.c
251timer: ${TIMEROBJS} 258timer: ${TIMEROBJS}
252 $(CC) -I${srcdir}/../src $(ALL_CFLAGS) ${TIMEROBJS} $(LOADLIBES) -o timer 259 $(CC) -I${srcdir}/../src $(ALL_CFLAGS) ${TIMEROBJS} $(LOADLIBES) -o timer
253 260
254make-path: ${srcdir}/make-path.c 261make-path: ${srcdir}/make-path.c
255 $(CC) $(ALL_CFLAGS) ${srcdir}/make-path.c -o make-path 262 $(CC) $(CPP_CFLAGS) ${srcdir}/make-path.c -o make-path
256 263
257# These are NOT included in INSTALLABLES or UTILITIES. 264# These are NOT included in INSTALLABLES or UTILITIES.
258# See ../src/ymakefile. 265# See ../src/ymakefile.
259emacstool: ${srcdir}/emacstool.c 266emacstool: ${srcdir}/emacstool.c
260 $(CC) ${srcdir}/emacstool.c -o emacstool ${ALL_CFLAGS} \ 267 $(CC) ${srcdir}/emacstool.c -o emacstool ${CPP_CFLAGS} \
261 -lsuntool -lsunwindow -lpixrect $(LOADLIBES) 268 -lsuntool -lsunwindow -lpixrect $(LOADLIBES)
262 269
263# For SUN Japanese Language Environment 270# For SUN Japanese Language Environment
264nemacstool: ${srcdir}/emacstool.c 271nemacstool: ${srcdir}/emacstool.c
265 $(CC) -o nemacstool -DJLE ${ALL_CFLAGS} ${srcdir}/emacstool.c \ 272 $(CC) -o nemacstool -DJLE ${CPP_CFLAGS} ${srcdir}/emacstool.c \
266 -lsuntool -lmle -lsunwindow -lpixrect $(LOADLIBES) 273 -lsuntool -lmle -lsunwindow -lpixrect $(LOADLIBES)
267 274
268xvetool: ${srcdir}/emacstool.c 275xvetool: ${srcdir}/emacstool.c
269 $(CC) -o xvetool -DXVIEW ${ALL_CFLAGS} ${srcdir}/emacstool.c \ 276 $(CC) -o xvetool -DXVIEW ${CPP_CFLAGS} ${srcdir}/emacstool.c \
270 -lxview -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \ 277 -lxview -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \
271 $(LOADLIBES) 278 $(LOADLIBES)
272 279
273xveterm: ${srcdir}/emacstool.c 280xveterm: ${srcdir}/emacstool.c
274 $(CC) -o xveterm -DXVIEW -DTTERM ${ALL_CFLAGS} ${srcdir}/emacstool.c \ 281 $(CC) -o xveterm -DXVIEW -DTTERM ${CPP_CFLAGS} ${srcdir}/emacstool.c \
275 -lxview -lolgx -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \ 282 -lxview -lolgx -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \
276 $(LOADLIBES) 283 $(LOADLIBES)
277 284
278aixcc: ${srcdir}/aixcc.c 285aixcc: ${srcdir}/aixcc.c
279 $(CC) $(ALL_CFLAGS) -o aixcc ${srcdir}/aixcc.c 286 $(CC) $(CPP_CFLAGS) -o aixcc ${srcdir}/aixcc.c
280 287
281aixcc.c: ${srcdir}/aixcc.lex 288aixcc.c: ${srcdir}/aixcc.lex
282 lex ${srcdir}/aixcc.lex 289 lex ${srcdir}/aixcc.lex