Trying to get a working Makefile.

This commit is contained in:
Nicolás Ortega Froysa 2017-11-05 16:54:43 +01:00
parent abec2373a3
commit f673788a70
No known key found for this signature in database
GPG Key ID: FEC70E3BAE2E69BF

View File

@ -16,11 +16,14 @@
CC=gcc
CFLAGS=-I../include/ -L../build/ -lneocomm
LD=ld
LDFLAGS=-lstdc++ -lc -L../build/ -lneocomm
BIN=bin/demo
demo:
mkdir -p bin/
$(CC) -o $(BIN) main.c $(CFLAGS)
$(CC) -c main.c $(CFLAGS)
$(LD) -o $(BIN) main.o $(LDFLAGS)
clean:
rm -f $(BIN)
rm -f $(BIN) *.o