Init commit
This commit is contained in:
commit
83e6c9e1f0
41 changed files with 1455 additions and 0 deletions
16
code-samples/frogger/makefile
Normal file
16
code-samples/frogger/makefile
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
CC := gcc
|
||||
CFLAGS := -I inc -std=c99 -Wall -Werror -Wpedantic
|
||||
OBJS_FSMSWITCHCASE := out/frogger.o out/fsm.o out/backend.o out/frontend.o
|
||||
OBJS_FSMTABLE := out/frogger.o out/fsm_matrix.o out/backend.o out/frontend.o
|
||||
|
||||
frogger: $(OBJS_FSMSWITCHCASE)
|
||||
$(CC) $(CFLAGS) $^ -o $@ -lncurses
|
||||
|
||||
frogger_fsmtable: $(OBJS_FSMTABLE)
|
||||
$(CC) $(CFLAGS) $^ -o $@ -lncurses
|
||||
|
||||
out/%.o: src/%.c
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
$(RM) out/*.o frogger frogger_fsmtable
|
||||
Loading…
Add table
Add a link
Reference in a new issue