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) $(CFLAGS) $(INC) $(CLIB) -o $(BIN) $^ %.o: %.c $(CC) $(CFLAGS) $(INC) $(CLIB) -c -o $@ $< test: $(CC) $(CFLAGS) $(INC) $(CLIB) test.c -o test $(DEBUG)