Kill mega-sena.sh
[lcapit-junk-code.git] / games / ttt3p / Makefile
blob09a5afbd476d794951eb3ca0966afc0de7295e62
1 CC=gcc
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
7 all : ttt3p
9 ttt3p : $(OBJS)
10 $(CC) -o $@ $+
12 ttt3p.o : ttt3p.c $(HEADERS)
13 $(CC) $(CFLAGS) -c $<
15 board.o : board.c board.h ttt3p.h
16 $(CC) $(CFLAGS) -DLINUX_CLEAR_SCREEN -c $<
18 computer.o : computer.c $(HEADERS)
19 $(CC) $(CFLAGS) -c $<
21 misc.o : misc.c $(HEADERS)
22 $(CC) $(CFLAGS) -c $<
24 .PHONY : clean test tags
26 test : ttt3p
27 ./ttt3p 3
29 tags :
30 rm -f tags
31 find . -name '*.[hcS]' -print | xargs ctags -a
33 clean :
34 rm -f *~ *.o ttt3p
35 rm -f $(OBJS)