Split off build tools specific definitions from Makefile.build.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3051 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
Meep-Eep
2008-08-23 12:06:16 +00:00
parent c08905fa36
commit ce4aaa18d7
4 changed files with 62 additions and 23 deletions
+9 -23
View File
@@ -17,29 +17,15 @@ define act
endef
endif
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
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
default:
+13
View File
@@ -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
+28
View File
@@ -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
+12
View File
@@ -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