games: Introduce a simple puzzle game
[lcapit-junk-code.git] / mega-sena / Makefile
blobe8c72b3364e20379a37048631963763f11b236e6
1 CC = gcc
2 CFLAGS = -Wall -W -Wmissing-declarations -Wmissing-prototypes -O3 \
3 -Wredundant-decls -Wshadow -Wbad-function-cast -Wcast-qual \
4 -minline-all-stringops -maccumulate-outgoing-args
5 HEADERS = module.h mod_cuckoo.h mod_lp.h
6 CFILES = mega-sena.c mod_cuckoo.c mod_lp.c
7 OBJS := $(CFILES:.c=.o)
8 BIN = mega-sena
10 all: $(BIN)
12 $(BIN): $(OBJS)
13 $(CC) -o $@ $+
15 mega-sena.o: mega-sena.c $(HEADERS)
16 $(CC) $(CFLAGS) -c $<
18 mod_cuckoo.o: mod_cuckoo.c mod_cuckoo.h module.h
19 $(CC) $(CFLAGS) -c $<
21 mod_lp.o: mod_lp.c mod_lp.h module.h
22 $(CC) $(CFLAGS) -c $<
24 clean:
25 rm -f $(BIN) *~ *.o