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
+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