diff options
| author | Richard M. Stallman | 1994-01-02 18:41:29 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-01-02 18:41:29 +0000 |
| commit | 3e883207fd8eb911c841ce05eea1236994e07cc0 (patch) | |
| tree | b4d3029bab5e20d54cfbdb96be275df8615d3cba /lib-src | |
| parent | 6fefdc4b48213f269c70b269b7bac93283a05056 (diff) | |
| download | emacs-3e883207fd8eb911c841ce05eea1236994e07cc0.tar.gz emacs-3e883207fd8eb911c841ce05eea1236994e07cc0.zip | |
(ALL_CFLAGS): Include LDFLAGS.
Use ALL_CFLAGS in all the rules that compile and link with one cmd.
(LINK_CFLAGS): New variable.
(timer): Use LINK_CFLAGS.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/Makefile.in | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index e9b6f5e9291..e48ff1c36ad 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in | |||
| @@ -98,7 +98,9 @@ SOURCES = COPYING ChangeLog Makefile.in README aixcc.lex emacs.csh \ | |||
| 98 | ### HAVE_CONFIG_H #defined before they know they can take advantage of | 98 | ### HAVE_CONFIG_H #defined before they know they can take advantage of |
| 99 | ### the information in ../src/config.h. | 99 | ### the information in ../src/config.h. |
| 100 | ALL_CFLAGS = ${C_SWITCH_SYSTEM} -Demacs -DHAVE_CONFIG_H \ | 100 | ALL_CFLAGS = ${C_SWITCH_SYSTEM} -Demacs -DHAVE_CONFIG_H \ |
| 101 | -I. -I../src -I${srcdir} -I${srcdir}/../src ${CFLAGS} | 101 | -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CPPFLAGS} ${CFLAGS} |
| 102 | LINK_CFLAGS = ${C_SWITCH_SYSTEM} -Demacs -DHAVE_CONFIG_H \ | ||
| 103 | -I. -I../src -I${srcdir} -I${srcdir}/../src ${LDFLAGS} ${CFLAGS} | ||
| 102 | CPP_CFLAGS = ${C_SWITCH_SYSTEM} -Demacs -DHAVE_CONFIG_H \ | 104 | CPP_CFLAGS = ${C_SWITCH_SYSTEM} -Demacs -DHAVE_CONFIG_H \ |
| 103 | -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS} | 105 | -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS} |
| 104 | # This is the default compilation command. | 106 | # This is the default compilation command. |
| @@ -186,51 +188,51 @@ getopt1.o: ${srcdir}/getopt1.c ${srcdir}/getopt.h | |||
| 186 | ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt1.c | 188 | ${CC} -c ${CPP_CFLAGS} ${srcdir}/getopt1.c |
| 187 | 189 | ||
| 188 | etags: ${srcdir}/etags.c $(GETOPTDEPS) ../src/config.h | 190 | etags: ${srcdir}/etags.c $(GETOPTDEPS) ../src/config.h |
| 189 | $(CC) ${CPP_CFLAGS} -DETAGS ${srcdir}/etags.c $(GETOPTOBJS) $(LOADLIBES) -o etags | 191 | $(CC) ${ALL_CFLAGS} -DETAGS ${srcdir}/etags.c $(GETOPTOBJS) $(LOADLIBES) -o etags |
| 190 | 192 | ||
| 191 | # We depend on etags to assure that parallel makes don't write two | 193 | # We depend on etags to assure that parallel makes don't write two |
| 192 | # etags.o files on top of each other. | 194 | # etags.o files on top of each other. |
| 193 | ctags: ${srcdir}/etags.c $(GETOPTDEPS) etags | 195 | ctags: ${srcdir}/etags.c $(GETOPTDEPS) etags |
| 194 | $(CC) ${CPP_CFLAGS} -DCTAGS ${srcdir}/etags.c $(GETOPTOBJS) $(LOADLIBES) -o ctags | 196 | $(CC) ${ALL_CFLAGS} -DCTAGS ${srcdir}/etags.c $(GETOPTOBJS) $(LOADLIBES) -o ctags |
| 195 | 197 | ||
| 196 | wakeup: ${srcdir}/wakeup.c | 198 | wakeup: ${srcdir}/wakeup.c |
| 197 | $(CC) ${CPP_CFLAGS} ${srcdir}/wakeup.c $(LOADLIBES) -o wakeup | 199 | $(CC) ${ALL_CFLAGS} ${srcdir}/wakeup.c $(LOADLIBES) -o wakeup |
| 198 | 200 | ||
| 199 | make-docfile: ${srcdir}/make-docfile.c | 201 | make-docfile: ${srcdir}/make-docfile.c |
| 200 | $(CC) ${CPP_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) -o make-docfile | 202 | $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) -o make-docfile |
| 201 | 203 | ||
| 202 | digest-doc: ${srcdir}/digest-doc.c | 204 | digest-doc: ${srcdir}/digest-doc.c |
| 203 | $(CC) ${CPP_CFLAGS} ${srcdir}/digest-doc.c $(LOADLIBES) -o digest-doc | 205 | $(CC) ${ALL_CFLAGS} ${srcdir}/digest-doc.c $(LOADLIBES) -o digest-doc |
| 204 | 206 | ||
| 205 | sorted-doc: ${srcdir}/sorted-doc.c ${ALLOCA} | 207 | sorted-doc: ${srcdir}/sorted-doc.c ${ALLOCA} |
| 206 | $(CC) ${CPP_CFLAGS} ${srcdir}/sorted-doc.c ${ALLOCA} $(LOADLIBES) -o sorted-doc | 208 | $(CC) ${ALL_CFLAGS} ${srcdir}/sorted-doc.c ${ALLOCA} $(LOADLIBES) -o sorted-doc |
| 207 | 209 | ||
| 208 | b2m: ${srcdir}/b2m.c ../src/config.h | 210 | b2m: ${srcdir}/b2m.c ../src/config.h |
| 209 | $(CC) ${CPP_CFLAGS} ${srcdir}/b2m.c $(LOADLIBES) -o b2m | 211 | $(CC) ${ALL_CFLAGS} ${srcdir}/b2m.c $(LOADLIBES) -o b2m |
| 210 | 212 | ||
| 211 | movemail: ${srcdir}/movemail.c ../src/config.h | 213 | movemail: ${srcdir}/movemail.c ../src/config.h |
| 212 | $(CC) ${CPP_CFLAGS} ${srcdir}/movemail.c $(LOADLIBES) -o movemail | 214 | $(CC) ${ALL_CFLAGS} ${srcdir}/movemail.c $(LOADLIBES) -o movemail |
| 213 | 215 | ||
| 214 | cvtmail: ${srcdir}/cvtmail.c | 216 | cvtmail: ${srcdir}/cvtmail.c |
| 215 | $(CC) ${CPP_CFLAGS} ${srcdir}/cvtmail.c $(LOADLIBES) -o cvtmail | 217 | $(CC) ${ALL_CFLAGS} ${srcdir}/cvtmail.c $(LOADLIBES) -o cvtmail |
| 216 | 218 | ||
| 217 | fakemail: ${srcdir}/fakemail.c ../src/config.h | 219 | fakemail: ${srcdir}/fakemail.c ../src/config.h |
| 218 | $(CC) ${CPP_CFLAGS} ${srcdir}/fakemail.c $(LOADLIBES) -o fakemail | 220 | $(CC) ${ALL_CFLAGS} ${srcdir}/fakemail.c $(LOADLIBES) -o fakemail |
| 219 | 221 | ||
| 220 | yow: ${srcdir}/yow.c ../src/paths.h | 222 | yow: ${srcdir}/yow.c ../src/paths.h |
| 221 | $(CC) ${CPP_CFLAGS} ${srcdir}/yow.c $(LOADLIBES) -o yow | 223 | $(CC) ${ALL_CFLAGS} ${srcdir}/yow.c $(LOADLIBES) -o yow |
| 222 | 224 | ||
| 223 | env: ${srcdir}/env.c ../src/config.h | 225 | env: ${srcdir}/env.c ../src/config.h |
| 224 | $(CC) -DEMACS ${CPP_CFLAGS} ${srcdir}/env.c $(LOADLIBES) -o env | 226 | $(CC) -DEMACS ${ALL_CFLAGS} ${srcdir}/env.c $(LOADLIBES) -o env |
| 225 | 227 | ||
| 226 | emacsserver: ${srcdir}/emacsserver.c ../src/config.h | 228 | emacsserver: ${srcdir}/emacsserver.c ../src/config.h |
| 227 | $(CC) ${CPP_CFLAGS} ${srcdir}/emacsserver.c $(LOADLIBES) -o emacsserver | 229 | $(CC) ${ALL_CFLAGS} ${srcdir}/emacsserver.c $(LOADLIBES) -o emacsserver |
| 228 | 230 | ||
| 229 | emacsclient: ${srcdir}/emacsclient.c ../src/config.h | 231 | emacsclient: ${srcdir}/emacsclient.c ../src/config.h |
| 230 | $(CC) ${CPP_CFLAGS} ${srcdir}/emacsclient.c $(LOADLIBES) -o emacsclient | 232 | $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c $(LOADLIBES) -o emacsclient |
| 231 | 233 | ||
| 232 | hexl: ${srcdir}/hexl.c | 234 | hexl: ${srcdir}/hexl.c |
| 233 | $(CC) ${CPP_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl | 235 | $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl |
| 234 | 236 | ||
| 235 | TIMEROBJS=getdate.o timer.o $(ALLOCA) | 237 | TIMEROBJS=getdate.o timer.o $(ALLOCA) |
| 236 | getdate.o: ${srcdir}/getdate.y ../src/config.h | 238 | getdate.o: ${srcdir}/getdate.y ../src/config.h |
| @@ -240,34 +242,34 @@ getdate.o: ${srcdir}/getdate.y ../src/config.h | |||
| 240 | timer.o: ${srcdir}/timer.c ../src/config.h | 242 | timer.o: ${srcdir}/timer.c ../src/config.h |
| 241 | $(CC) -c $(CPP_CFLAGS) ${srcdir}/timer.c | 243 | $(CC) -c $(CPP_CFLAGS) ${srcdir}/timer.c |
| 242 | timer: ${TIMEROBJS} | 244 | timer: ${TIMEROBJS} |
| 243 | $(CC) $(ALL_CFLAGS) ${TIMEROBJS} $(LOADLIBES) -o timer | 245 | $(CC) $(LINK_CFLAGS) ${TIMEROBJS} $(LOADLIBES) -o timer |
| 244 | 246 | ||
| 245 | make-path: ${srcdir}/make-path.c ../src/config.h | 247 | make-path: ${srcdir}/make-path.c ../src/config.h |
| 246 | $(CC) $(CPP_CFLAGS) ${srcdir}/make-path.c -o make-path | 248 | $(CC) $(ALL_CFLAGS) ${srcdir}/make-path.c -o make-path |
| 247 | 249 | ||
| 248 | # These are NOT included in INSTALLABLES or UTILITIES. | 250 | # These are NOT included in INSTALLABLES or UTILITIES. |
| 249 | # See ../src/ymakefile. | 251 | # See ../src/ymakefile. |
| 250 | emacstool: ${srcdir}/emacstool.c | 252 | emacstool: ${srcdir}/emacstool.c |
| 251 | $(CC) ${srcdir}/emacstool.c -o emacstool ${CPP_CFLAGS} \ | 253 | $(CC) ${srcdir}/emacstool.c -o emacstool ${ALL_CFLAGS} \ |
| 252 | -lsuntool -lsunwindow -lpixrect $(LOADLIBES) | 254 | -lsuntool -lsunwindow -lpixrect $(LOADLIBES) |
| 253 | 255 | ||
| 254 | # For SUN Japanese Language Environment | 256 | # For SUN Japanese Language Environment |
| 255 | nemacstool: ${srcdir}/emacstool.c | 257 | nemacstool: ${srcdir}/emacstool.c |
| 256 | $(CC) -o nemacstool -DJLE ${CPP_CFLAGS} ${srcdir}/emacstool.c \ | 258 | $(CC) -o nemacstool -DJLE ${ALL_CFLAGS} ${srcdir}/emacstool.c \ |
| 257 | -lsuntool -lmle -lsunwindow -lpixrect $(LOADLIBES) | 259 | -lsuntool -lmle -lsunwindow -lpixrect $(LOADLIBES) |
| 258 | 260 | ||
| 259 | xvetool: ${srcdir}/emacstool.c | 261 | xvetool: ${srcdir}/emacstool.c |
| 260 | $(CC) -o xvetool -DXVIEW ${CPP_CFLAGS} ${srcdir}/emacstool.c \ | 262 | $(CC) -o xvetool -DXVIEW ${ALL_CFLAGS} ${srcdir}/emacstool.c \ |
| 261 | -lxview -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \ | 263 | -lxview -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \ |
| 262 | $(LOADLIBES) | 264 | $(LOADLIBES) |
| 263 | 265 | ||
| 264 | xveterm: ${srcdir}/emacstool.c | 266 | xveterm: ${srcdir}/emacstool.c |
| 265 | $(CC) -o xveterm -DXVIEW -DTTERM ${CPP_CFLAGS} ${srcdir}/emacstool.c \ | 267 | $(CC) -o xveterm -DXVIEW -DTTERM ${ALL_CFLAGS} ${srcdir}/emacstool.c \ |
| 266 | -lxview -lolgx -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \ | 268 | -lxview -lolgx -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \ |
| 267 | $(LOADLIBES) | 269 | $(LOADLIBES) |
| 268 | 270 | ||
| 269 | aixcc: ${srcdir}/aixcc.c | 271 | aixcc: ${srcdir}/aixcc.c |
| 270 | $(CC) $(CPP_CFLAGS) -o aixcc ${srcdir}/aixcc.c | 272 | $(CC) $(ALL_CFLAGS) -o aixcc ${srcdir}/aixcc.c |
| 271 | 273 | ||
| 272 | aixcc.c: ${srcdir}/aixcc.lex | 274 | aixcc.c: ${srcdir}/aixcc.lex |
| 273 | lex ${srcdir}/aixcc.lex | 275 | lex ${srcdir}/aixcc.lex |