equal
deleted
inserted
replaced
41 # |
41 # |
42 # Summary of library choice defines |
42 # Summary of library choice defines |
43 # WITH_ZLIB: savegames using zlib |
43 # WITH_ZLIB: savegames using zlib |
44 # WITH_PNG: screenshots using PNG |
44 # WITH_PNG: screenshots using PNG |
45 # WITH_SDL: SDL video driver support |
45 # WITH_SDL: SDL video driver support |
|
46 # WITH_COCOA: Cocoa video driver support |
46 # |
47 # |
47 # Summary of other defines: |
48 # Summary of other defines: |
48 # MANUAL_CONFIG: do not use Makefile.config, config options set manually |
49 # MANUAL_CONFIG: do not use Makefile.config, config options set manually |
49 # DEBUG: build in debug mode |
50 # DEBUG: build in debug mode |
50 # PROFILE: build in profile mode, disables -s and -fomit-frame-pointer |
51 # PROFILE: build in profile mode, disables -s and -fomit-frame-pointer |
204 endif |
205 endif |
205 endif |
206 endif |
206 endif |
207 endif |
207 endif |
208 endif |
208 |
209 |
|
210 ifdef WITH_COCOA |
|
211 ifdef WITH_SDL |
|
212 $(error You can not use both the SDL video driver and the Cocoa video driver at the same time) |
|
213 endif |
|
214 ifdef DEDICATED |
|
215 $(error You can not use the Cocoa video driver in a dedicated server) |
|
216 endif |
|
217 else |
209 # Force SDL on UNIX platforms |
218 # Force SDL on UNIX platforms |
210 ifndef WITH_SDL |
219 ifndef WITH_SDL |
211 ifdef UNIX |
220 ifdef UNIX |
212 ifndef DEDICATED |
221 ifndef DEDICATED |
213 $(error You need to have SDL installed in order to run OpenTTD on UNIX. Use DEDICATED if you want to compile a CLI based server) |
222 $(error You need to have SDL installed in order to run OpenTTD on UNIX. Use DEDICATED if you want to compile a CLI based server) |
|
223 endif |
214 endif |
224 endif |
215 endif |
225 endif |
216 endif |
226 endif |
217 |
227 |
218 # remove the dependancy for sdl if DEDICALTED is used |
228 # remove the dependancy for sdl if DEDICALTED is used |
500 STRGEN_FLAGS=-t |
510 STRGEN_FLAGS=-t |
501 else |
511 else |
502 STRGEN_FLAGS= |
512 STRGEN_FLAGS= |
503 endif |
513 endif |
504 |
514 |
505 |
|
506 # OSX specific setup |
515 # OSX specific setup |
507 ifdef OSX |
516 ifdef OSX |
508 # set the endian flag for OSX, that can't fail |
517 # set the endian flag for OSX, that can't fail |
509 ENDIAN_FORCE:=PREPROCESSOR |
518 ENDIAN_FORCE:=PREPROCESSOR |
510 |
519 |
515 endif |
524 endif |
516 endif |
525 endif |
517 |
526 |
518 ifndef DEDICATED |
527 ifndef DEDICATED |
519 LIBS += -framework QuickTime |
528 LIBS += -framework QuickTime |
|
529 endif |
|
530 |
|
531 ifdef WITH_COCOA |
|
532 CDEFS += -DWITH_COCOA |
|
533 LIBS += -F/System/Library/Frameworks -framework Cocoa -framework Carbon -framework AudioUnit |
520 endif |
534 endif |
521 |
535 |
522 # OSX path setup |
536 # OSX path setup |
523 ifndef SECOND_DATA_PATH |
537 ifndef SECOND_DATA_PATH |
524 SECOND_DATA_PATH:="$(OSXAPP)/Contents/Data/" |
538 SECOND_DATA_PATH:="$(OSXAPP)/Contents/Data/" |
742 SRCS += unix.c |
756 SRCS += unix.c |
743 SRCS += music/extmidi.c |
757 SRCS += music/extmidi.c |
744 endif |
758 endif |
745 |
759 |
746 ifdef OSX |
760 ifdef OSX |
747 SRCS += os/macosx/macos.m |
761 SRCS += os/macosx/macos.m |
748 ifndef DEDICATED |
762 ifndef DEDICATED |
749 SRCS += music/qtmidi.c |
763 SRCS += music/qtmidi.c |
750 endif |
764 endif |
|
765 ifdef WITH_COCOA |
|
766 SRCS += video/cocoa_v.m |
|
767 SRCS += sound/cocoa_s.c |
|
768 SRCS += os/macosx/splash.c |
|
769 endif |
751 endif |
770 endif |
752 |
771 |
753 ifdef BEOS |
772 ifdef BEOS |
754 SRCS += music/bemidi.cpp |
773 SRCS += music/bemidi.cpp |
755 endif |
774 endif |