Trying to get a working Makefile.
This commit is contained in:
parent
abec2373a3
commit
f673788a70
@ -16,11 +16,14 @@
|
|||||||
|
|
||||||
CC=gcc
|
CC=gcc
|
||||||
CFLAGS=-I../include/ -L../build/ -lneocomm
|
CFLAGS=-I../include/ -L../build/ -lneocomm
|
||||||
|
LD=ld
|
||||||
|
LDFLAGS=-lstdc++ -lc -L../build/ -lneocomm
|
||||||
BIN=bin/demo
|
BIN=bin/demo
|
||||||
|
|
||||||
demo:
|
demo:
|
||||||
mkdir -p bin/
|
mkdir -p bin/
|
||||||
$(CC) -o $(BIN) main.c $(CFLAGS)
|
$(CC) -c main.c $(CFLAGS)
|
||||||
|
$(LD) -o $(BIN) main.o $(LDFLAGS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(BIN)
|
rm -f $(BIN) *.o
|
||||||
|
Loading…
Reference in New Issue
Block a user