diff options
| author | Adrian Robert | 2008-07-15 18:15:18 +0000 |
|---|---|---|
| committer | Adrian Robert | 2008-07-15 18:15:18 +0000 |
| commit | edfda78355c5528eee489fa8a7f9c73bf8e734f2 (patch) | |
| tree | 78d2414d9791e1efc17ec9b35b438ae35602340a /lib-src/Makefile.in | |
| parent | 1391cd548782097e34d7856ec4f20ca90bdf2c26 (diff) | |
| download | emacs-edfda78355c5528eee489fa8a7f9c73bf8e734f2.tar.gz emacs-edfda78355c5528eee489fa8a7f9c73bf8e734f2.zip | |
merging Emacs.app (NeXTstep port)
Diffstat (limited to 'lib-src/Makefile.in')
| -rw-r--r-- | lib-src/Makefile.in | 32 |
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. */ | ||
| 149 | CFLAGS := $(CFLAGS) -universal | ||
| 150 | /* Add mac-fix-env for OS X systems running NS version. */ | ||
| 151 | INSTALLABLES = 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 | ||
| 159 | INSTALL_SCRIPT = @INSTALL_PROGRAM@ | ||
| 160 | #else | ||
| 161 | INSTALL_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 \ | |||
| 253 | BASE_CFLAGS = C_SWITCH_SYSTEM C_SWITCH_MACHINE -DHAVE_CONFIG_H \ | 270 | BASE_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 | ||
| 263 | all: ${DONT_INSTALL} ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} | 290 | all: ${DONT_INSTALL} ${UTILITIES} ${INSTALLABLES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} |
| 264 | 291 | ||
| @@ -455,3 +482,8 @@ update-game-score${EXEEXT}: update-game-score.o $(GETOPTDEPS) | |||
| 455 | update-game-score.o: ${srcdir}/update-game-score.c ../src/config.h $(GETOPT_H) | 482 | update-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) | ||
| 487 | mac-fix-env: ${srcdir}/mac-fix-env.m | ||
| 488 | $(CC) -o mac-fix-env ${srcdir}/mac-fix-env.m -prebind -framework Foundation | ||
| 489 | #endif | ||