aboutsummaryrefslogtreecommitdiff
path: root/Makefile.mingw
blob: 5c56fa5d57c6d2a9ccfa610e89141802e7b534b4 (plain)
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
# Where is scummvm will be installed
SCUMMVMPATH=C:/scummvm
SRC=.
VPATH=$(SRC)

### Modify these paths
SDL_CFLAGS=-I$(SRC)/sdl/include
SDL_LIBS=-L$(SRC)/sdl/lib -lSDLmain -lSDL

# If MAD (MPEG Audio Decoder) header and library isn't installed remove -lmad and -DCOMPRESSED_SOUND_FILE
CC      = g++
CFLAGS  = -g -O -Wall -Wstrict-prototypes -Wuninitialized -Wno-long-long -Wno-multichar 
DEFINES = -DCOMPRESSED_SOUND_FILE
LDFLAGS :=-mwindows -mconsole
INCLUDES:= $(SDL_CFLAGS) -I./ -I./sound
CPPFLAGS= $(DEFINES) $(INCLUDES)
LIBS	= -lmingw32 -lwinmm -lmad $(SDL_LIBS)
EXEEXT	:=.exe

# Uncomment this for SDL normal output
OBJS	= sdl.o scummvmico.o
# Or uncomment this for SDL with OpenGL output
#OBJS	= sdl_gl.o scummvmico.o
#LIBS += -lopengl32

include Makefile.common

scummvmico.o: scummvm.ico
	windres scummvm.rc scummvmico.o


# Some additional targets
install:   scummvm$(EXEEXT)
	mkdir -p $(SCUMMVMPATH)
	strip scummvm$(EXEEXT) -o $(SCUMMVMPATH)/scummvm$(EXEEXT)

dist:   install
	cp copying.txt $(SCUMMVMPATH)
	cp readme.txt $(SCUMMVMPATH)
	cp whatsnew.txt $(SCUMMVMPATH)
	cp SDL/README-SDL.txt $(SCUMMVMPATH)
	cp SDL/lib/SDL.dll $(SCUMMVMPATH)
	u2d $(SCUMMVMPATH)/*.txt

.PHONY: install dist