Made compile warning disappear, may need to rework

This commit is contained in:
j4nk 2023-05-23 12:18:52 -04:00
parent a6c18d293a
commit f786c11468
2 changed files with 5 additions and 3 deletions

View File

@ -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)

1
main.c
View File

@ -9,6 +9,7 @@
#define TB_IMPL
#include "termbox.h"
// Errors
#define OCT_NO_LUA_FILE 1
#define OCT_LUA_FILE_NOT_FOUND 2