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