Mercurial > hg > dmlib
annotate Makefile.cross-mingw @ 1141:cc7371944327
Remove useless linker flags from SDL_LDFLAGS.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 05 Mar 2015 02:32:59 +0200 |
parents | fa9a79daa5da |
children | 622a469932b1 |
rev | line source |
---|---|
0 | 1 # |
879 | 2 # For Win32/Win64 version cross-compilation via MinGW |
3 # compiler suite under Linux/Unix | |
0 | 4 # |
886 | 5 MINGW_PREFIX ?= i686-w64-mingw32- |
6 MINGW_PATH ?= /usr/i686-w64-mingw32 | |
7 | |
877
4a2ed354ab4c
Use ?= in the Makefiles to accept preset values.
Matti Hamalainen <ccr@tnsp.org>
parents:
841
diff
changeset
|
8 DMLIB ?= ./ |
4a2ed354ab4c
Use ?= in the Makefiles to accept preset values.
Matti Hamalainen <ccr@tnsp.org>
parents:
841
diff
changeset
|
9 BINPATH ?= ./exe/ |
4a2ed354ab4c
Use ?= in the Makefiles to accept preset values.
Matti Hamalainen <ccr@tnsp.org>
parents:
841
diff
changeset
|
10 OBJPATH ?= ./obj/win32/ |
4a2ed354ab4c
Use ?= in the Makefiles to accept preset values.
Matti Hamalainen <ccr@tnsp.org>
parents:
841
diff
changeset
|
11 EXEEXT ?= .exe |
0 | 12 CC=$(MINGW_PREFIX)gcc |
13 AR=$(MINGW_PREFIX)ar | |
14 RANLIB=$(MINGW_PREFIX)ranlib | |
15 RM=rm | |
16 | |
17 SDL_CFLAGS=`$(MINGW_PATH)/bin/sdl-config --cflags` | |
1141
cc7371944327
Remove useless linker flags from SDL_LDFLAGS.
Matti Hamalainen <ccr@tnsp.org>
parents:
1140
diff
changeset
|
18 SDL_LDFLAGS=`$(MINGW_PATH)/bin/sdl-config --libs` |
424 | 19 |
840
a9d0d35476ae
Add flag variables for SDL_ttf.
Matti Hamalainen <ccr@tnsp.org>
parents:
424
diff
changeset
|
20 SDL_TTF_CFLAGS= |
a9d0d35476ae
Add flag variables for SDL_ttf.
Matti Hamalainen <ccr@tnsp.org>
parents:
424
diff
changeset
|
21 SDL_TTF_LDFLAGS=-lSDL_ttf |
a9d0d35476ae
Add flag variables for SDL_ttf.
Matti Hamalainen <ccr@tnsp.org>
parents:
424
diff
changeset
|
22 |
112
e1b6aa3017c2
Add Tremor stuff to default Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents:
1
diff
changeset
|
23 TREMOR_CFLAGS=-I$(MINGW_PATH)/include/tremor |
e1b6aa3017c2
Add Tremor stuff to default Makefiles.
Matti Hamalainen <ccr@tnsp.org>
parents:
1
diff
changeset
|
24 TREMOR_LDFLAGS=$(MINGW_PATH)/lib/libvorbisidec.a $(MINGW_PATH)/lib/libogg.a |
0 | 25 |
424 | 26 LIBPNG_CFLAGS=-I$(MINGW_PATH)/include |
27 LIBPNG_LDFLAGS=$(MINGW_PATH)/lib/libpng.a | |
28 | |
29 ZLIB_CFLAGS= | |
30 ZLIB_LDFLAGS=$(MINGW_PATH)/lib/libz.a | |
31 | |
1140
fa9a79daa5da
Cross-build process fixes.
Matti Hamalainen <ccr@tnsp.org>
parents:
1139
diff
changeset
|
32 TOOL_LDFLAGS=-lmingw32 -lSDLmain -lSDL -mconsole |
0 | 33 |
1
6e169d87d963
Improve buildsystem to support more flexible builds.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
34 include $(DMLIB)Makefile.gen |