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