2 # Gilead Kutnick - Exophase
8 PREFIX = /opt/arm-openwiz-linux-gnu
9 CC = $(PREFIX)/bin/arm-openwiz-linux-gnu-gcc
10 STRIP = $(PREFIX)/bin/arm-openwiz-linux-gnu-strip
12 PREFIX = /opt/open2x/gcc-4.1.1-glibc-2.3.6
13 CC = $(PREFIX)/bin/arm-open2x-linux-gcc
14 STRIP = $(PREFIX)/bin/arm-open2x-linux-strip
17 OBJS = main.o cpu.o memory.u video.o input.o sound.o gp2x.o gui.o \
18 cheats.o zip.o cpu_threaded.z arm_stub.o video_blend.o \
19 flush_cache.o warm.o sys_cacheflush.o
22 # Platform specific definitions
25 CFLAGS += -DARM_ARCH -DGP2X_BUILD
29 # NOTE: -funroll-loops will slow down compiling considerably
30 CFLAGS += -O3 -std=c99 -msoft-float -funsigned-char -fno-common \
33 INCLUDES = `$(PREFIX)/bin/sdl-config --cflags` -I$(PREFIX)/include
34 LIBS = `$(PREFIX)/bin/sdl-config --libs` \
35 -lm -ldl -lpthread -lz
37 OBJS += cpuctrl_mmsp2.o
49 $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
52 $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
55 $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
58 $(CC) $(ASFLAGS) $(INCLUDES) -c -o $@ $<
61 $(CC) $(OBJS) $(LIBS) -o $(BIN)
65 rm -f *.o *.u *.z $(BIN)