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 | |
1ab64c54 | 6 | |
1ab64c54 | 7 | LDFLAGS += -shared -Wl,-soname,$(TARGET) |
56f08d83 | 8 | SRC += gpu.c |
9 | ifeq "$(ARCH)" "arm" | |
fc84f618 | 10 | TARGET = gpu_neon.so |
56f08d83 | 11 | CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp |
12 | SRC += vout_fb.c ../../frontend/arm_utils.s | |
13 | else | |
fc84f618 | 14 | TARGET = gpu_neon.so.x86 |
56f08d83 | 15 | CFLAGS += `sdl-config --cflags` -m32 |
16 | LDFLAGS += `sdl-config --libs` | |
17 | SRC += vout_sdl.c | |
18 | endif | |
ddd56f6e | 19 | PEOPS=1 |
56f08d83 | 20 | ifndef PEOPS |
deb18d24 | 21 | SRC += psx_gpu_if.c |
56f08d83 | 22 | else |
23 | SRC += peops.c | |
24 | endif | |
1ab64c54 GI |
25 | |
26 | all: $(TARGET) | |
27 | ||
28 | $(TARGET): $(SRC) | |
29 | $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS) | |
30 | ||
31 | clean: | |
32 | $(RM) $(TARGET) |