diff --git a/Makefile b/Makefile index befe55e..40cd20a 100644 --- a/Makefile +++ b/Makefile @@ -3,12 +3,13 @@ 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_log.o - $(CC) -g $(INC) $(CLIB) -o $(BIN) $^ + $(CC) $(CFLAGS) $(INC) $(CLIB) -o $(BIN) $^ %.o: %.c - $(CC) -g $(INC) $(CLIB) -c -o $@ $< + $(CC) $(CFLAGS) $(INC) $(CLIB) -c -o $@ $< test: - $(CC) $(INC) $(CLIB) test.c -o test $(DEBUG) + $(CC) $(CFLAGS) $(INC) $(CLIB) test.c -o test $(DEBUG) diff --git a/main.c b/main.c index 572eb23..fc96ae8 100644 --- a/main.c +++ b/main.c @@ -9,6 +9,7 @@ #define TB_IMPL #include "termbox.h" + // Errors #define OCT_NO_LUA_FILE 1 #define OCT_LUA_FILE_NOT_FOUND 2