X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=source%2Frice_gles%2Fprojects%2Funix%2FMakefile;h=edcdceaf86608ca435c4962489a3e089824b430a;hb=HEAD;hp=50245aa401e5ef29533a40c5265d16f41692cf7b;hpb=e6bf28342a4c749b6106b3f148b34e84097a1aec;p=mupen64plus-pandora.git diff --git a/source/rice_gles/projects/unix/Makefile b/source/rice_gles/projects/unix/Makefile index 50245aa..edcdcea 100755 --- a/source/rice_gles/projects/unix/Makefile +++ b/source/rice_gles/projects/unix/Makefile @@ -124,7 +124,8 @@ ifeq ("$(CPU)","NONE") endif # base CFLAGS, LDLIBS, and LDFLAGS -OPTFLAGS ?= -O3 -flto -fuse-linker-plugin +OPTFLAGS ?= -O3 +#-flto -fuse-linker-plugin WARNFLAGS ?= -Wall CFLAGS += $(OPTFLAGS) $(WARNFLAGS) -ffast-math -fno-strict-aliasing -fvisibility=hidden -I../../src CXXFLAGS += -fvisibility-inlines-hidden @@ -362,9 +363,15 @@ SOURCE += \ $(SRCDIR)/osal_files_unix.c endif +ifeq ($(CPU),ARM) +SOURCE += \ + $(SRCDIR)/RenderBase_neon.S +endif + # generate a list of object files build, make a temporary directory for them OBJECTS := $(patsubst $(SRCDIR)/%.c, $(OBJDIR)/%.o, $(filter %.c, $(SOURCE))) OBJECTS += $(patsubst $(SRCDIR)/%.cpp, $(OBJDIR)/%.o, $(filter %.cpp, $(SOURCE))) +OBJECTS += $(patsubst $(SRCDIR)/%.S, $(OBJDIR)/%.o, $(filter %.S, $(SOURCE))) OBJDIRS = $(dir $(OBJECTS)) $(shell $(MKDIR) $(OBJDIRS)) @@ -424,6 +431,9 @@ CXXFLAGS += $(CFLAGS) $(OBJDIR)/%.o: $(SRCDIR)/%.c $(COMPILE.c) -o $@ $< +$(OBJDIR)/%.o: $(SRCDIR)/%.S + $(COMPILE.c) -o $@ $< + $(OBJDIR)/%.o: $(SRCDIR)/%.cpp $(COMPILE.cc) -o $@ $<