summaryrefslogtreecommitdiff
path: root/build/host.mk
diff options
context:
space:
mode:
authorNicolas Schodet2012-10-11 19:13:35 +0200
committerNicolas Schodet2019-10-06 23:26:07 +0200
commit006022d6be3ceadcd5910ebc09d6465f81af6d55 (patch)
treedaff6f8fe26bae042a8ae41aea332179e80a8a8d /build/host.mk
Add ucoolib build system and basic arch module
Diffstat (limited to 'build/host.mk')
-rw-r--r--build/host.mk18
1 files changed, 18 insertions, 0 deletions
diff --git a/build/host.mk b/build/host.mk
new file mode 100644
index 0000000..b061efd
--- /dev/null
+++ b/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))