annotate Makefile.gwin @ 36:d17d31b736c2

Improve build system.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 04 Oct 2012 06:47:16 +0300
parents
children 9cbb03e85597
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
36
d17d31b736c2 Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 #
d17d31b736c2 Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 # Generic Windows cross-compilation with MinGW suite @ Linux
d17d31b736c2 Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 # (included from Makefile.w32/w64)
d17d31b736c2 Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4 #
d17d31b736c2 Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5
d17d31b736c2 Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6 DMLIB = ./dmlib/
d17d31b736c2 Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7
d17d31b736c2 Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 # C-compiler, flags and linker flags
d17d31b736c2 Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9 CC=$(MINGW_PREFIX)gcc
d17d31b736c2 Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10 AR=$(MINGW_PREFIX)ar
d17d31b736c2 Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 RANLIB=$(MINGW_PREFIX)ranlib
d17d31b736c2 Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 RM=rm
d17d31b736c2 Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13
d17d31b736c2 Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 SDL_CFLAGS=`$(MINGW_PATH)/bin/sdl-config --cflags`
d17d31b736c2 Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15 SDL_LDFLAGS=`$(MINGW_PATH)/bin/sdl-config --libs` -lSDL -L$(BINPATH)
d17d31b736c2 Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16
d17d31b736c2 Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17 #CFLAGS=-mwindows
d17d31b736c2 Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18 LDFLAGS=-lmingw32 -s
d17d31b736c2 Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19
d17d31b736c2 Improve build system.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20 include $(DMLIB)Makefile.gen