1 CC = $(CROSS_COMPILE)gcc
3 CFLAGS += -ggdb -fPIC -Wall -DREARMED
5 CFLAGS += -O2 -ffast-math -fomit-frame-pointer
10 CFLAGS += -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp
11 # -fschedule-insns (from -O2+) causes bugs, probably bad asm() statements
12 CFLAGS += -fno-schedule-insns -fno-schedule-insns2
14 TARGET = gpuPCSX4ALL.so
15 LDFLAGS += -shared -Wl,-soname,$(TARGET)
17 -include Makefile.local
21 $(TARGET): gpu.cpp ../../frontend/arm_utils.s
22 $(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
27 $(RM) $(TARGET) $(OBJ)