16 lines
390 B
Makefile
16 lines
390 B
Makefile
CC=gcc
|
|
CLIB=-L/usr/local/lib -llua5.3
|
|
INC=-I/usr/local/include
|
|
BIN=open_card_table
|
|
DEBUG=-g
|
|
CFLAGS=-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)
|