diff --git a/m1/perf/Makefile b/m1/perf/Makefile index 8ab0ad1..242eb8d 100644 --- a/m1/perf/Makefile +++ b/m1/perf/Makefile @@ -6,11 +6,12 @@ M1SWLIB_DIR=$(M1)/milkymist/software/libfpvm #CFLAGS_EXTRA=-DCOMP_DEBUG CFLAGS_EXTRA= CFLAGS_PROF=-pg -CFLAGS_COMMON=-Wall -g $(CFLAGS_PROF) $(CFLAGS_EXTRA) +CFLAGS_COMMON=-Wall -g $(CFLAGS_PROF) $(CFLAGS_EXTRA) -DPRINTF_FLOAT +CFLAGS_M=-fno-builtin #-nostdinc -fno-builtin CFLAGS=$(CFLAGS_COMMON) \ -I$(COMPILER_DIR) \ -Ifakes -I$(M1SWINC_DIR) -LDFLAGS=-pg +LDFLAGS=$(CFLAGS_PROF) LDLIBS=-L$(M1SWLIB_DIR) -lfpvm @@ -26,13 +27,13 @@ main: $(OBJS) $(LIBFPVM_A) $(COMPILER_O): $(MAKE) -C $(COMPILER_DIR) CC=gcc \ - CFLAGS="$(CFLAGS_COMMON) -I$(M1SWINC_DIR) \ + CFLAGS="$(CFLAGS_COMMON) $(CFLAGS_M) -I$(M1SWINC_DIR) \ -I$(shell pwd)/fakes" \ compiler.o $(LIBFPVM_A): $(MAKE) -C $(M1SWLIB_DIR) CC=gcc LD=gcc AR=ar RANLIB=ranlib \ - CFLAGS='$(CFLAGS_COMMON) $$(INCLUDES)' + CFLAGS='$(CFLAGS_COMMON) $(CFLAGS_M) $$(INCLUDES)' clean: $(MAKE) -C $(M1SWLIB_DIR) clean