344 |
344 |
345 ifdef OSX |
345 ifdef OSX |
346 # these compilerflags makes the app run as fast as possible without making the app unstable. It works on G3 or newer |
346 # these compilerflags makes the app run as fast as possible without making the app unstable. It works on G3 or newer |
347 BASECFLAGS += -O3 -funroll-loops -fsched-interblock -falign-loops=16 -falign-jumps=16 -falign-functions=16 -falign-jumps-max-skip=15 -falign-loops-max-skip=15 -mdynamic-no-pic |
347 BASECFLAGS += -O3 -funroll-loops -fsched-interblock -falign-loops=16 -falign-jumps=16 -falign-functions=16 -falign-jumps-max-skip=15 -falign-loops-max-skip=15 -mdynamic-no-pic |
348 ifdef IS_G5 |
348 ifdef IS_G5 |
349 BASECFLAGS += -mtune=970 -mcpu=970 -mpowerpc-gpopt |
349 ifndef UNIVERSAL_BINARY |
|
350 BASECFLAGS += $(G5_FLAGS) |
|
351 endif |
350 endif |
352 endif |
351 else |
353 else |
352 ifdef MORPHOS |
354 ifdef MORPHOS |
353 BASECFLAGS += -I/gg/os-include -O2 -noixemul -fstrict-aliasing -fexpensive-optimizations |
355 BASECFLAGS += -I/gg/os-include -O2 -noixemul -fstrict-aliasing -fexpensive-optimizations |
354 BASECFLAGS += -mcpu=604 -fno-inline -mstring -mmultiple |
356 BASECFLAGS += -mcpu=604 -fno-inline -mstring -mmultiple |
993 .deps/%.d: %.m $(MAKE_CONFIG) table/strings.h endian_target.h |
995 .deps/%.d: %.m $(MAKE_CONFIG) table/strings.h endian_target.h |
994 @echo '===> DEP $<' |
996 @echo '===> DEP $<' |
995 $(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):#' > $@ |
996 |
998 |
997 |
999 |
|
1000 ifndef TRIPPLE_BINARY |
|
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 |
998 %.o: %.c $(MAKE_CONFIG) |
1003 %.o: %.c $(MAKE_CONFIG) |
999 @echo '===> Compiling $<' |
1004 @echo '===> Compiling $<' |
1000 $(Q)$(CC) $(CFLAGS) $(CDEFS) -c -o $@ $< |
1005 $(Q)$(CC) $(TARGET_CPU_FLAGS) $(CFLAGS) $(CDEFS) -c -o $@ $< |
1001 |
1006 |
1002 %.o: %.cpp $(MAKE_CONFIG) |
1007 %.o: %.cpp $(MAKE_CONFIG) |
1003 @echo '===> Compiling $<' |
1008 @echo '===> Compiling $<' |
1004 $(Q)$(CXX) $(CFLAGS) $(CDEFS) -c -o $@ $< |
1009 $(Q)$(CXX) $(TARGET_CPU_FLAGS) $(CFLAGS) $(CDEFS) -c -o $@ $< |
1005 |
1010 |
1006 %.o: %.m $(MAKE_CONFIG) |
1011 %.o: %.m $(MAKE_CONFIG) |
1007 @echo '===> Compiling $<' |
1012 @echo '===> Compiling $<' |
1008 $(Q)$(CC) $(CFLAGS) $(CDEFS) -c -o $@ $< |
1013 $(Q)$(CC) $(TARGET_CPU_FLAGS) $(CFLAGS) $(CDEFS) -c -o $@ $< |
|
1014 endif |
1009 |
1015 |
1010 %.o: %.rc |
1016 %.o: %.rc |
1011 @echo '===> Compiling resource $<' |
1017 @echo '===> Compiling resource $<' |
1012 $(Q)$(WINDRES) -o $@ $< |
1018 $(Q)$(WINDRES) -o $@ $< |
1013 |
1019 |