open-card-table/Makefile

19 lines
441 B
Makefile
Raw Permalink Normal View History

CC=gcc
CLIB=`pkg-config --libs lua5.3`
INC=
BIN=open_card_table
2023-01-06 19:12:24 -05:00
DEBUG=-g
CFLAGS=`pkg-config --cflags lua5.3` -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE
2023-01-06 19:12:24 -05:00
open_card_table: main.o oct_networking.o oct_termbox_sprite.o oct_log.o
2023-05-26 23:52:57 -04:00
$(CC) $(DEBUG) $(CFLAGS) $(INC) $(CLIB) -o $(BIN) $^
%.o: %.c
2023-05-26 23:52:57 -04:00
$(CC) $(DEBUG) $(CFLAGS) $(INC) $(CLIB) -c -o $@ $<
2023-01-06 19:12:24 -05:00
test:
$(CC) $(CFLAGS) $(INC) $(CLIB) test.c -o test $(DEBUG)
clean:
rm -f open_card_table
rm -f *.o