X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=Makefile;h=611d5c340af156c66988a47f02189c3ba00be88e;hp=8d49f10f99420b9069d4b23c3aa30cb4b81e91ff;hb=b7ed06327bf625bdc1aa55899665f544757e9b76;hpb=59f1c85c77cb3e598f317409142599ba92e23d91 diff --git a/Makefile b/Makefile index 8d49f10f..611d5c34 100644 --- a/Makefile +++ b/Makefile @@ -96,10 +96,16 @@ endif # gpu OBJS += plugins/gpu_neon/gpu.o +ifeq "$(HAVE_NEON)" "1" +OBJS += plugins/gpu_neon/psx_gpu_if.o plugins/gpu_neon/psx_gpu/psx_gpu_arm_neon.o +plugins/gpu_neon/psx_gpu_if.o: CFLAGS += -DNEON_BUILD -DTEXTURE_CACHE_4BPP -DTEXTURE_CACHE_8BPP +plugins/gpu_neon/psx_gpu_if.o: plugins/gpu_neon/psx_gpu/*.c +else # note: code is not safe for strict-aliasing? (Castlevania problems) plugins/gpu_neon/peops_if.o: CFLAGS += -fno-strict-aliasing plugins/gpu_neon/peops_if.o: plugins/dfxvideo/prim.c plugins/dfxvideo/soft.c OBJS += plugins/gpu_neon/peops_if.o +endif ifdef X11 LDFLAGS += -lX11 `sdl-config --libs` OBJS += plugins/gpu_neon/vout_sdl.o @@ -170,6 +176,8 @@ frontend/revision.h: FORCE @rm $@_ .PHONY: FORCE +%.o: %.S + $(CC) $(CFLAGS) -c $^ -o $@ $(TARGET): $(OBJS) $(CC) -o $@ $^ $(LDFLAGS) -Wl,-Map=$@.map