Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9beed48067
Fetching contributors…

Cannot retrieve contributors at this time

file 60 lines (45 sloc) 1.509 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
# Makefile to compile Wizznic.exe from windows.
# Required libs that are not included in a standard Debian mingw32:
# SDL-devel-1.2.15-mingw32
# SDL_image-1.2.12
# SDL_mixer-1.2.12
# glew-1.7.0-win32

CC = i586-mingw32msvc-gcc
LD = $(CC)
STRIP = i586-mingw32msvc-strip

NAME=wizznic.exe
TARGET= $(NAME)

DEFS = -DDATADIR="\"./\"" -DWIN32 -DWIN32_CROSS

ifneq ($(BUILD_NUMBER),)
  DEFS +=-DBUILD_NUMBER="\"$(BUILD_NUMBER)\""
endif

INCS = -I.

LDFLAGS=$(CFLAGS)
LIBS = -lmingw32 -lSDLmain -lSDL -lSDL_image -lSDL_mixer -lm

#Are we compiling with gl?
ifneq ($(WITH_OPENGL),false)
LIBS += -lopengl32
DEFS += -DWITH_OPENGL
endif

OBJS = dumplevelimages.o 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 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 swscale.o platform/pc.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 $@

install:
install -d -D -m 755 "$(DESTDIR)$(BINDIR)"
install -D -m 755 "$(TARGET)" "$(DESTDIR)$(BINDIR)"
install -d -D -m 755 "$(DESTDIR)$(DATADIR)"
cp -R data "$(DESTDIR)$(DATADIR)"
cp -R packs "$(DESTDIR)$(DATADIR)"
chmod -R 755 "$(DESTIR)$(DATADIR)"

clean:
rm -f *.o $(NAME) platform/*.o
Something went wrong with that request. Please try again.