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