From 6a3bd9c2900a614c0bb6832e419de7aecb4dba80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Sun, 5 Nov 2017 17:08:23 +0100 Subject: [PATCH] Functional Makefile. --- demo/Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/demo/Makefile b/demo/Makefile index 304592f..bf117cf 100644 --- a/demo/Makefile +++ b/demo/Makefile @@ -15,15 +15,13 @@ # along with this program. If not, see . CC=gcc -CFLAGS=-I../include/ -L../build/ -lneocomm -LD=ld -LDFLAGS=-lstdc++ -lopendht -lc -L../build/ -lneocomm +CFLAGS=-I../include/ -L../build/ -lneocomm -g -O0 +LDFLAGS=-lc -lstdc++ -lopendht -lmsgpackc -L../build/ -lneocomm BIN=bin/demo demo: mkdir -p bin/ - $(CC) -c main.c $(CFLAGS) - $(LD) -o $(BIN) main.o $(LDFLAGS) + $(CC) -o $(BIN) main.c $(CFLAGS) $(LDFLAGS) clean: rm -f $(BIN) *.o