diff options
| author | Richard M. Stallman | 1993-06-13 18:14:04 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-06-13 18:14:04 +0000 |
| commit | 5293b432788bfc3875d4fec1b776f84a7b692d43 (patch) | |
| tree | efb913ef0d5cd756f82f37275c26089432a3e069 /lib-src | |
| parent | 136284159eb7c841afb4c1678b9616d78bd96e8a (diff) | |
| download | emacs-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.in | 55 |
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. |
| 107 | ALL_CFLAGS = ${C_SWITCH_SYSTEM} -Demacs -DHAVE_CONFIG_H \ | 107 | ALL_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} |
| 109 | CPP_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 | ||
| 112 | all: ${UTILITIES} ${INSTALLABLES} | 117 | all: ${UTILITIES} ${INSTALLABLES} |
| 113 | 118 | ||
| @@ -194,89 +199,91 @@ test-distrib: ${srcdir}/test-distrib.c | |||
| 194 | GETOPTOBJS = getopt.o getopt1.o $(ALLOCA) | 199 | GETOPTOBJS = getopt.o getopt1.o $(ALLOCA) |
| 195 | GETOPTDEPS = $(GETOPTOBJS) ${srcdir}/getopt.h | 200 | GETOPTDEPS = $(GETOPTOBJS) ${srcdir}/getopt.h |
| 196 | getopt.o: ${srcdir}/getopt.c ${srcdir}/getopt.h | 201 | getopt.o: ${srcdir}/getopt.c ${srcdir}/getopt.h |
| 202 | ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt.c | ||
| 197 | getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h | 203 | getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h |
| 204 | ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt1.c | ||
| 198 | 205 | ||
| 199 | etags: ${srcdir}/etags.c $(GETOPTDEPS) | 206 | etags: ${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 | ||
| 202 | ctags: ${srcdir}/etags.c $(GETOPTDEPS) | 209 | ctags: ${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 | ||
| 205 | wakeup: ${srcdir}/wakeup.c | 212 | wakeup: ${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 | ||
| 208 | make-docfile: ${srcdir}/make-docfile.c | 215 | make-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 | ||
| 211 | digest-doc: ${srcdir}/digest-doc.c | 218 | digest-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 | ||
| 214 | sorted-doc: ${srcdir}/sorted-doc.c ${ALLOCA} | 221 | sorted-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 | ||
| 217 | b2m: ${srcdir}/b2m.c ../src/config.h | 224 | b2m: ${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 | ||
| 220 | movemail: ${srcdir}/movemail.c ../src/config.h | 227 | movemail: ${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 | ||
| 223 | cvtmail: ${srcdir}/cvtmail.c | 230 | cvtmail: ${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 | ||
| 226 | fakemail: ${srcdir}/fakemail.c ../src/config.h | 233 | fakemail: ${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 | ||
| 229 | yow: ${srcdir}/yow.c ../src/paths.h | 236 | yow: ${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 | ||
| 232 | env: ${srcdir}/env.c ../src/config.h | 239 | env: ${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 | ||
| 235 | emacsserver: ${srcdir}/emacsserver.c ../src/config.h | 242 | emacsserver: ${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 | ||
| 238 | emacsclient: ${srcdir}/emacsclient.c ../src/config.h | 245 | emacsclient: ${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 | ||
| 241 | hexl: ${srcdir}/hexl.c | 248 | hexl: ${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 | ||
| 244 | TIMEROBJS=getdate.o timer.o $(ALLOCA) | 251 | TIMEROBJS=getdate.o timer.o $(ALLOCA) |
| 245 | getdate.o: ${srcdir}/getdate.y ../src/config.h | 252 | getdate.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 |
| 249 | timer.o: ${srcdir}/timer.c ../src/config.h | 256 | timer.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 |
| 251 | timer: ${TIMEROBJS} | 258 | timer: ${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 | ||
| 254 | make-path: ${srcdir}/make-path.c | 261 | make-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. |
| 259 | emacstool: ${srcdir}/emacstool.c | 266 | emacstool: ${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 |
| 264 | nemacstool: ${srcdir}/emacstool.c | 271 | nemacstool: ${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 | ||
| 268 | xvetool: ${srcdir}/emacstool.c | 275 | xvetool: ${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 | ||
| 273 | xveterm: ${srcdir}/emacstool.c | 280 | xveterm: ${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 | ||
| 278 | aixcc: ${srcdir}/aixcc.c | 285 | aixcc: ${srcdir}/aixcc.c |
| 279 | $(CC) $(ALL_CFLAGS) -o aixcc ${srcdir}/aixcc.c | 286 | $(CC) $(CPP_CFLAGS) -o aixcc ${srcdir}/aixcc.c |
| 280 | 287 | ||
| 281 | aixcc.c: ${srcdir}/aixcc.lex | 288 | aixcc.c: ${srcdir}/aixcc.lex |
| 282 | lex ${srcdir}/aixcc.lex | 289 | lex ${srcdir}/aixcc.lex |