2 CFLAGS
= -Wall
-W
-Wmissing-declarations
-Wmissing-prototypes
-g
-O0 \
3 -Wredundant-decls
-Wshadow
-Wbad-function-cast
-Wcast-qual
4 OBJS
= main.o dict.o misc.o game.o
5 HEADERS
= dict.h misc.h game.h
12 main.o
: main.c
$(HEADERS
)
15 dict.o
: dict.c dict.h misc.h
18 game.o
: game.c game.h
21 misc.o
: misc.c misc.h
22 $(CC
) $(CFLAGS
) -DLINUX_CLEAR_SCREEN
-c
$<
24 .PHONY
: clean test tags
28 find .
-name
'*.[hcS]' -print | xargs ctags
-a