equal
deleted
inserted
replaced
62 # a <TODO> mark) |
62 # a <TODO> mark) |
63 # RELEASE: this will be the released version number. It replaces all places |
63 # RELEASE: this will be the released version number. It replaces all places |
64 # where it normally would print the revision number |
64 # where it normally would print the revision number |
65 # MIDI: if set, it will use it as custom path to midi player. |
65 # MIDI: if set, it will use it as custom path to midi player. |
66 # If unset, it will use the hardcoded path in the c code |
66 # If unset, it will use the hardcoded path in the c code |
67 # VERBOSE: actually show the commands used for compilation. |
|
68 # WITH_NETWORK: enable networking |
67 # WITH_NETWORK: enable networking |
69 # DEDICATED: allows compilation on UNIX without SDL. Useful for dedicated servers |
68 # DEDICATED: allows compilation on UNIX without SDL. Useful for dedicated servers |
70 # |
69 # |
71 # Paths: |
70 # Paths: |
72 # INSTALL: If not set, the game uses the directory of the binary to |
71 # INSTALL: If not set, the game uses the directory of the binary to |
717 @$(CC) $(BASECFLAGS) $(CDEFS) endian_check.c -o $@ |
716 @$(CC) $(BASECFLAGS) $(CDEFS) endian_check.c -o $@ |
718 |
717 |
719 |
718 |
720 $(TTD): table/strings.h $(ttd_OBJS) $(MAKE_CONFIG) |
719 $(TTD): table/strings.h $(ttd_OBJS) $(MAKE_CONFIG) |
721 @echo '===> Linking $@' |
720 @echo '===> Linking $@' |
722 @$(if $(VERBOSE), echo '$(C_LINK) $@ $(TTDLDFLAGS) $(ttd_OBJS) $(LIBS)') |
|
723 @$(C_LINK) $@ $(TTDLDFLAGS) $(ttd_OBJS) $(LIBS) |
721 @$(C_LINK) $@ $(TTDLDFLAGS) $(ttd_OBJS) $(LIBS) |
724 |
722 |
725 $(OSX): $(TTD) |
723 $(OSX): $(TTD) |
726 @rm -fr "$(OSXAPP)" |
724 @rm -fr "$(OSXAPP)" |
727 @mkdir -p "$(OSXAPP)"/Contents/MacOS |
725 @mkdir -p "$(OSXAPP)"/Contents/MacOS |
932 # therefore we do not need to watch deps. |
930 # therefore we do not need to watch deps. |
933 |
931 |
934 |
932 |
935 %.o: %.c $(MAKE_CONFIG) endian.h table/strings.h |
933 %.o: %.c $(MAKE_CONFIG) endian.h table/strings.h |
936 @echo '===> Compiling $<' |
934 @echo '===> Compiling $<' |
937 @$(if $(VERBOSE), echo '$(C_BUILD) $<') |
|
938 @$(C_BUILD) $< -Wp,-MD,.deps/$(*F).pp |
935 @$(C_BUILD) $< -Wp,-MD,.deps/$(*F).pp |
939 @-cp .deps/$(*F).pp .deps/$(*F).P; \ |
936 @-cp .deps/$(*F).pp .deps/$(*F).P; \ |
940 tr ' ' '\012' < .deps/$(*F).pp \ |
937 tr ' ' '\012' < .deps/$(*F).pp \ |
941 | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ |
938 | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ |
942 >> .deps/$(*F).P; \ |
939 >> .deps/$(*F).P; \ |
944 |
941 |
945 # For DirectMusic build and BeOS specific parts |
942 # For DirectMusic build and BeOS specific parts |
946 %.o: %.cpp $(MAKE_CONFIG) endian.h table/strings.h |
943 %.o: %.cpp $(MAKE_CONFIG) endian.h table/strings.h |
947 @echo '===> Compiling $<' |
944 @echo '===> Compiling $<' |
948 @$(CXX_BUILD) $< -o $@ |
945 @$(CXX_BUILD) $< -o $@ |
|
946 |
|
947 |
|
948 info: |
|
949 @echo 'CFLAGS = $(CFLAGS)' |
|
950 @echo 'LDFLAGS = $(LDFLAGS)' |
|
951 @echo 'LIBS = $(LIBS)' |