blob: 12433c4917dbdc99f06f7e130e6dd3355cc423e8 (
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 color_palette.c pacman.c
OBJMODULES = $(SRCMODULES:.c=.o)
CC = gcc
CFLAGS = -Wall -g -c -D DEBUG
LIBS = -lncurses -lm
all: pacman
%.o: %.с %.h
$(CC) $(CFLAGS) $< -o $@
pacman: $(OBJMODULES)
$(CC) $(LIBS) $^ -o $@
-include deps.mk
deps.mk: $(SRCMODULES)
$(CC) -MM $^ > $@
|