2 # Gilead Kutnick - Exophase
7 PREFIX = /opt/open2x/gcc-4.1.1-glibc-2.3.6
8 CC = $(PREFIX)/bin/arm-open2x-linux-gcc
9 STRIP = $(PREFIX)/bin/arm-open2x-linux-strip
11 OBJS = main.o cpu.o memory.u video.o input.o sound.o gp2x.o gui.o \
12 cheats.o zip.o cpu_threaded.z arm_stub.o video_blend.o \
13 warm.o upscale_aspect.o
15 OBJS += pollux_dpc_set.o
21 # Platform specific definitions
24 CFLAGS += -DARM_ARCH -DGP2X_BUILD
28 # NOTE: -funroll-loops will slow down compiling considerably
29 CFLAGS += -O3 -std=c99 -msoft-float -funsigned-char -fno-common \
32 INCLUDES = `$(PREFIX)/bin/sdl-config --cflags` -I$(PREFIX)/include
33 LIBS = `$(PREFIX)/bin/sdl-config --libs` \
34 -lm -ldl -lpthread -lz
44 $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
47 $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
50 $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
53 $(CC) $(ASFLAGS) $(INCLUDES) -c -o $@ $<
56 $(CC) $(ASFLAGS) $(INCLUDES) -c -o $@ $<
59 $(CC) $(OBJS) $(LIBS) -o $(BIN)
63 rm -f *.o *.u *.z $(BIN)