Introduce pet-projects dir
[lcapit-junk-code.git] / pet-projects / games / microballs / Makefile
blob361a225d41499ab89d137a0187d9f7695c5fb7d6
1 CC=gcc
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
6 LIBS=-lm
8 all : mballs
10 mballs : $(OBJS)
11 $(CC) -o $@ $+ $(LIBS)
13 mballs.o : mballs.c $(HEADERS)
14 $(CC) $(CFLAGS) -c $<
16 board.o : board.c $(HEADERS)
17 $(CC) $(CFLAGS) -c $<
19 computer.o : computer.c computer.h mballs.h board.h
20 $(CC) $(CFLAGS) -c $<
22 misc.o : misc.c misc.h
23 $(CC) $(CFLAGS) -DLINUX_CLEAR_SCREEN -c $<
25 .PHONY : clean test tags
27 tags :
28 rm -f tags
29 find . -name '*.[hcS]' -print | xargs ctags -a
31 clean :
32 rm -f *~ *.o mballs tags
33 rm -f $(OBJS)