open-card-table/Makefile

16 lines
351 B
Makefile
Raw Normal View History

CC=gcc
CLIB=-L/usr/local/lib -llua5.3
2023-01-06 19:12:24 -05:00
INC=-I/usr/local/include
BIN=open_card_table
2023-01-06 19:12:24 -05:00
DEBUG=-g
CFLAGS=-D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE
2023-01-06 19:12:24 -05:00
open_card_table: main.o oct_networking.o oct_log.o
$(CC) $(CFLAGS) $(INC) $(CLIB) -o $(BIN) $^
%.o: %.c
$(CC) $(CFLAGS) $(INC) $(CLIB) -c -o $@ $<
2023-01-06 19:12:24 -05:00
test:
$(CC) $(CFLAGS) $(INC) $(CLIB) test.c -o test $(DEBUG)