From: <Mee...@us...> - 2008-08-23 12:06:23
|
Revision: 3051 http://sc2.svn.sourceforge.net/sc2/?rev=3051&view=rev Author: Meep-Eep Date: 2008-08-23 12:06:16 +0000 (Sat, 23 Aug 2008) Log Message: ----------- Split off build tools specific definitions from Makefile.build. Modified Paths: -------------- trunk/sc2/Makefile.build Added Paths: ----------- trunk/sc2/build/unix/make/ trunk/sc2/build/unix/make/buildtools-armv5 trunk/sc2/build/unix/make/buildtools-generic trunk/sc2/build/unix/make/buildtools-winscw Modified: trunk/sc2/Makefile.build =================================================================== --- trunk/sc2/Makefile.build 2008-08-23 11:55:16 UTC (rev 3050) +++ trunk/sc2/Makefile.build 2008-08-23 12:06:16 UTC (rev 3051) @@ -17,31 +17,17 @@ endef endif -define act_mkdep_c - $(MKDEP_C) $(CFLAGS) "$<" -MT "$(@D)/$(<F).o" -MF "$@" -endef +ifeq ($(HOST_SYSTEM),ARMV5) + include build/unix/make/buildtools-armv5 +else +ifeq ($(HOST_SYSTEM),WINSCW) + include build/unix/make/buildtools-winscw +else + include build/unix/make/buildtools-generic +endif +endif -define act_mkdep_m - $(MKDEP_OBJC) $(CFLAGS) "$<" -MT "$(@D)/$(<F).o" -MF "$@" -endef -define act_windres - $(WINDRES) --include-dir $(dir $<) -o "$@" "$<" -endef - -define act_cc - $(COMPILE_C) -o "$@" $(CFLAGS) "$<" -endef - -define act_objcc - $(COMPILE_OBJC) -o "$@" $(CFLAGS) "$<" -endef - -define act_link - $(LINK) -o "$@" $^ $(LDFLAGS) -endef - - default: ./build.sh uqm Added: trunk/sc2/build/unix/make/buildtools-armv5 =================================================================== --- trunk/sc2/build/unix/make/buildtools-armv5 (rev 0) +++ trunk/sc2/build/unix/make/buildtools-armv5 2008-08-23 12:06:16 UTC (rev 3051) @@ -0,0 +1,13 @@ +# Definitions for build tools for the makefile used by the UQM build system. +# This file defines the build commands for ARM tools. + +include buildtools-generic + +define act_mkdep_c + $(MKDEP_C) $(CFLAGS) -o "$(@D)/$(<F).o" "$<" --depend "$@" +endef + +define act_link + $(LINK) --create "$@".lib $^ $(LDFLAGS) +endef + Added: trunk/sc2/build/unix/make/buildtools-generic =================================================================== --- trunk/sc2/build/unix/make/buildtools-generic (rev 0) +++ trunk/sc2/build/unix/make/buildtools-generic 2008-08-23 12:06:16 UTC (rev 3051) @@ -0,0 +1,28 @@ +# Definitions for build tools for the makefile used by the UQM build system. +# This file defines the build commands for tools using a gcc-like syntax +# for arguments. + +define act_mkdep_c + $(MKDEP_C) $(CFLAGS) "$<" -MT "$(@D)/$(<F).o" -MF "$@" +endef + +define act_mkdep_m + $(MKDEP_OBJC) $(CFLAGS) "$<" -MT "$(@D)/$(<F).o" -MF "$@" +endef + +define act_windres + $(WINDRES) --include-dir $(dir $<) -o "$@" "$<" +endef + +define act_cc + $(COMPILE_C) -o "$@" $(CFLAGS) "$<" +endef + +define act_objcc + $(COMPILE_OBJC) -o "$@" $(CFLAGS) "$<" +endef + +define act_link + $(LINK) -o "$@" $^ $(LDFLAGS) +endef + Added: trunk/sc2/build/unix/make/buildtools-winscw =================================================================== --- trunk/sc2/build/unix/make/buildtools-winscw (rev 0) +++ trunk/sc2/build/unix/make/buildtools-winscw 2008-08-23 12:06:16 UTC (rev 3051) @@ -0,0 +1,12 @@ +# Definitions for build tools for the makefile used by the UQM build system. +# This file defines the build commands for Nokia CodeWarrior tools. + +include buildtools-generic + +define act_mkdep_c + $(MKDEP_C) $(CFLAGS) "$<" -o "$@.tmp" + @echo -n "$(@D)/" > $@ + @cat "$@.tmp" >> $@ + @rm -f "$@.tmp" +endef + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |