aboutsummaryrefslogtreecommitdiff
path: root/include/00.build/C_Makefile
diff options
context:
space:
mode:
authorAleksa Vučković <aleksav013@gmail.com>2022-05-28 00:27:42 +0200
committerAleksa Vučković <aleksav013@gmail.com>2022-05-28 00:27:42 +0200
commit013366f9eea59bb1b2ee1985580f37a32c20ee76 (patch)
tree0a29d219f8db022cc4bdb5361d5bd8efc99bc41c /include/00.build/C_Makefile
parentbb6b3ae8a78a59a30e8e97d02203be636d21b6fb (diff)
makefile & komentarisanje koda (treci deo)
Diffstat (limited to 'include/00.build/C_Makefile')
-rw-r--r--include/00.build/C_Makefile8
1 files changed, 8 insertions, 0 deletions
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)