annotate Makefile.w32 @ 841:dd35d66c3714

Improve build process.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 14 Jul 2014 00:09:12 +0300
parents a9d0d35476ae
children 4a2ed354ab4c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 #
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 # For win32 version cross-compilation with MinGW suite @ Linux
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 #
841
dd35d66c3714 Improve build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 840
diff changeset
4 DMLIB = ./
dd35d66c3714 Improve build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 840
diff changeset
5 BINPATH=./exe/
dd35d66c3714 Improve build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 840
diff changeset
6 OBJPATH=./obj/win32/
dd35d66c3714 Improve build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 840
diff changeset
7 EXEEXT=.exe
dd35d66c3714 Improve build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 840
diff changeset
8
0
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9 MINGW_PREFIX=i686-w64-mingw32-
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10 MINGW_PATH=/usr/i686-w64-mingw32
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 # C-compiler, flags and linker flags
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 CC=$(MINGW_PREFIX)gcc
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 AR=$(MINGW_PREFIX)ar
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15 RANLIB=$(MINGW_PREFIX)ranlib
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16 RM=rm
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18 SDL_CFLAGS=`$(MINGW_PATH)/bin/sdl-config --cflags`
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19 SDL_LDFLAGS=`$(MINGW_PATH)/bin/sdl-config --libs` -lSDL -L$(BINPATH)
424
e88b2993801c Fix build for Win32.
Matti Hamalainen <ccr@tnsp.org>
parents: 112
diff changeset
20
840
a9d0d35476ae Add flag variables for SDL_ttf.
Matti Hamalainen <ccr@tnsp.org>
parents: 424
diff changeset
21 SDL_TTF_CFLAGS=
a9d0d35476ae Add flag variables for SDL_ttf.
Matti Hamalainen <ccr@tnsp.org>
parents: 424
diff changeset
22 SDL_TTF_LDFLAGS=-lSDL_ttf
a9d0d35476ae Add flag variables for SDL_ttf.
Matti Hamalainen <ccr@tnsp.org>
parents: 424
diff changeset
23
112
e1b6aa3017c2 Add Tremor stuff to default Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
24 TREMOR_CFLAGS=-I$(MINGW_PATH)/include/tremor
e1b6aa3017c2 Add Tremor stuff to default Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
25 TREMOR_LDFLAGS=$(MINGW_PATH)/lib/libvorbisidec.a $(MINGW_PATH)/lib/libogg.a
0
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26
424
e88b2993801c Fix build for Win32.
Matti Hamalainen <ccr@tnsp.org>
parents: 112
diff changeset
27 LIBPNG_CFLAGS=-I$(MINGW_PATH)/include
e88b2993801c Fix build for Win32.
Matti Hamalainen <ccr@tnsp.org>
parents: 112
diff changeset
28 LIBPNG_LDFLAGS=$(MINGW_PATH)/lib/libpng.a
e88b2993801c Fix build for Win32.
Matti Hamalainen <ccr@tnsp.org>
parents: 112
diff changeset
29
e88b2993801c Fix build for Win32.
Matti Hamalainen <ccr@tnsp.org>
parents: 112
diff changeset
30 ZLIB_CFLAGS=
e88b2993801c Fix build for Win32.
Matti Hamalainen <ccr@tnsp.org>
parents: 112
diff changeset
31 ZLIB_LDFLAGS=$(MINGW_PATH)/lib/libz.a
e88b2993801c Fix build for Win32.
Matti Hamalainen <ccr@tnsp.org>
parents: 112
diff changeset
32
0
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
33 #CFLAGS=-mwindows
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
34 LDFLAGS=-lmingw32 -s
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
35
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
36
1
6e169d87d963 Improve buildsystem to support more flexible builds.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
37 include $(DMLIB)Makefile.gen