From f673788a70a065051c34e80d58eaa5299cfbd743 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Sun, 5 Nov 2017 16:54:43 +0100 Subject: [PATCH] Trying to get a working Makefile. --- demo/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/demo/Makefile b/demo/Makefile index 9c1a07a..52263e3 100644 --- a/demo/Makefile +++ b/demo/Makefile @@ -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