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