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