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