gpu_neon/psx_gpu: workaround for library build
[pcsx_rearmed.git] / plugins / gpu_unai / Makefile
CommitLineData
7c49c8a2 1CC = $(CROSS_COMPILE)gcc
2
297b3d63 3CFLAGS += -ggdb -fPIC -Wall -DREARMED
4ifndef DEBUG
7c49c8a2 5CFLAGS += -O2 -ffast-math -fomit-frame-pointer
297b3d63 6endif
495eab93 7ifdef MAEMO
8CFLAGS += -DMAEMO
9endif
55b0eeea 10ARM_CORTEXA8 ?= 1
11ifeq "$(ARM_CORTEXA8)" "1"
7c49c8a2 12CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
55b0eeea 13SRC += ../../frontend/cspace_neon.s
14else
15CFLAGS += -mcpu=arm926ej-s -mtune=arm926ej-s
16SRC += ../../frontend/cspace.c
17endif
18
b3db9409 19SRC += gpu.cpp gpu_arm.s
7c49c8a2 20
21TARGET = gpuPCSX4ALL.so
22LDFLAGS += -shared -Wl,-soname,$(TARGET)
23
de38f20e 24-include Makefile.local
25
7c49c8a2 26all: $(TARGET)
27
55b0eeea 28$(TARGET): $(SRC)
7c49c8a2 29 $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
30
31# $(TARGET): *.h
32
33clean:
34 $(RM) $(TARGET) $(OBJ)