blob: 3fe276d33b07fa91ba729c1f2cb37ffa9d9adb65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
SRCMODULES = dynamic_array.c queue.c shell.c
OBJMODULES = $(SRCMODULES:.c=.o)
CC = gcc
CFLAGS = -Wall -g -c
all: shell-IV
%.o: %.с %.h
$(CC) $(CFLAGS) $< -o $@
shell-IV: $(OBJMODULES)
$(CC) $(LIBS) $^ -o $@
-include deps.mk
deps.mk: $(SRCMODULES)
$(CC) -MM $^ > $@
|