blob: aefc9fa7b7339653b18a957e084659e38141f1ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
SRCMODULES = field.c ghosts.c pac.c queue.c pacman.c
OBJMODULES = $(SRCMODULES:.c=.o)
CC = gcc
CFLAGS = -Wall -g -c
LIBS = -lncurses -lm
all: pacman
%.o: %.с %.h
$(CC) $(CFLAGS) $< -o $@
pacman: $(OBJMODULES)
$(CC) $(LIBS) $^ -o $@
-include deps.mk
deps.mk: $(SRCMODULES)
$(CC) -MM $^ > $@
|