Made compile warning disappear, may need to rework
This commit is contained in:
parent
a6c18d293a
commit
f786c11468
7
Makefile
7
Makefile
|
@ -3,12 +3,13 @@ CLIB=-L/usr/local/lib -llua5.3
|
||||||
INC=-I/usr/local/include
|
INC=-I/usr/local/include
|
||||||
BIN=open_card_table
|
BIN=open_card_table
|
||||||
DEBUG=-g
|
DEBUG=-g
|
||||||
|
CFLAGS=-D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE
|
||||||
|
|
||||||
open_card_table: main.o oct_networking.o oct_log.o
|
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
|
%.o: %.c
|
||||||
$(CC) -g $(INC) $(CLIB) -c -o $@ $<
|
$(CC) $(CFLAGS) $(INC) $(CLIB) -c -o $@ $<
|
||||||
|
|
||||||
test:
|
test:
|
||||||
$(CC) $(INC) $(CLIB) test.c -o test $(DEBUG)
|
$(CC) $(CFLAGS) $(INC) $(CLIB) test.c -o test $(DEBUG)
|
||||||
|
|
Loading…
Reference in New Issue