19 lines
441 B
Makefile
19 lines
441 B
Makefile
CC=gcc
|
|
CLIB=`pkg-config --libs lua5.3`
|
|
INC=
|
|
BIN=open_card_table
|
|
DEBUG=-g
|
|
CFLAGS=`pkg-config --cflags lua5.3` -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE
|
|
|
|
open_card_table: main.o oct_networking.o oct_termbox_sprite.o oct_log.o
|
|
$(CC) $(DEBUG) $(CFLAGS) $(INC) $(CLIB) -o $(BIN) $^
|
|
|
|
%.o: %.c
|
|
$(CC) $(DEBUG) $(CFLAGS) $(INC) $(CLIB) -c -o $@ $<
|
|
|
|
test:
|
|
$(CC) $(CFLAGS) $(INC) $(CLIB) test.c -o test $(DEBUG)
|
|
clean:
|
|
rm -f open_card_table
|
|
rm -f *.o
|