back to scratko.xyz
summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..671c740
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+SRCMODULES = dynamic_array.c queue.c shell.c
+OBJMODULES = $(SRCMODULES:.c=.o)
+CC = gcc
+CFLAGS = -Wall -g -c
+
+all: shell1
+
+%.o: %.с %.h
+ $(CC) $(CFLAGS) $< -o $@
+
+shell1: $(OBJMODULES)
+ $(CC) $(LIBS) $^ -o $@
+
+-include deps.mk
+
+deps.mk: $(SRCMODULES)
+ $(CC) -MM $^ > $@