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