equal
deleted
inserted
replaced
708 |
708 |
709 $(TTD): table/strings.h $(ttd_OBJS) $(MAKE_CONFIG) |
709 $(TTD): table/strings.h $(ttd_OBJS) $(MAKE_CONFIG) |
710 $(if $(VERBOSE),@echo '$(C_LINK) $@ $(TTDLDFLAGS) $(ttd_OBJS) $(LIBS)';,@echo 'Compiling and Linking $@';) \ |
710 $(if $(VERBOSE),@echo '$(C_LINK) $@ $(TTDLDFLAGS) $(ttd_OBJS) $(LIBS)';,@echo 'Compiling and Linking $@';) \ |
711 $(C_LINK) $@ $(TTDLDFLAGS) $(ttd_OBJS) $(LIBS) $(VERBOSE_FILTER) |
711 $(C_LINK) $@ $(TTDLDFLAGS) $(ttd_OBJS) $(LIBS) $(VERBOSE_FILTER) |
712 |
712 |
713 $(OSX): |
713 $(OSX): $(TTD) |
714 @rm -fr "$(OSXAPP)" |
714 @rm -fr "$(OSXAPP)" |
715 @mkdir -p "$(OSXAPP)"/Contents/MacOS |
715 @mkdir -p "$(OSXAPP)"/Contents/MacOS |
716 @mkdir -p "$(OSXAPP)"/Contents/Resources |
716 @mkdir -p "$(OSXAPP)"/Contents/Resources |
717 @mkdir -p "$(OSXAPP)"/Contents/Data |
717 @mkdir -p "$(OSXAPP)"/Contents/Data |
718 @mkdir -p "$(OSXAPP)"/Contents/Lang |
718 @mkdir -p "$(OSXAPP)"/Contents/Lang |
731 |
731 |
732 $(64_bit_warnings): |
732 $(64_bit_warnings): |
733 $(warning 64 bit CPUs will get some 64 bit specific bugs!) |
733 $(warning 64 bit CPUs will get some 64 bit specific bugs!) |
734 $(warning If you see any bugs, include in your bug report that you use a 64 bit CPU) |
734 $(warning If you see any bugs, include in your bug report that you use a 64 bit CPU) |
735 |
735 |
736 $(STRGEN): strgen/strgen.c |
736 $(STRGEN): strgen/strgen.c endian.h |
737 @echo 'Compiling and Linking $@'; \ |
737 @echo 'Compiling and Linking $@'; \ |
738 $(CC) $(BASECFLAGS) $(CDEFS) -o $@ $^ $(VERBOSE_FILTER) |
738 $(CC) $(BASECFLAGS) $(CDEFS) -o $@ $^ $(VERBOSE_FILTER) |
739 |
739 |
740 table/strings.h: lang/english.txt $(STRGEN) |
740 table/strings.h: lang/english.txt $(STRGEN) |
741 @echo 'Generating $@'; \ |
741 @echo 'Generating $@'; \ |
847 |
847 |
848 |
848 |
849 love: |
849 love: |
850 @echo "YES! I thought you would never ask. We will have a great time. You can keep me turned on all night" |
850 @echo "YES! I thought you would never ask. We will have a great time. You can keep me turned on all night" |
851 |
851 |
852 .PHONY: clean all $(OSX) install $(64_bit_warnings) $(endwarnings) love |
852 .PHONY: clean all $(OSX) install $(64_bit_warnings) $(endwarnings) love endian.h |
853 |
853 |
854 |
854 |
855 ### Automatic configuration |
855 ### Automatic configuration |
856 -include $(CONFIG_WRITER) |
856 -include $(CONFIG_WRITER) |
857 |
857 |
879 # therefore we do not need to watch deps. |
879 # therefore we do not need to watch deps. |
880 |
880 |
881 #@echo '$(C_BUILD) $<'; \ |
881 #@echo '$(C_BUILD) $<'; \ |
882 |
882 |
883 |
883 |
884 %.o: %.c $(MAKE_CONFIG) |
884 %.o: %.c $(MAKE_CONFIG) endian.h table/strings.h |
885 $(if $(VERBOSE),@echo '$(C_BUILD) $<',@echo 'Compiling $(*F).o'); \ |
885 $(if $(VERBOSE),@echo '$(C_BUILD) $<',@echo 'Compiling $(*F).o'); \ |
886 $(C_BUILD) $< -Wp,-MD,.deps/$(*F).pp $(VERBOSE_FILTER) |
886 $(C_BUILD) $< -Wp,-MD,.deps/$(*F).pp $(VERBOSE_FILTER) |
887 @-cp .deps/$(*F).pp .deps/$(*F).P; \ |
887 @-cp .deps/$(*F).pp .deps/$(*F).P; \ |
888 tr ' ' '\012' < .deps/$(*F).pp \ |
888 tr ' ' '\012' < .deps/$(*F).pp \ |
889 | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ |
889 | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ |
890 >> .deps/$(*F).P; \ |
890 >> .deps/$(*F).P; \ |
891 rm .deps/$(*F).pp |
891 rm .deps/$(*F).pp |
892 |
892 |
893 # For DirectMusic build and BeOS specific parts |
893 # For DirectMusic build and BeOS specific parts |
894 %.o: %.cpp $(MAKE_CONFIG) |
894 %.o: %.cpp $(MAKE_CONFIG) endian.h table/strings.h |
895 $(CXX_BUILD) $< -o $@ |
895 $(CXX_BUILD) $< -o $@ |