diff --git a/Makefile b/Makefile index 6c546951..d25a1e8c 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ parser.so: parser.scm csc -s parser.scm libcyclone.a: runtime.c runtime.h - gcc -c runtime.c -o runtime.o + gcc -g -c runtime.c -o runtime.o ar rcs libcyclone.a runtime.o # Instructions from: http://www.adp-gmbh.ch/cpp/gcc/create_lib.html # Note compiler will have to link to this, eg: @@ -21,6 +21,11 @@ libcyclone.a: runtime.c runtime.h #gcc -static main.c -L. -lmean -o statically_linked #Note: the first three letters (the lib) must not be specified, as well as the suffix (.a) +# debug compilation using static lib +.PHONY: debug +debug: + gcc -static test.c -L. -lcyclone -I. -g -o test + cyclone: cyclone.scm trans.so cgen.so parser.so libcyclone.a csc cyclone.scm