diff --git a/Makefile b/Makefile index 28a6b2b8..99be6c59 100644 --- a/Makefile +++ b/Makefile @@ -184,7 +184,8 @@ runtime.o : runtime.c $(HEADERS) $< -o $@ libcyclone.a : runtime.o gc.o dispatch.o mstreams.o hashset.o - $(AR) rcs $@ $^ + $(CREATE_LIBRARY_COMMAND) $(CREATE_LIBRARY_FLAGS) $@ $& + $(RANLIB_COMMAND) # Instructions from: http://www.adp-gmbh.ch/cpp/gcc/create_lib.html # Note compiler will have to link to this, eg: #Linking against static library diff --git a/Makefile.config b/Makefile.config index 06d13852..7c016f2b 100644 --- a/Makefile.config +++ b/Makefile.config @@ -4,6 +4,8 @@ # # Configuration options for the makefile +& = $(filter-out %.h %.d,$^) + CYC_PROFILING ?= #CYC_PROFILING ?= -g -pg