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