Makefile.src.in
changeset 5861 11c77d9df7fb
parent 5838 9c3129cb019b
child 5901 e2e5001f4390
equal deleted inserted replaced
5860:7fdc9b423ba1 5861:11c77d9df7fb
    58 	Q = @
    58 	Q = @
    59 	E = @echo
    59 	E = @echo
    60 endif
    60 endif
    61 
    61 
    62 # Our default target
    62 # Our default target
    63 all: $(TTD)
    63 all: $(BIN_DIR)/$(TTD)
    64 
    64 
    65 # This are 2 rules that are pointing back to STRGEN stuff.
    65 # This are 2 rules that are pointing back to STRGEN stuff.
    66 #  There is not really a need to have them here, but in case
    66 #  There is not really a need to have them here, but in case
    67 #  some weirdo wants to run 'make' in the 'src' dir and expects
    67 #  some weirdo wants to run 'make' in the 'src' dir and expects
    68 #  the languages to be recompiled, this catches that case and
    68 #  the languages to be recompiled, this catches that case and
   217 
   217 
   218 $(OBJS_RC): %.o: $(SRC_DIR)/%.rc $(FILE_DEP)
   218 $(OBJS_RC): %.o: $(SRC_DIR)/%.rc $(FILE_DEP)
   219 	$(E) '$(STAGE) Compiling resource $(<:$(SRC_DIR)/%.rc=%.rc)'
   219 	$(E) '$(STAGE) Compiling resource $(<:$(SRC_DIR)/%.rc=%.rc)'
   220 	$(Q)$(WINDRES) -o $@ -I $(MEDIA_DIR) $<
   220 	$(Q)$(WINDRES) -o $@ -I $(MEDIA_DIR) $<
   221 
   221 
       
   222 $(BIN_DIR)/$(TTD): $(TTD)
       
   223 	$(Q)cp $< $@
       
   224 
   222 $(TTD): rev.o $(OBJS) $(CONFIG_CACHE_LINKER)
   225 $(TTD): rev.o $(OBJS) $(CONFIG_CACHE_LINKER)
   223 	$(E) '$(STAGE) Linking $@'
   226 	$(E) '$(STAGE) Linking $@'
   224 	$(Q)$(CXX_HOST) $(LDFLAGS) rev.o $(OBJS) $(LIBS) -o $@
   227 	$(Q)$(CXX_HOST) $(LDFLAGS) rev.o $(OBJS) $(LIBS) -o $@
   225 ifdef STRIP
   228 ifdef STRIP
   226 	$(Q)$(STRIP) $@
   229 	$(Q)$(STRIP) $@
   227 endif
   230 endif
   228 	$(Q)cp $@ $(BIN_DIR)/
       
   229 
   231 
   230 # The targets to compile the endian-code
   232 # The targets to compile the endian-code
   231 
   233 
   232 endian_target.h: $(ENDIAN_CHECK) $(CONFIG_CACHE_ENDIAN)
   234 endian_target.h: $(ENDIAN_CHECK) $(CONFIG_CACHE_ENDIAN)
   233 	$(E) '$(STAGE) Testing endianness for target'
   235 	$(E) '$(STAGE) Testing endianness for target'