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 cpu_speed.o cpuctrl.o \
13 gp2xminilib.o font.o display.o speedtest.o cmdline.o daemon.o \
14 arm_stub.o video_blend.o flush_cache.o
17 # Platform specific definitions
20 CFLAGS += -DARM_ARCH -DGP2X_BUILD
21 # NOTE: -funroll-loops will slow down compiling considerably
22 CFLAGS += -O3 -std=c99 -msoft-float -funsigned-char -fno-common \
25 INCLUDES = `$(PREFIX)/bin/sdl-config --cflags` -I$(PREFIX)/include
26 LIBS = `$(PREFIX)/bin/sdl-config --libs` \
27 -lm -ldl -lpthread -lz -static
34 $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
37 $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
40 $(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
43 $(CC) $(ASFLAGS) $(INCLUDES) -c -o $@ $<
46 $(CC) $(OBJS) $(LIBS) -o $(BIN)
50 rm -f *.o *.u *.z $(BIN)