diff options
author | scratko <m@scratko.xyz> | 2024-04-23 19:03:35 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2024-05-25 21:12:30 +0300 |
commit | c1e5cffb43977f5a2f8d9623e40c01dab6d80c46 (patch) | |
tree | 31c9c9b6847c292b13a354d962b86b6f5e15bb26 /Makefile | |
download | shell-c1e5cffb43977f5a2f8d9623e40c01dab6d80c46.tar.gz shell-c1e5cffb43977f5a2f8d9623e40c01dab6d80c46.tar.bz2 shell-c1e5cffb43977f5a2f8d9623e40c01dab6d80c46.zip |
Shell-I releaseshell-I
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
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 $^ > $@ |