notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add disk control interface v1 support
[pcsx_rearmed.git]
/
plugins
/
gpulib
/
Makefile
diff --git
a/plugins/gpulib/Makefile
b/plugins/gpulib/Makefile
index
43f0d2b
..
cff6141
100644
(file)
--- a/
plugins/gpulib/Makefile
+++ b/
plugins/gpulib/Makefile
@@
-8,29
+8,38
@@
include ../../config.mak
OBJS += gpu.o
ifeq "$(ARCH)" "arm"
OBJS += gpu.o
ifeq "$(ARCH)" "arm"
-ifeq "$(HAVE_NEON)" "1"
-OBJS += cspace_neon.o
-else
-OBJS += cspace.o
-endif
OBJS += vout_pl.o
EXT = a
else
OBJS += vout_pl.o
EXT = a
else
-CFLAGS += `sdl-config --cflags`
-OBJS += vout_sdl.o
+#CFLAGS += `sdl-config --cflags`
+#OBJS += vout_sdl.o
+OBJS += vout_pl.o
EXT = $(ARCH).a
endif
CFLAGS += $(PLUGIN_CFLAGS)
EXT = $(ARCH).a
endif
CFLAGS += $(PLUGIN_CFLAGS)
+# need to compile to another dir, same files are compiled
+# into main binary without PIC
+OBJS2 = $(patsubst %.o,obj/%.o,$(OBJS))
+
TARGET = gpulib.$(EXT)
TARGET = gpulib.$(EXT)
-all: ../../config.mak $(TARGET)
+all: ../../config.mak
obj
$(TARGET)
-$(TARGET): $(OBJS)
+$(TARGET): $(OBJS
2
)
$(AR) crs $@ $^
$(AR) crs $@ $^
+obj/%.o: %.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $^
+
+obj/%.o: %.s
+ $(AS) $(ASFLAGS) -o $@ $^
+
clean:
clean:
- $(RM) $(TARGET) $(OBJS)
+ $(RM) $(TARGET) $(OBJS2)
+
+obj:
+ mkdir -p $@
../../config.mak:
@echo "Please run ./configure before running make!"
../../config.mak:
@echo "Please run ./configure before running make!"