Commit | Line | Data |
---|---|---|
1ab64c54 | 1 | CC = $(CROSS_COMPILE)gcc |
56f08d83 | 2 | |
3 | ARCH = $(shell $(CC) -v 2>&1 | grep -i 'target:' | awk '{print $$2}' | awk -F '-' '{print $$1}') | |
4 | ||
5 | CFLAGS += -ggdb -Wall -fPIC -O2 | |
b094071f | 6 | CFLAGS += -fno-strict-aliasing |
1ab64c54 | 7 | |
1ab64c54 | 8 | LDFLAGS += -shared -Wl,-soname,$(TARGET) |
56f08d83 | 9 | SRC += gpu.c |
10 | ifeq "$(ARCH)" "arm" | |
fc84f618 | 11 | TARGET = gpu_neon.so |
56f08d83 | 12 | CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp |
a80ae4a0 | 13 | SRC += vout_fb.c ../../frontend/cspace_neon.s |
56f08d83 | 14 | else |
fc84f618 | 15 | TARGET = gpu_neon.so.x86 |
56f08d83 | 16 | CFLAGS += `sdl-config --cflags` -m32 |
17 | LDFLAGS += `sdl-config --libs` | |
18 | SRC += vout_sdl.c | |
19 | endif | |
ddd56f6e | 20 | PEOPS=1 |
56f08d83 | 21 | ifndef PEOPS |
deb18d24 | 22 | SRC += psx_gpu_if.c |
56f08d83 | 23 | else |
b094071f | 24 | SRC += peops_if.c |
56f08d83 | 25 | endif |
1ab64c54 GI |
26 | |
27 | all: $(TARGET) | |
28 | ||
29 | $(TARGET): $(SRC) | |
30 | $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) | |
31 | ||
32 | clean: | |
33 | $(RM) $(TARGET) |