|
|
2010-09-06
, 14:05
|
|
Posts: 270 |
Thanked: 239 times |
Joined on Dec 2009
@ Czech Republic
|
#11
|
|
|
2010-09-06
, 14:18
|
|
Posts: 270 |
Thanked: 239 times |
Joined on Dec 2009
@ Czech Republic
|
#13
|
|
|
2010-09-06
, 15:18
|
|
Posts: 270 |
Thanked: 239 times |
Joined on Dec 2009
@ Czech Republic
|
#14
|
|
|
2010-09-06
, 15:19
|
|
Posts: 2,802 |
Thanked: 4,490 times |
Joined on Nov 2007
|
#15
|
|
|
2010-09-06
, 15:21
|
|
Posts: 270 |
Thanked: 239 times |
Joined on Dec 2009
@ Czech Republic
|
#16
|
|
|
2010-09-06
, 15:34
|
|
|
Posts: 2,351 |
Thanked: 5,243 times |
Joined on Jan 2009
@ Barcelona
|
#17
|
|
|
2010-09-06
, 15:35
|
|
Posts: 2,802 |
Thanked: 4,490 times |
Joined on Nov 2007
|
#18
|
| The Following 2 Users Say Thank You to lma For This Useful Post: | ||
|
|
2010-09-06
, 15:58
|
|
Posts: 270 |
Thanked: 239 times |
Joined on Dec 2009
@ Czech Republic
|
#19
|
# gpSP makefile
# Gilead Kutnick - Exophase
# GP2X port(ion) - Z
# Global definitions
PREFIX = /scratchbox/users/figa/targets/FREMANTLE_ARMEL/
CC = gcc
STRIP = strip
OBJS = main.o cpu.o memory.u video.o input.o sound.o gui.o \
cheats.o zip.o cpu_threaded.z arm_stub.o \
warm.o
BIN = gpsp
DEB_BUID_OPTIONS = thumb
# Platform specific definitions
VPATH += ..
CFLAGS += -DARM_ARCH -DARM_BUILD -g
# NOTE: -funroll-loops will slow down compiling considerably
# -fno-common was required to get games to start
# -finline-functions breaks cpu_threaded.c
# -fno-strength-reduce is needed to save time compiling
# cpu_threaded.c
#CFLAGS += -O3 -std=c99 -msoft-float -funsigned-char -fno-common \
# -fstrength-reduce -falign-functions -fomit-frame-pointer \
# -ffast-math -fexpensive-optimizations -finline \
# -fstrict-aliasing -finline-functions -fweb -fno-builtin
CFLAGS += -O1 -std=c99 -msoft-float -funsigned-char -fno-common \
-fno-builtin
#INCLUDES = `/scratchbox/users/figa/home/figa/workspace/gpsp/SDL/bin/sdl-config --cflags` -I/scratchbox/users/figa/home/figa/workspace/gpsp/SDL//include
#LIBS = `/scratchbox/users/figa/home/figa/workspace/gpsp/SDL/bin/sdl-config --libs` \
# -lm -ldl -lpthread -lasound -lz
INCLUDES = `/scratchbox/users/figa/targets/FREMANTLE_ARMEL/usr/bin/sdl-config --cflags` -I/scratchbox/users/figa/targets/FREMANTLE_ARMEL/usr//include
LIBS = `/scratchbox/users/figa/targets/FREMANTLE_ARMEL/usr//bin/sdl-config --libs` \
-lm -ldl -lpthread -lasound -lz
#LIBS += -static
#SDL_LIBS=-L/scratchbox/users/figa/home/figa/workspace/gpsp/SDL//lib -Wl,-rpath,/scratchbox/users/figa/home/figa/workspace/gpsp/SDL//lib -lSDL -lpthread -ldl -lasound -lm
#SDL_CFLAGS=-I/scratchbox/users/figa/home/figa/workspace/gpsp/SDL//include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
# Compilation:
.SUFFIXES: .c
%.z: %.c
$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
%.u: %.c
$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
%.o: %.c
$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $<
%.o: %.S
$(CC) $(ASFLAGS) $(INCLUDES) -c -o $@ $<
%.o: %.s
$(CC) $(ASFLAGS) $(INCLUDES) -c -o $@ $<
all: $(OBJS)
$(CC) $(OBJS) $(LIBS) -o $(BIN)
#$(STRIP) $(BIN)
clean:
rm -f *.o *.u *.z $(BIN)
|
|
2010-09-06
, 16:27
|
|
Posts: 2,802 |
Thanked: 4,490 times |
Joined on Nov 2007
|
#20
|
| The Following User Says Thank You to lma For This Useful Post: | ||