Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 9beed48067
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (31 sloc) 1.168 kB
ifeq ($(TOOLCHAIN),)
OPEN2X = ./tools/toolchains/wiz/arm-openwiz-linux-gnu
else
OPEN2X = $(TOOLCHAIN)
endif
CC = $(OPEN2X)/bin/arm-openwiz-linux-gnu-gcc
LD = $(CC)
STRIP = $(OPEN2X)/bin/arm-openwiz-linux-gnu-strip
NAME=wizznic
TARGET= $(NAME)-wiz
DEFS = -DDATADIR="\"./\"" -DWIZ -DIS_LITTLE_ENDIAN -D_REENTRANT -DGP2X_ASM
ifneq ($(BUILD_NUMBER),)
DEFS +=-DBUILD_NUMBER="\"$(BUILD_NUMBER)\""
endif
INCS = -I. -I$(OPEN2X)/include -I$(OPEN2X)/include/SDL
LDFLAGS=$(CFLAGS) -L$(OPEN2X)/lib
LIBS = -Wl,-rpath,$(OPEN2X)/lib -lSDL -lSDL_image -lSDL_mixer -lpng -lm -lz -lpthread
OBJS = board.o cursor.o draw.o input.o main.o menu.o sprite.o text.o ticks.o\
sound.o game.o player.o list.o levels.o platform/wiz.o pixel.o stars.o levelselector.o\
leveleditor.o particle.o pack.o settings.o stats.o strings.o mbrowse.o\
teleport.o credits.o waveimg.o userfiles.o pointer.o transition.o switch.o
MYCC = $(CC) $(CFLAGS) $(INCS) $(DEFS)
########################################################################
sdl: $(TARGET)
$(TARGET): $(OBJS)
$(LD) $(LDFLAGS) $(OBJS) -o $@ $(LIBS)
$(STRIP) $@
.c.o:
$(MYCC) -c $< -o $@
clean:
rm -f *.o *-wiz platform/*.o
Jump to Line
Something went wrong with that request. Please try again.