summaryrefslogtreecommitdiff
path: root/build/unix/make
diff options
context:
space:
mode:
Diffstat (limited to 'build/unix/make')
-rw-r--r--build/unix/make/buildtools-armv517
-rw-r--r--build/unix/make/buildtools-gcce8
-rw-r--r--build/unix/make/buildtools-generic36
-rw-r--r--build/unix/make/buildtools-winscw19
4 files changed, 80 insertions, 0 deletions
diff --git a/build/unix/make/buildtools-armv5 b/build/unix/make/buildtools-armv5
new file mode 100644
index 0000000..bf73689
--- /dev/null
+++ b/build/unix/make/buildtools-armv5
@@ -0,0 +1,17 @@
+# Definitions for build tools for the makefile used by the UQM build system.
+# This file defines the build commands for ARM tools.
+
+include build/unix/make/buildtools-generic
+
+define act_mkdep_c
+ $(MKDEP_C) $(CFLAGS) -o "$(@D)/$(<F).o" "$<" --depend "$@"
+endef
+
+define act_mkdep_cxx
+ $(MKDEP_CXX) $(CXXFLAGS) -o "$(@D)/$(<F).o" "$<" --depend "$@"
+endef
+
+define act_link
+ $(LINK) --create "$@" $^ $(LDFLAGS)
+endef
+
diff --git a/build/unix/make/buildtools-gcce b/build/unix/make/buildtools-gcce
new file mode 100644
index 0000000..2a5b6ca
--- /dev/null
+++ b/build/unix/make/buildtools-gcce
@@ -0,0 +1,8 @@
+# Definitions for build tools for the makefile used by the UQM build system.
+# This file defines the build commands for GCCE tools.
+
+include build/unix/make/buildtools-generic
+
+define act_link
+ arm-none-symbianelf-ar cr "$@" $^ $(LDFLAGS)
+endef
diff --git a/build/unix/make/buildtools-generic b/build/unix/make/buildtools-generic
new file mode 100644
index 0000000..b3ea464
--- /dev/null
+++ b/build/unix/make/buildtools-generic
@@ -0,0 +1,36 @@
+# 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_cxx
+ $(MKDEP_CXX) $(CXXFLAGS) "$<" -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_cxx
+ $(COMPILE_CXX) -o "$@" $(CXXFLAGS) "$<"
+endef
+
+define act_objcc
+ $(COMPILE_OBJC) -o "$@" $(CFLAGS) "$<"
+endef
+
+define act_link
+ $(LINK) -o "$@" $^ $(LDFLAGS)
+endef
+
diff --git a/build/unix/make/buildtools-winscw b/build/unix/make/buildtools-winscw
new file mode 100644
index 0000000..4a2b6bc
--- /dev/null
+++ b/build/unix/make/buildtools-winscw
@@ -0,0 +1,19 @@
+# Definitions for build tools for the makefile used by the UQM build system.
+# This file defines the build commands for Nokia CodeWarrior tools.
+
+include build/unix/make/buildtools-generic
+
+define act_mkdep_c
+ $(MKDEP_C) $(CFLAGS) "$<" -o "$@.tmp"
+ @echo -n "$(@D)/" > $@
+ @cat "$@.tmp" >> $@
+ @rm -f "$@.tmp"
+endef
+
+define act_mkdep_cxx
+ $(MKDEP_C) $(CXXFLAGS) "$<" -o "$@.tmp"
+ @echo -n "$(@D)/" > $@
+ @cat "$@.tmp" >> $@
+ @rm -f "$@.tmp"
+endef
+