f82c6250 |
1 | CC = $(CROSS_COMPILE)gcc |
2 | CFLAGS += -DTEXTURE_CACHE_4BPP -DTEXTURE_CACHE_8BPP |
3 | CFLAGS += -Wall -ggdb |
4 | |
5 | CFLAGS += `sdl-config --cflags` |
6 | LDFLAGS += `sdl-config --libs` |
7 | |
8 | VPATH += .. |
9 | |
10 | ifdef NEON |
11 | CFLAGS += -mcpu=cortex-a8 -mfpu=neon -DNEON_BUILD |
12 | ASFLAGS = $(CFLAGS) |
13 | OBJ += psx_gpu_arm_neon.o |
14 | endif |
15 | ifndef DEBUG |
c111e8f8 |
16 | CFLAGS += -O2 -DNDEBUG -fno-strict-aliasing |
f82c6250 |
17 | endif |
18 | |
19 | OBJ += psx_gpu.o psx_gpu_parse.o psx_gpu_main.o |
20 | |
21 | all: psx_gpu |
22 | |
23 | psx_gpu: $(OBJ) |
24 | |
25 | clean: |
26 | $(RM) psx_gpu $(OBJ) |