aboutsummaryrefslogtreecommitdiff
path: root/plugins/gpulib/Makefile
diff options
context:
space:
mode:
authornotaz2012-04-20 02:28:55 +0300
committernotaz2012-04-22 01:58:03 +0300
commit4132e8ca13b6395f8a9ef7ec7d01cbdcc19c037d (patch)
treeca9037636932b6e3914e9c98c7c3da9a83796686 /plugins/gpulib/Makefile
parent4a35de071887026bb6dcd6b852738a1866959df7 (diff)
downloadpcsx_rearmed-4132e8ca13b6395f8a9ef7ec7d01cbdcc19c037d.tar.gz
pcsx_rearmed-4132e8ca13b6395f8a9ef7ec7d01cbdcc19c037d.tar.bz2
pcsx_rearmed-4132e8ca13b6395f8a9ef7ec7d01cbdcc19c037d.zip
bring in configure build system
not using autotools, trying to do something similar like qemu instead.
Diffstat (limited to 'plugins/gpulib/Makefile')
-rw-r--r--plugins/gpulib/Makefile26
1 files changed, 11 insertions, 15 deletions
diff --git a/plugins/gpulib/Makefile b/plugins/gpulib/Makefile
index e65d81b..9ed992f 100644
--- a/plugins/gpulib/Makefile
+++ b/plugins/gpulib/Makefile
@@ -1,41 +1,37 @@
-CC = $(CROSS_COMPILE)gcc
-AS = $(CROSS_COMPILE)as
-AR = $(CROSS_COMPILE)ar
-
-ARCH = $(shell $(CC) -v 2>&1 | grep -i 'target:' | awk '{print $$2}' | awk -F '-' '{print $$1}')
-
CFLAGS += -ggdb -Wall
ifndef DEBUG
CFLAGS += -O2
endif
+include ../../config.mak
+
OBJS += gpu.o
ifeq "$(ARCH)" "arm"
-ARM_CORTEXA8 ?= 1
-ifeq "$(ARM_CORTEXA8)" "1"
-CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fPIC
-ASFLAGS += -mcpu=cortex-a8 -mfpu=neon
+ifeq "$(HAVE_NEON)" "1"
OBJS += cspace_neon.o
else
-CFLAGS += -mcpu=arm926ej-s -mtune=arm926ej-s
-ASFLAGS += -mcpu=arm926ej-s -mfloat-abi=softfp
OBJS += cspace.o
endif
OBJS += vout_fb.o
EXT = a
else
-CFLAGS += `sdl-config --cflags` -m32
+CFLAGS += `sdl-config --cflags`
OBJS += vout_sdl.o
-EXT = x86.a
+EXT = $(ARCH).a
endif
+CFLAGS += $(PLUGIN_CFLAGS)
TARGET = gpulib.$(EXT)
-all: $(TARGET)
+all: ../../config.mak $(TARGET)
$(TARGET): $(OBJS)
$(AR) crs $@ $^
clean:
$(RM) $(TARGET) $(OBJS)
+
+../../config.mak:
+ @echo "Please run ./configure before running make!"
+ @exit 1