mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-15 09:10:38 +02:00
m1/perf/Makefile: use -fno-builtin, use profiling libc, set -DPRINTF_FLOAT
This commit is contained in:
parent
0f80dcf118
commit
e2c133e056
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user