Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 45 lines (31 sloc) 1.168 kb
5ba04ea Jimmy Added optional TOOLCHAIN parameter to wiz Makefile
authored
1 ifeq ($(TOOLCHAIN),)
a4e20a5 Jimmy Initial Pandora port merge, tested on Linux and Wiz.
authored
2 OPEN2X = ./tools/toolchains/wiz/arm-openwiz-linux-gnu
5ba04ea Jimmy Added optional TOOLCHAIN parameter to wiz Makefile
authored
3 else
4 OPEN2X = $(TOOLCHAIN)
5 endif
540ed40 Jimmy Initial commit
authored
6
7 CC = $(OPEN2X)/bin/arm-openwiz-linux-gnu-gcc
8 LD = $(CC)
9 STRIP = $(OPEN2X)/bin/arm-openwiz-linux-gnu-strip
10
11 NAME=wizznic
12 TARGET= $(NAME)-wiz
13
d237e7c Jimmy Forgot something..
authored
14 DEFS = -DDATADIR="\"./\"" -DWIZ -DIS_LITTLE_ENDIAN -D_REENTRANT -DGP2X_ASM
540ed40 Jimmy Initial commit
authored
15
4f7366c Jimmy Includes optional BUILD_NUMBER when building.
authored
16 ifneq ($(BUILD_NUMBER),)
17 DEFS +=-DBUILD_NUMBER="\"$(BUILD_NUMBER)\""
18 endif
19
540ed40 Jimmy Initial commit
authored
20 INCS = -I. -I$(OPEN2X)/include -I$(OPEN2X)/include/SDL
21
22 LDFLAGS=$(CFLAGS) -L$(OPEN2X)/lib
23 LIBS = -Wl,-rpath,$(OPEN2X)/lib -lSDL -lSDL_image -lSDL_mixer -lpng -lm -lz -lpthread
24
25 OBJS = board.o cursor.o draw.o input.o main.o menu.o sprite.o text.o ticks.o\
26 sound.o game.o player.o list.o levels.o platform/wiz.o pixel.o stars.o levelselector.o\
27 leveleditor.o particle.o pack.o settings.o stats.o strings.o mbrowse.o\
6a88b22 Jimmy Implemented switches.
authored
28 teleport.o credits.o waveimg.o userfiles.o pointer.o transition.o switch.o
540ed40 Jimmy Initial commit
authored
29
30 MYCC = $(CC) $(CFLAGS) $(INCS) $(DEFS)
31
32 ########################################################################
33
34 sdl: $(TARGET)
35
36 $(TARGET): $(OBJS)
37 $(LD) $(LDFLAGS) $(OBJS) -o $@ $(LIBS)
38 $(STRIP) $@
39
40 .c.o:
41 $(MYCC) -c $< -o $@
42
43 clean:
44 rm -f *.o *-wiz platform/*.o
Something went wrong with that request. Please try again.