annotate Makefile.cross-mingw @ 879:d6b18e9a3a62

Comments, etc.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 04 Feb 2015 19:09:42 +0200
parents ac6066a31ec7
children 6abb6c25d8ed
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 #
879
d6b18e9a3a62 Comments, etc.
Matti Hamalainen <ccr@tnsp.org>
parents: 878
diff changeset
2 # For Win32/Win64 version cross-compilation via MinGW
d6b18e9a3a62 Comments, etc.
Matti Hamalainen <ccr@tnsp.org>
parents: 878
diff changeset
3 # compiler suite under Linux/Unix
0
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4 #
877
4a2ed354ab4c Use ?= in the Makefiles to accept preset values.
Matti Hamalainen <ccr@tnsp.org>
parents: 841
diff changeset
5 DMLIB ?= ./
4a2ed354ab4c Use ?= in the Makefiles to accept preset values.
Matti Hamalainen <ccr@tnsp.org>
parents: 841
diff changeset
6 BINPATH ?= ./exe/
4a2ed354ab4c Use ?= in the Makefiles to accept preset values.
Matti Hamalainen <ccr@tnsp.org>
parents: 841
diff changeset
7 OBJPATH ?= ./obj/win32/
4a2ed354ab4c Use ?= in the Makefiles to accept preset values.
Matti Hamalainen <ccr@tnsp.org>
parents: 841
diff changeset
8 EXEEXT ?= .exe
841
dd35d66c3714 Improve build process.
Matti Hamalainen <ccr@tnsp.org>
parents: 840
diff changeset
9
877
4a2ed354ab4c Use ?= in the Makefiles to accept preset values.
Matti Hamalainen <ccr@tnsp.org>
parents: 841
diff changeset
10 MINGW_PREFIX ?= i686-w64-mingw32-
4a2ed354ab4c Use ?= in the Makefiles to accept preset values.
Matti Hamalainen <ccr@tnsp.org>
parents: 841
diff changeset
11 MINGW_PATH ?= /usr/i686-w64-mingw32
0
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 # C-compiler, flags and linker flags
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 CC=$(MINGW_PREFIX)gcc
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15 AR=$(MINGW_PREFIX)ar
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16 RANLIB=$(MINGW_PREFIX)ranlib
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17 RM=rm
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19 SDL_CFLAGS=`$(MINGW_PATH)/bin/sdl-config --cflags`
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20 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
21
840
a9d0d35476ae Add flag variables for SDL_ttf.
Matti Hamalainen <ccr@tnsp.org>
parents: 424
diff changeset
22 SDL_TTF_CFLAGS=
a9d0d35476ae Add flag variables for SDL_ttf.
Matti Hamalainen <ccr@tnsp.org>
parents: 424
diff changeset
23 SDL_TTF_LDFLAGS=-lSDL_ttf
a9d0d35476ae Add flag variables for SDL_ttf.
Matti Hamalainen <ccr@tnsp.org>
parents: 424
diff changeset
24
112
e1b6aa3017c2 Add Tremor stuff to default Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
25 TREMOR_CFLAGS=-I$(MINGW_PATH)/include/tremor
e1b6aa3017c2 Add Tremor stuff to default Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents: 1
diff changeset
26 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
27
424
e88b2993801c Fix build for Win32.
Matti Hamalainen <ccr@tnsp.org>
parents: 112
diff changeset
28 LIBPNG_CFLAGS=-I$(MINGW_PATH)/include
e88b2993801c Fix build for Win32.
Matti Hamalainen <ccr@tnsp.org>
parents: 112
diff changeset
29 LIBPNG_LDFLAGS=$(MINGW_PATH)/lib/libpng.a
e88b2993801c Fix build for Win32.
Matti Hamalainen <ccr@tnsp.org>
parents: 112
diff changeset
30
e88b2993801c Fix build for Win32.
Matti Hamalainen <ccr@tnsp.org>
parents: 112
diff changeset
31 ZLIB_CFLAGS=
e88b2993801c Fix build for Win32.
Matti Hamalainen <ccr@tnsp.org>
parents: 112
diff changeset
32 ZLIB_LDFLAGS=$(MINGW_PATH)/lib/libz.a
e88b2993801c Fix build for Win32.
Matti Hamalainen <ccr@tnsp.org>
parents: 112
diff changeset
33
0
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
34 #CFLAGS=-mwindows
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
35 LDFLAGS=-lmingw32 -s
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
36
32250b436bca Initial re-import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
37
1
6e169d87d963 Improve buildsystem to support more flexible builds.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
38 include $(DMLIB)Makefile.gen