2023-05-23 10:58:52 -04:00
|
|
|
CC=gcc
|
2023-08-13 21:37:34 -04:00
|
|
|
CLIB=`pkg-config --libs lua5.3`
|
|
|
|
INC=
|
2023-05-23 10:58:52 -04:00
|
|
|
BIN=open_card_table
|
2023-01-06 19:12:24 -05:00
|
|
|
DEBUG=-g
|
2023-08-13 21:37:34 -04:00
|
|
|
CFLAGS=`pkg-config --cflags lua5.3` -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE
|
2023-01-06 19:12:24 -05:00
|
|
|
|
2023-05-24 20:11:56 -04: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) $^
|
2023-05-21 18:47:35 -04:00
|
|
|
|
|
|
|
%.o: %.c
|
2023-05-26 23:52:57 -04:00
|
|
|
$(CC) $(DEBUG) $(CFLAGS) $(INC) $(CLIB) -c -o $@ $<
|
2023-05-21 18:47:35 -04:00
|
|
|
|
2023-01-06 19:12:24 -05:00
|
|
|
test:
|
2023-05-23 12:18:52 -04:00
|
|
|
$(CC) $(CFLAGS) $(INC) $(CLIB) test.c -o test $(DEBUG)
|
2023-08-13 21:37:34 -04:00
|
|
|
clean:
|
|
|
|
rm -f open_card_table
|
|
|
|
rm -f *.o
|