2 CFLAGS
= -Wall
-W
-Wmissing-declarations
-Wmissing-prototypes
-g
-O0 \
3 -Wredundant-decls
-Wshadow
-Wbad-function-cast
-Wcast-qual
4 OBJS
= mballs.o board.o computer.o misc.o
5 HEADERS
= mballs.h board.h computer.h misc.h
11 $(CC
) -o
$@
$+ $(LIBS
)
13 mballs.o
: mballs.c
$(HEADERS
)
16 board.o
: board.c
$(HEADERS
)
19 computer.o
: computer.c computer.h mballs.h board.h
22 misc.o
: misc.c misc.h
23 $(CC
) $(CFLAGS
) -DLINUX_CLEAR_SCREEN
-c
$<
25 .PHONY
: clean test tags
29 find .
-name
'*.[hcS]' -print | xargs ctags
-a
32 rm -f
*~
*.o mballs
tags