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:
+9
-23
@@ -17,29 +17,15 @@ define act
|
|||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define act_mkdep_c
|
ifeq ($(HOST_SYSTEM),ARMV5)
|
||||||
$(MKDEP_C) $(CFLAGS) "$<" -MT "$(@D)/$(<F).o" -MF "$@"
|
include build/unix/make/buildtools-armv5
|
||||||
endef
|
else
|
||||||
|
ifeq ($(HOST_SYSTEM),WINSCW)
|
||||||
define act_mkdep_m
|
include build/unix/make/buildtools-winscw
|
||||||
$(MKDEP_OBJC) $(CFLAGS) "$<" -MT "$(@D)/$(<F).o" -MF "$@"
|
else
|
||||||
endef
|
include build/unix/make/buildtools-generic
|
||||||
|
endif
|
||||||
define act_windres
|
endif
|
||||||
$(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:
|
default:
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
@@ -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
|
||||||
|
|
||||||
@@ -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
|
||||||
|
|
||||||
Reference in New Issue
Block a user