Makefile
changeset 3212 60517b6883c0
parent 3211 044f84240f65
child 3214 172b409bf612
equal deleted inserted replaced
3211:044f84240f65 3212:60517b6883c0
   105 # VERBOSE: show full compiler invocations instead of brief progress messages
   105 # VERBOSE: show full compiler invocations instead of brief progress messages
   106 #
   106 #
   107 # Special for crosscompiling there are some commands available:
   107 # Special for crosscompiling there are some commands available:
   108 #
   108 #
   109 # UNIVERSAL_BINARY: builds a universal binary for OSX. Make sure you got both PPC and x86 libs. Only works with GCC 4 or newer
   109 # UNIVERSAL_BINARY: builds a universal binary for OSX. Make sure you got both PPC and x86 libs. Only works with GCC 4 or newer
   110 # TRIPPLE_BINARY: builds a universal binary with the addition of code optimised for G5 (which means a total of 3 binaries in one file)
   110 # TRIPLE_BINARY: builds a universal binary with the addition of code optimised for G5 (which means a total of 3 binaries in one file)
   111 #
   111 #
   112 # JAGUAR: Crosscompiling for OSX 1.2.8 (codenamed Jaguar). Only works if OSX is defined too. Only works with GCC 4 or newer
   112 # JAGUAR: Crosscompiling for OSX 1.2.8 (codenamed Jaguar). Only works if OSX is defined too. Only works with GCC 4 or newer
   113 #	This can be changed to any PPC version of OSX by changing the ppc flags in Makefile.config
   113 #	This can be changed to any PPC version of OSX by changing the ppc flags in Makefile.config
   114 #
   114 #
   115 # ENDIAN_FORCE: forces the endian-check to give a certain result. Can be BE, LE or PREPROCESSOR.
   115 # ENDIAN_FORCE: forces the endian-check to give a certain result. Can be BE, LE or PREPROCESSOR.
   995 .deps/%.d: %.m $(MAKE_CONFIG) table/strings.h endian_target.h
   995 .deps/%.d: %.m $(MAKE_CONFIG) table/strings.h endian_target.h
   996 	@echo '===> DEP $<'
   996 	@echo '===> DEP $<'
   997 	$(Q)$(CC) $(OBJCFLAGS) $(CDEFS) -MM $< | sed 's#^$(@F:%.d=%.o):#$@ $(@:.deps/%.d=%.o):#' > $@
   997 	$(Q)$(CC) $(OBJCFLAGS) $(CDEFS) -MM $< | sed 's#^$(@F:%.d=%.o):#$@ $(@:.deps/%.d=%.o):#' > $@
   998 
   998 
   999 
   999 
  1000 ifndef TRIPPLE_BINARY
  1000 ifndef TRIPLE_BINARY
  1001 # building tripple binary object files is handled in os/macosx/Makefile
  1001 # building tripple binary object files is handled in os/macosx/Makefile
  1002 # TARGET_CPU_FLAGS is used to set target CPUs in OSX universal binaries. It's empty for all other builds
  1002 # TARGET_CPU_FLAGS is used to set target CPUs in OSX universal binaries. It's empty for all other builds
  1003 %.o: %.c $(MAKE_CONFIG)
  1003 %.o: %.c $(MAKE_CONFIG)
  1004 	@echo '===> Compiling $<'
  1004 	@echo '===> Compiling $<'
  1005 	$(Q)$(CC) $(TARGET_CPU_FLAGS) $(CFLAGS) $(CDEFS) -c -o $@ $<
  1005 	$(Q)$(CC) $(TARGET_CPU_FLAGS) $(CFLAGS) $(CDEFS) -c -o $@ $<