|
|
@ -28,8 +28,8 @@ WARN=-W -Wall -Wextra $(WERROR)
|
|
|
|
NATIVE=
|
|
|
|
NATIVE=
|
|
|
|
#NATIVE=-march=native -mtune=native
|
|
|
|
#NATIVE=-march=native -mtune=native
|
|
|
|
|
|
|
|
|
|
|
|
OPT_REG=-O2 -fomit-leaf-frame-pointer
|
|
|
|
OPT_REG=-O2 $(OLFP)
|
|
|
|
OPT_PLUS=-O3 -fomit-leaf-frame-pointer $(NATIVE)
|
|
|
|
OPT_PLUS=-O3 $(OLFP) $(NATIVE)
|
|
|
|
|
|
|
|
|
|
|
|
DEFINE=-D_REENTRANT
|
|
|
|
DEFINE=-D_REENTRANT
|
|
|
|
|
|
|
|
|
|
|
@ -60,8 +60,10 @@ DIET:=$(strip $(diet_path))
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
gcc_path = $(foreach dir,$(path),$(wildcard $(dir)/gcc))
|
|
|
|
gcc_path = $(foreach dir,$(path),$(wildcard $(dir)/gcc))
|
|
|
|
ifeq ($(strip $(gcc_path)),)
|
|
|
|
ifeq ($(strip $(gcc_path)),)
|
|
|
|
|
|
|
|
OLFP=-fomit-frame-pointer
|
|
|
|
CC=clang
|
|
|
|
CC=clang
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
OLFP=-fomit-leaf-frame-pointer
|
|
|
|
CC=gcc
|
|
|
|
CC=gcc
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
@ -168,7 +170,7 @@ libowfat.a: $(ALL_OBJS)
|
|
|
|
-$(CROSS)ranlib $@
|
|
|
|
-$(CROSS)ranlib $@
|
|
|
|
|
|
|
|
|
|
|
|
CFLAGS+=-I.
|
|
|
|
CFLAGS+=-I.
|
|
|
|
CFLAGS_OPS+=-I.
|
|
|
|
CFLAGS_OPT+=-I.
|
|
|
|
|
|
|
|
|
|
|
|
%.o: byte/%.c
|
|
|
|
%.o: byte/%.c
|
|
|
|
$(DIET) $(CCC) -c $< $(CFLAGS_OPT)
|
|
|
|
$(DIET) $(CCC) -c $< $(CFLAGS_OPT)
|
|
|
|