This commit is contained in:
Justin Ethier 2017-04-03 17:57:30 -04:00
parent 36f9ebc25b
commit 85ab42e5d2

View file

@ -5,18 +5,19 @@
# Configuration options for the makefile
# Compiler options
CFLAGS ?= -O2 -Wall -march=armv6k -Iinclude -L.
COMP_CFLAGS ?= -O2 -Wall -march=armv6k -I$(PREFIX)/include -L$(PREFIX)/lib
CFLAGS ?= -O2 -fPIC -Wall -march=armv6k -Iinclude -L.
COMP_CFLAGS ?= -O2 -fPIC -Wall -march=armv6k -I$(PREFIX)/include -L$(PREFIX)/lib
# Use these lines instead for debugging or profiling
#CFLAGS = -g -Wall
#CFLAGS = -g -pg -Wall
CC ?= cc
LIBS = -pthread -lcyclone -lck -lm
LIBS = -pthread -lcyclone -lck -lm -ltommath -ldl
# Commands "baked into" cyclone for invoking the C compiler
CC_PROG ?= "$(CC) ~src-file~ $(COMP_CFLAGS) -c -o ~exec-file~.o"
CC_EXEC ?= "$(CC) ~exec-file~.o ~obj-files~ $(LIBS) $(COMP_CFLAGS) -o ~exec-file~"
CC_LIB ?= "$(CC) ~src-file~ $(COMP_CFLAGS) -c -o ~exec-file~.o"
CC_SO ?= "$(CC) -shared -rdynamic -o ~exec-file~.so ~exec-file~.o"
AR ?= ar
#CD ?= cd