aboutsummaryrefslogtreecommitdiffstats
path: root/lib-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 /lib-src/Makefile.in
parent1391cd548782097e34d7856ec4f20ca90bdf2c26 (diff)
downloademacs-edfda78355c5528eee489fa8a7f9c73bf8e734f2.tar.gz
emacs-edfda78355c5528eee489fa8a7f9c73bf8e734f2.zip
merging Emacs.app (NeXTstep port)
Diffstat (limited to 'lib-src/Makefile.in')
-rw-r--r--lib-src/Makefile.in32
1 files changed, 32 insertions, 0 deletions
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in
index 08e83126b73..9b537ecfbea 100644
--- a/lib-src/Makefile.in
+++ b/lib-src/Makefile.in
@@ -144,6 +144,23 @@ MOVE_FLAGS=
144#define NOT_C_CODE 144#define NOT_C_CODE
145#include "../src/config.h" 145#include "../src/config.h"
146 146
147#if defined(COCOA)
148/* Build these programs as universal binaries. */
149CFLAGS := $(CFLAGS) -universal
150/* Add mac-fix-env for OS X systems running NS version. */
151INSTALLABLES = etags${EXEEXT} ctags${EXEEXT} emacsclient${EXEEXT} b2m${EXEEXT} ebrowse${EXEEXT} mac-fix-env${EXEEXT}
152#endif
153
154/* Some platforms that the GNUstep port runs on put strip options in
155 INSTALL_PROGRAM which cause errors. But, not being sure all other
156 platforms are setting this, we will only use the alternative
157 INSTALL_SCRIPT variable on GNUstep/Cocoa builds. */
158#ifndef HAVE_NS
159INSTALL_SCRIPT = @INSTALL_PROGRAM@
160#else
161INSTALL_SCRIPT = @INSTALL_SCRIPT@
162#endif
163
147/* Some machines don\'t find the standard C libraries in the usual place. */ 164/* Some machines don\'t find the standard C libraries in the usual place. */
148#ifndef ORDINARY_LINK 165#ifndef ORDINARY_LINK
149#ifndef LIB_STANDARD_LIBSRC 166#ifndef LIB_STANDARD_LIBSRC
@@ -253,12 +270,22 @@ CPP_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \
253BASE_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ 270BASE_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \
254 -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS} 271 -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS}
255 272
273.SUFFIXES: .m
274
256/* This is the default compilation command. 275/* This is the default compilation command.
257 But we should never rely on it, because some make version 276 But we should never rely on it, because some make version
258 failed to find it for getopt.o. 277 failed to find it for getopt.o.
259 Using an explicit command made it work. */ 278 Using an explicit command made it work. */
260.c.o: 279.c.o:
261 ${CC} -c ${CPP_CFLAGS} $< 280 ${CC} -c ${CPP_CFLAGS} $<
281#ifdef HAVE_NS
282.m.o:
283#ifdef GNUSTEP
284 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString $<
285#else
286 $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $<
287#endif
288#endif
262 289
263all: ${DONT_INSTALL} ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} 290all: ${DONT_INSTALL} ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}
264 291
@@ -455,3 +482,8 @@ update-game-score${EXEEXT}: update-game-score.o $(GETOPTDEPS)
455update-game-score.o: ${srcdir}/update-game-score.c ../src/config.h $(GETOPT_H) 482update-game-score.o: ${srcdir}/update-game-score.c ../src/config.h $(GETOPT_H)
456 $(CC) -c ${CPP_CFLAGS} ${srcdir}/update-game-score.c \ 483 $(CC) -c ${CPP_CFLAGS} ${srcdir}/update-game-score.c \
457 -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" 484 -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\""
485
486#if defined(COCOA)
487mac-fix-env: ${srcdir}/mac-fix-env.m
488 $(CC) -o mac-fix-env ${srcdir}/mac-fix-env.m -prebind -framework Foundation
489#endif