From 5f88a68525587fc9c3daf9603de6692847a6956b Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Sat, 6 Aug 2016 17:31:14 -0400 Subject: [PATCH] Sync changes from cyclone-bootstrap --- Makefile.config | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.config b/Makefile.config index 0645ba14..fac78a0e 100644 --- a/Makefile.config +++ b/Makefile.config @@ -7,11 +7,13 @@ # Use these lines instead for debugging or profiling #CFLAGS = -g -Wall #CFLAGS = -g -pg -Wall -CFLAGS ?= -O2 -Wall +CFLAGS ?= -O2 -Wall -I$(PREFIX)/include -L$(PREFIX)/lib CC ?= cc +LIBS = -pthread -lcyclone -lck -lm + # Commands "baked into" cycone for invoking the C compiler CC_PROG ?= "$(CC) ~src-file~ $(CFLAGS) -c -o ~exec-file~.o" -CC_EXEC ?= "$(CC) ~exec-file~.o ~obj-files~ -pthread -lcyclone -lck -lm $(CFLAGS) -o ~exec-file~" +CC_EXEC ?= "$(CC) ~exec-file~.o ~obj-files~ $(LIBS) $(CFLAGS) -o ~exec-file~" CC_LIB ?= "$(CC) ~src-file~ $(CFLAGS) -c -o ~exec-file~.o" AR ?= ar