X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=b44c1f274daa71ee613facb8626eb505f1bfde7b;hb=030d1121f27550429364745419fc5e6161a2a431;hp=5732c14a010034b52016f0e67baa489cf59753a1;hpb=36e1dd7c54e92db6076ba2e249a3b2bee9f5f7c4;p=pcsx_rearmed.git diff --git a/Makefile b/Makefile index 5732c14a..b44c1f27 100644 --- a/Makefile +++ b/Makefile @@ -136,17 +136,23 @@ endif # builtin gpu OBJS += plugins/gpulib/gpu.o plugins/gpulib/vout_pl.o ifeq "$(BUILTIN_GPU)" "neon" +CFLAGS += -DGPU_NEON 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 endif ifeq "$(BUILTIN_GPU)" "peops" +CFLAGS += -DGPU_PEOPS # note: code is not safe for strict-aliasing? (Castlevania problems) plugins/dfxvideo/gpulib_if.o: CFLAGS += -fno-strict-aliasing plugins/dfxvideo/gpulib_if.o: plugins/dfxvideo/prim.c plugins/dfxvideo/soft.c OBJS += plugins/dfxvideo/gpulib_if.o endif ifeq "$(BUILTIN_GPU)" "unai" +CFLAGS += -DGPU_UNAI +CFLAGS += -DUSE_GPULIB=1 +#CFLAGS += -DINLINE="static __inline__" +#CFLAGS += -Dasm="__asm__ __volatile__" OBJS += plugins/gpu_unai/gpulib_if.o ifeq "$(ARCH)" "arm" OBJS += plugins/gpu_unai/gpu_arm.o @@ -203,6 +209,7 @@ OBJS += deps/libchdr/flac.o OBJS += deps/libchdr/huffman.o ifneq (,$(findstring win,$(platform))) + CFLAGS += -DHAVE_FSEEKO OBJS += deps/flac-1.3.2/src/libFLAC/windows_unicode_filenames.o else CFLAGS += -DHAVE_SYS_PARAM_H @@ -273,6 +280,7 @@ LDFLAGS += `pkg-config --libs glib-2.0 libosso dbus-1 hildon-fm-2` endif ifeq "$(PLATFORM)" "libretro" OBJS += frontend/libretro.o +CFLAGS += -Ilibretro-common/include CFLAGS += -DFRONTEND_SUPPORTS_RGB565 CFLAGS += -DHAVE_LIBRETRO @@ -336,13 +344,11 @@ frontend/revision.h: FORCE target_: $(TARGET) $(TARGET): $(OBJS) - @echo "** BUILDING $(TARGET) FOR PLATFORM $(PLATFORM) **" ifeq ($(STATIC_LINKING), 1) $(AR) rcs $@ $(OBJS) else $(CC_LINK) -o $@ $^ $(LDFLAGS) $(LDLIBS) $(EXTRA_LDFLAGS) endif - @echo "** BUILD SUCCESSFUL! GG NO RE **" clean: $(PLAT_CLEAN) clean_plugins $(RM) $(TARGET) $(OBJS) $(TARGET).map frontend/revision.h