aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile.in
diff options
context:
space:
mode:
authorAdrian Robert2008-07-15 18:15:18 +0000
committerAdrian Robert2008-07-15 18:15:18 +0000
commitedfda78355c5528eee489fa8a7f9c73bf8e734f2 (patch)
tree78d2414d9791e1efc17ec9b35b438ae35602340a /src/Makefile.in
parent1391cd548782097e34d7856ec4f20ca90bdf2c26 (diff)
downloademacs-edfda78355c5528eee489fa8a7f9c73bf8e734f2.tar.gz
emacs-edfda78355c5528eee489fa8a7f9c73bf8e734f2.zip
merging Emacs.app (NeXTstep port)
Diffstat (limited to 'src/Makefile.in')
-rw-r--r--src/Makefile.in99
1 files changed, 85 insertions, 14 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index 9fc66979f25..123a49fca68 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -112,6 +112,11 @@ SHELL=/bin/sh
112#endif 112#endif
113#endif 113#endif
114 114
115/* Under GNUstep, putting libc on the link line causes problems. */
116#ifdef GNUSTEP
117#define LIB_STANDARD
118#endif
119
115/* Unless inhibited or changed, use -lg to link for debugging. */ 120/* Unless inhibited or changed, use -lg to link for debugging. */
116#ifndef LIBS_DEBUG 121#ifndef LIBS_DEBUG
117#define LIBS_DEBUG -lg 122#define LIBS_DEBUG -lg
@@ -229,6 +234,15 @@ STARTFILES = START_FILES
229#endif /* not ORDINARY_LINK */ 234#endif /* not ORDINARY_LINK */
230 235
231 236
237#ifdef GNUSTEP
238/* Pull in stuff from GNUstep-make. */
239FOUNDATION_LIB=gnu
240GUI_LIB=gnu
241include $(GNUSTEP_MAKEFILES)/Additional/base.make
242include $(GNUSTEP_MAKEFILES)/Additional/gui.make
243shared=no
244#endif
245
232#ifdef HAVE_DBUS 246#ifdef HAVE_DBUS
233DBUS_CFLAGS = @DBUS_CFLAGS@ 247DBUS_CFLAGS = @DBUS_CFLAGS@
234DBUS_LIBS = @DBUS_LIBS@ 248DBUS_LIBS = @DBUS_LIBS@
@@ -249,8 +263,11 @@ DBUS_OBJ = dbusbind.o
249/* C_SWITCH_X_SITE must come before C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM 263/* C_SWITCH_X_SITE must come before C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM
250 since it may have -I options that should override those two. */ 264 since it may have -I options that should override those two. */
251ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I${srcdir} C_SWITCH_MACHINE C_SWITCH_SYSTEM C_SWITCH_SITE C_SWITCH_X_SITE C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM C_SWITCH_SYSTEM_TEMACS ${CFLAGS_SOUND} ${RSVG_CFLAGS} ${DBUS_CFLAGS} ${CFLAGS} @FREETYPE_CFLAGS@ @FONTCONFIG_CFLAGS@ @LIBOTF_CFLAGS@ @M17N_FLT_CFLAGS@ 265ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I${srcdir} C_SWITCH_MACHINE C_SWITCH_SYSTEM C_SWITCH_SITE C_SWITCH_X_SITE C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM C_SWITCH_SYSTEM_TEMACS ${CFLAGS_SOUND} ${RSVG_CFLAGS} ${DBUS_CFLAGS} ${CFLAGS} @FREETYPE_CFLAGS@ @FONTCONFIG_CFLAGS@ @LIBOTF_CFLAGS@ @M17N_FLT_CFLAGS@
266.SUFFIXES: .m
252.c.o: 267.c.o:
253 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< 268 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
269.m.o:
270 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) GNU_OBJC_CFLAGS $<
254 271
255#ifndef LIBX11_SYSTEM 272#ifndef LIBX11_SYSTEM
256#define LIBX11_SYSTEM 273#define LIBX11_SYSTEM
@@ -260,13 +277,8 @@ ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I${srcdir} C_SWITCH_MACHIN
260#define LIB_X11_LIB -lX11 277#define LIB_X11_LIB -lX11
261#endif 278#endif
262 279
263/* xmenu.c should not be compiled on OSX. */
264#ifndef HAVE_CARBON
265XMENU_OBJ = xmenu.o
266#endif
267
268#ifdef HAVE_X_WINDOWS 280#ifdef HAVE_X_WINDOWS
269 281XMENU_OBJ = xmenu.o
270XOBJ= xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o 282XOBJ= xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o
271 283
272#ifdef HAVE_MENUS 284#ifdef HAVE_MENUS
@@ -518,6 +530,21 @@ emacsapp = $(PWD)/$(mac)Emacs.app/
518emacsappsrc = ${srcdir}/../mac/Emacs.app/ 530emacsappsrc = ${srcdir}/../mac/Emacs.app/
519#endif 531#endif
520 532
533#ifdef HAVE_NS
534/* Object files for NeXTstep */
535NS_OBJ= nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o \
536 fontset.o fringe.o image.o
537emacsapp = $(PWD)/../nextstep/build/Emacs.app/
538FONT_DRIVERS = nsfont.o
539#ifdef GNUSTEP
540emacsappsrc = ${srcdir}/../nextstep/GNUstep/Emacs.base
541emacsbindir = $(emacsapp)
542#else
543emacsappsrc = ${srcdir}/../nextstep/Cocoa/Emacs.base
544emacsbindir = $(emacsapp)/Contents/MacOS/
545#endif /* GNUSTEP */
546#endif /* HAVE_NS */
547
521#ifdef HAVE_WINDOW_SYSTEM 548#ifdef HAVE_WINDOW_SYSTEM
522#ifdef HAVE_X_WINDOWS 549#ifdef HAVE_X_WINDOWS
523#if defined (HAVE_XFT) 550#if defined (HAVE_XFT)
@@ -545,7 +572,7 @@ obj= dispnew.o frame.o scroll.o xdisp.o menu.o $(XMENU_OBJ) window.o \
545 process.o callproc.o \ 572 process.o callproc.o \
546 region-cache.o sound.o atimer.o \ 573 region-cache.o sound.o atimer.o \
547 doprnt.o strftime.o intervals.o textprop.o composite.o md5.o \ 574 doprnt.o strftime.o intervals.o textprop.o composite.o md5.o \
548 $(MSDOS_OBJ) $(MAC_OBJ) $(CYGWIN_OBJ) $(FONT_DRIVERS) 575 $(MSDOS_OBJ) $(MAC_OBJ) $(NS_OBJ) $(CYGWIN_OBJ) $(FONT_DRIVERS)
549 576
550/* Object files used on some machine or other. 577/* Object files used on some machine or other.
551 These go in the DOC file on all machines 578 These go in the DOC file on all machines
@@ -553,6 +580,7 @@ obj= dispnew.o frame.o scroll.o xdisp.o menu.o $(XMENU_OBJ) window.o \
553SOME_MACHINE_OBJECTS = dosfns.o msdos.o \ 580SOME_MACHINE_OBJECTS = dosfns.o msdos.o \
554 xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o fringe.o image.o \ 581 xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o fringe.o image.o \
555 mac.o macterm.o macfns.o macmenu.o macselect.o fontset.o \ 582 mac.o macterm.o macfns.o macmenu.o macselect.o fontset.o \
583 nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o \
556 w32.o w32console.o w32fns.o w32heap.o w32inevt.o \ 584 w32.o w32console.o w32fns.o w32heap.o w32inevt.o \
557 w32menu.o w32proc.o w32reg.o w32select.o w32term.o w32xfns.o $(FONT_DRIVERS) 585 w32menu.o w32proc.o w32reg.o w32select.o w32term.o w32xfns.o $(FONT_DRIVERS)
558 586
@@ -876,6 +904,7 @@ SOME_MACHINE_LISP = ../lisp/mouse.elc \
876 Note that SunOS needs -lm to come before -lc; otherwise, you get 904 Note that SunOS needs -lm to come before -lc; otherwise, you get
877 duplicated symbols. If the standard libraries were compiled 905 duplicated symbols. If the standard libraries were compiled
878 with GCC, we might need gnulib again after them. */ 906 with GCC, we might need gnulib again after them. */
907
879LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) $(RSVG_LIBS) $(DBUS_LIBS) \ 908LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) $(RSVG_LIBS) $(DBUS_LIBS) \
880 LIBGPM LIBRESOLV LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \ 909 LIBGPM LIBRESOLV LIBS_SYSTEM LIBS_MACHINE LIBS_TERMCAP \
881 LIBS_DEBUG $(GETLOADAVG_LIBS) \ 910 LIBS_DEBUG $(GETLOADAVG_LIBS) \
@@ -910,7 +939,10 @@ emacs${EXEEXT}: temacs${EXEEXT} ${etc}DOC ${lisp} ${SOME_MACHINE_LISP}
910 @: bootstrap-emacs, so let us replace it. 939 @: bootstrap-emacs, so let us replace it.
911 -ln -f emacs${EXEEXT} bootstrap-emacs${EXEEXT} 940 -ln -f emacs${EXEEXT} bootstrap-emacs${EXEEXT}
912#endif /* ! defined (CANNOT_DUMP) */ 941#endif /* ! defined (CANNOT_DUMP) */
942/* XXX: not working under NS currently due to path shenanigans.. */
943#ifndef HAVE_NS
913 -./emacs -q -batch -f list-load-path-shadows 944 -./emacs -q -batch -f list-load-path-shadows
945#endif
914 946
915/* We run make-docfile twice because the command line may get too long 947/* We run make-docfile twice because the command line may get too long
916 on some systems. */ 948 on some systems. */
@@ -935,9 +967,13 @@ ${libsrc}make-docfile${EXEEXT}:
935 967
936temacs${EXEEXT}: $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args${EXEEXT} 968temacs${EXEEXT}: $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args${EXEEXT}
937 echo "${obj} ${otherobj} " OBJECTS_MACHINE > buildobj.lst 969 echo "${obj} ${otherobj} " OBJECTS_MACHINE > buildobj.lst
970#ifdef GNUSTEP
971 $(CC) -rdynamic YMF_PASS_LDFLAGS (${TEMACS_LDFLAGS}) -o temacs ${obj} ${otherobj} OBJECTS_MACHINE ${LIBES}
972#else
938 $(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \ 973 $(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \
939 -o temacs ${STARTFILES} ${obj} ${otherobj} \ 974 -o temacs ${STARTFILES} ${obj} ${otherobj} \
940 OBJECTS_MACHINE ${LIBES} 975 OBJECTS_MACHINE ${LIBES}
976#endif
941 977
942/* We do not use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE 978/* We do not use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE
943 often contain options that have to do with using Emacs''s crt0, 979 often contain options that have to do with using Emacs''s crt0,
@@ -1080,7 +1116,7 @@ fontset.o: dispextern.h fontset.h fontset.c ccl.h buffer.h character.h \
1080getloadavg.o: getloadavg.c $(config_h) 1116getloadavg.o: getloadavg.c $(config_h)
1081image.o: image.c frame.h window.h dispextern.h blockinput.h atimer.h \ 1117image.o: image.c frame.h window.h dispextern.h blockinput.h atimer.h \
1082 systime.h xterm.h w32term.h w32gui.h macterm.h macgui.h font.h \ 1118 systime.h xterm.h w32term.h w32gui.h macterm.h macgui.h font.h \
1083 $(config_h) 1119 nsterm.h nsgui.h $(config_h)
1084indent.o: indent.c frame.h window.h indent.h buffer.h $(config_h) termchar.h \ 1120indent.o: indent.c frame.h window.h indent.h buffer.h $(config_h) termchar.h \
1085 termopts.h disptab.h region-cache.h character.h category.h composite.h \ 1121 termopts.h disptab.h region-cache.h character.h category.h composite.h \
1086 dispextern.h keyboard.h 1122 dispextern.h keyboard.h
@@ -1089,7 +1125,8 @@ insdel.o: insdel.c window.h buffer.h $(INTERVAL_SRC) blockinput.h character.h \
1089keyboard.o: keyboard.c termchar.h termhooks.h termopts.h buffer.h character.h \ 1125keyboard.o: keyboard.c termchar.h termhooks.h termopts.h buffer.h character.h \
1090 commands.h frame.h window.h macros.h disptab.h keyboard.h syssignal.h \ 1126 commands.h frame.h window.h macros.h disptab.h keyboard.h syssignal.h \
1091 systime.h dispextern.h syntax.h $(INTERVAL_SRC) blockinput.h \ 1127 systime.h dispextern.h syntax.h $(INTERVAL_SRC) blockinput.h \
1092 atimer.h xterm.h puresize.h msdos.h keymap.h w32term.h macterm.h $(config_h) 1128 atimer.h xterm.h puresize.h msdos.h keymap.h w32term.h macterm.h nsterm.h \
1129 $(config_h)
1093keymap.o: keymap.c buffer.h commands.h keyboard.h termhooks.h blockinput.h \ 1130keymap.o: keymap.c buffer.h commands.h keyboard.h termhooks.h blockinput.h \
1094 atimer.h systime.h puresize.h character.h intervals.h keymap.h window.h \ 1131 atimer.h systime.h puresize.h character.h intervals.h keymap.h window.h \
1095 $(config_h) 1132 $(config_h)
@@ -1155,15 +1192,15 @@ widget.o: widget.c xterm.h frame.h dispextern.h widgetprv.h \
1155window.o: window.c indent.h commands.h frame.h window.h buffer.h termchar.h \ 1192window.o: window.c indent.h commands.h frame.h window.h buffer.h termchar.h \
1156 disptab.h keyboard.h dispextern.h msdos.h composite.h \ 1193 disptab.h keyboard.h dispextern.h msdos.h composite.h \
1157 keymap.h blockinput.h atimer.h systime.h $(INTERVAL_SRC) \ 1194 keymap.h blockinput.h atimer.h systime.h $(INTERVAL_SRC) \
1158 xterm.h w32term.h macterm.h $(config_h) 1195 xterm.h w32term.h macterm.h nsterm.h $(config_h)
1159xdisp.o: xdisp.c macros.h commands.h process.h indent.h buffer.h dispextern.h \ 1196xdisp.o: xdisp.c macros.h commands.h process.h indent.h buffer.h dispextern.h \
1160 coding.h termchar.h frame.h window.h disptab.h termhooks.h character.h \ 1197 coding.h termchar.h frame.h window.h disptab.h termhooks.h character.h \
1161 charset.h $(config_h) keyboard.h $(INTERVAL_SRC) region-cache.h xterm.h \ 1198 charset.h $(config_h) keyboard.h $(INTERVAL_SRC) region-cache.h xterm.h \
1162 w32term.h macterm.h msdos.h composite.h fontset.h blockinput.h atimer.h \ 1199 w32term.h macterm.h nsterm.h msdos.h composite.h fontset.h blockinput.h \
1163 systime.h keymap.h font.h 1200 atimer.h systime.h keymap.h font.h
1164xfaces.o: xfaces.c dispextern.h frame.h xterm.h buffer.h blockinput.h \ 1201xfaces.o: xfaces.c dispextern.h frame.h xterm.h buffer.h blockinput.h \
1165 window.h character.h charset.h msdos.h dosfns.h composite.h atimer.h \ 1202 window.h character.h charset.h msdos.h dosfns.h composite.h atimer.h \
1166 systime.h keyboard.h fontset.h w32term.h macterm.h $(INTERVAL_SRC) \ 1203 systime.h keyboard.h fontset.h w32term.h macterm.h nsterm.h $(INTERVAL_SRC) \
1167 termchar.h termhooks.h font.h $(config_h) 1204 termchar.h termhooks.h font.h $(config_h)
1168xfns.o: xfns.c buffer.h frame.h window.h keyboard.h xterm.h dispextern.h \ 1205xfns.o: xfns.c buffer.h frame.h window.h keyboard.h xterm.h dispextern.h \
1169 $(srcdir)/../lwlib/lwlib.h blockinput.h atimer.h systime.h epaths.h \ 1206 $(srcdir)/../lwlib/lwlib.h blockinput.h atimer.h systime.h epaths.h \
@@ -1276,7 +1313,38 @@ macosx-app: macosx-bundle ${emacsapp}Contents/MacOS/Emacs
1276${emacsapp}Contents/MacOS/Emacs: emacs${EXEEXT} 1313${emacsapp}Contents/MacOS/Emacs: emacs${EXEEXT}
1277 mkdir -p ${emacsapp}Contents/MacOS/; 1314 mkdir -p ${emacsapp}Contents/MacOS/;
1278 cd ${emacsapp}Contents/MacOS/; cp ../../../../src/emacs${EXEEXT} Emacs${EXEEXT} 1315 cd ${emacsapp}Contents/MacOS/; cp ../../../../src/emacs${EXEEXT} Emacs${EXEEXT}
1279#endif 1316#endif /* HAVE_CARBON */
1317
1318#ifdef HAVE_NS
1319abbrev.o buffer.o callint.o cmds.o dispnew.o editfns.o fileio.o frame.o \
1320 fontset.o indent.o insdel.o keyboard.o macros.o minibuf.o msdos.o process.o \
1321 scroll.o sysdep.o term.o widget.o window.o xdisp.o xfaces.o xfns.o \
1322 xterm.o xselect.o sound.o: nsgui.h
1323nsfns.o: nsfns.m charset.h nsterm.h nsgui.h frame.h window.h buffer.h \
1324 dispextern.h nsgui.h fontset.h $(INTERVAL_SRC) keyboard.h blockinput.h \
1325 atimer.h systime.h epaths.h termhooks.h coding.h systime.h $(config_h)
1326nsmenu.o: nsmenu.m termhooks.h frame.h window.h dispextern.h \
1327 nsgui.h keyboard.h blockinput.h atimer.h systime.h buffer.h \
1328 nsterm.h $(config_h)
1329nsterm.o: nsterm.m blockinput.h atimer.h systime.h syssignal.h nsterm.h \
1330 nsgui.h frame.h charset.h ccl.h dispextern.h fontset.h termhooks.h \
1331 termopts.h termchar.h disptab.h buffer.h window.h keyboard.h \
1332 $(INTERVAL_SRC) process.h coding.h $(config_h)
1333nsselect.o: nsselect.m blockinput.h nsterm.h nsgui.h frame.h $(config_h)
1334nsimage.o: nsimage.m nsterm.h
1335nsfont.o: nsterm.h dispextern.h frame.h lisp.h $(config_h)
1336
1337${emacsapp}: ${emacsappsrc}
1338 mkdir -p ${emacsapp}
1339 ( cd ${emacsappsrc} ; tar cfh - . ) | ( cd ${emacsapp} ; tar xf - )
1340
1341${emacsbindir}Emacs: emacs${EXEEXT}
1342 mkdir -p ${emacsbindir}
1343 cp -f emacs${EXEEXT} ${emacsbindir}Emacs
1344
1345ns-app: ${emacsapp} ${emacsbindir}Emacs
1346
1347#endif /* HAVE_NS */
1280 1348
1281mostlyclean: 1349mostlyclean:
1282 rm -f temacs${EXEEXT} prefix-args${EXEEXT} core *.core \#* *.o libXMenu11.a liblw.a 1350 rm -f temacs${EXEEXT} prefix-args${EXEEXT} core *.core \#* *.o libXMenu11.a liblw.a
@@ -1285,6 +1353,9 @@ mostlyclean:
1285 rm -f buildobj.lst 1353 rm -f buildobj.lst
1286clean: mostlyclean 1354clean: mostlyclean
1287 rm -f emacs-*.*.*${EXEEXT} emacs${EXEEXT} 1355 rm -f emacs-*.*.*${EXEEXT} emacs${EXEEXT}
1356#ifdef GNUSTEP
1357 rm -f *.d
1358#endif
1288/* bootstrap-clean is used to clean up just before a bootstrap. 1359/* bootstrap-clean is used to clean up just before a bootstrap.
1289 It should remove all files generated during a compilation/bootstrap, 1360 It should remove all files generated during a compilation/bootstrap,
1290 but not things like config.status or TAGS. */ 1361 but not things like config.status or TAGS. */