back to scratko.xyz
summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorscratko <m@scratko.xyz>2024-04-23 19:03:35 +0300
committerscratko <m@scratko.xyz>2024-05-25 21:12:30 +0300
commitc1e5cffb43977f5a2f8d9623e40c01dab6d80c46 (patch)
tree31c9c9b6847c292b13a354d962b86b6f5e15bb26 /Makefile
downloadshell-I.tar.gz
shell-I.tar.bz2
shell-I.zip
Shell-I releaseshell-I
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 $^ > $@