summaryrefslogtreecommitdiffhomepage
path: root/digital/ucoolib/build/host.mk
diff options
context:
space:
mode:
authorNicolas Schodet2012-10-11 19:13:35 +0200
committerNicolas Schodet2012-10-21 18:56:29 +0200
commit143379df9873622ffe938592cd27e89a95361ddf (patch)
tree0b28a0da8a3545d8393f8cd02e952c53b52f7e07 /digital/ucoolib/build/host.mk
parent77c08e656c86fa3e9da5de1c3abdcb45d67dc9a2 (diff)
digital/ucoolib: add ucoolib build system and basic arch module
Diffstat (limited to 'digital/ucoolib/build/host.mk')
-rw-r--r--digital/ucoolib/build/host.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/digital/ucoolib/build/host.mk b/digital/ucoolib/build/host.mk
new file mode 100644
index 00000000..b061efd1
--- /dev/null
+++ b/digital/ucoolib/build/host.mk
@@ -0,0 +1,18 @@
+# ucoolib - Microcontroller object oriented library.
+#
+# Rules for Host.
+
+host_CPPFLAGS := $(CPPFLAGS) $(host_DEFS) \
+ -DTARGET_HOST=1
+host_CFLAGS := $(CFLAGS)
+host_CXXFLAGS := $(sort $(host_CFLAGS) $(CXXFLAGS))
+host_ASFLAGS := $(ASFLAGS)
+host_LDFLAGS := $(LDFLAGS)
+host_LDLIBS := $(LDLIBS) $(host_LIBS)
+
+$(eval $(call arch_cmds,host))
+
+# Rules.
+
+$(eval $(call arch_build_rules,host))
+$(eval $(call arch_misc_rules,host))