Mercurial > hg > dmlib
annotate Makefile.cross-mingw @ 878:ac6066a31ec7
Rename Makefile.w32 to more logical Makefile.cross-mingw
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 04 Feb 2015 19:08:44 +0200 |
parents | Makefile.w32@4a2ed354ab4c |
children | d6b18e9a3a62 |
rev | line source |
---|---|
0 | 1 # |
2 # For win32 version cross-compilation with MinGW suite @ Linux | |
3 # | |
877
4a2ed354ab4c
Use ?= in the Makefiles to accept preset values.
Matti Hamalainen <ccr@tnsp.org>
parents:
841
diff
changeset
|
4 DMLIB ?= ./ |
4a2ed354ab4c
Use ?= in the Makefiles to accept preset values.
Matti Hamalainen <ccr@tnsp.org>
parents:
841
diff
changeset
|
5 BINPATH ?= ./exe/ |
4a2ed354ab4c
Use ?= in the Makefiles to accept preset values.
Matti Hamalainen <ccr@tnsp.org>
parents:
841
diff
changeset
|
6 OBJPATH ?= ./obj/win32/ |
4a2ed354ab4c
Use ?= in the Makefiles to accept preset values.
Matti Hamalainen <ccr@tnsp.org>
parents:
841
diff
changeset
|
7 EXEEXT ?= .exe |
841 | 8 |
877
4a2ed354ab4c
Use ?= in the Makefiles to accept preset values.
Matti Hamalainen <ccr@tnsp.org>
parents:
841
diff
changeset
|
9 MINGW_PREFIX ?= i686-w64-mingw32- |
4a2ed354ab4c
Use ?= in the Makefiles to accept preset values.
Matti Hamalainen <ccr@tnsp.org>
parents:
841
diff
changeset
|
10 MINGW_PATH ?= /usr/i686-w64-mingw32 |
0 | 11 |
12 # C-compiler, flags and linker flags | |
13 CC=$(MINGW_PREFIX)gcc | |
14 AR=$(MINGW_PREFIX)ar | |
15 RANLIB=$(MINGW_PREFIX)ranlib | |
16 RM=rm | |
17 | |
18 SDL_CFLAGS=`$(MINGW_PATH)/bin/sdl-config --cflags` | |
19 SDL_LDFLAGS=`$(MINGW_PATH)/bin/sdl-config --libs` -lSDL -L$(BINPATH) | |
424 | 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 | 26 |
424 | 27 LIBPNG_CFLAGS=-I$(MINGW_PATH)/include |
28 LIBPNG_LDFLAGS=$(MINGW_PATH)/lib/libpng.a | |
29 | |
30 ZLIB_CFLAGS= | |
31 ZLIB_LDFLAGS=$(MINGW_PATH)/lib/libz.a | |
32 | |
0 | 33 #CFLAGS=-mwindows |
34 LDFLAGS=-lmingw32 -s | |
35 | |
36 | |
1
6e169d87d963
Improve buildsystem to support more flexible builds.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
37 include $(DMLIB)Makefile.gen |