aboutsummaryrefslogtreecommitdiff
path: root/include/00.build
diff options
context:
space:
mode:
Diffstat (limited to 'include/00.build')
-rw-r--r--include/00.build/AS_Makefile6
-rw-r--r--include/00.build/C_Makefile8
2 files changed, 14 insertions, 0 deletions
diff --git a/include/00.build/AS_Makefile b/include/00.build/AS_Makefile
new file mode 100644
index 0000000..c8919d7
--- /dev/null
+++ b/include/00.build/AS_Makefile
@@ -0,0 +1,6 @@
+.PHONY: all
+
+all: $(AS_OBJECTS)
+
+$(AS_OBJECT_DIR)/%.o: %.s Makefile
+ $(AS) $< -o $@
diff --git a/include/00.build/C_Makefile b/include/00.build/C_Makefile
new file mode 100644
index 0000000..b8fe609
--- /dev/null
+++ b/include/00.build/C_Makefile
@@ -0,0 +1,8 @@
+.PHONY: all
+
+all: $(C_OBJECTS)
+
+$(C_OBJECT_DIR)/%.o: %.c Makefile
+ $(CC) $(CFLAGS) -MD -MP -c $< -o $@
+
+-include $(C_OBJECTS:.o=.d)