annotate Makefile.gwin @ 44:e6cb35183ace default tip

Create object file target directory automatically.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 19 Mar 2013 07:23:05 +0200
parents f896fe6a98da
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23
702fb015c844 Add mingw32 crossbuild Makefile for win32 target.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 #
702fb015c844 Add mingw32 crossbuild Makefile for win32 target.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 # Generic Windows cross-compilation with MinGW suite @ Linux
702fb015c844 Add mingw32 crossbuild Makefile for win32 target.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 # (included from Makefile.w32/w64)
702fb015c844 Add mingw32 crossbuild Makefile for win32 target.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4 #
702fb015c844 Add mingw32 crossbuild Makefile for win32 target.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5
702fb015c844 Add mingw32 crossbuild Makefile for win32 target.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6 # C-compiler, flags and linker flags
702fb015c844 Add mingw32 crossbuild Makefile for win32 target.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7 CC=$(MINGW_PREFIX)gcc
702fb015c844 Add mingw32 crossbuild Makefile for win32 target.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 RM=rm
702fb015c844 Add mingw32 crossbuild Makefile for win32 target.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9
702fb015c844 Add mingw32 crossbuild Makefile for win32 target.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10 SDL_CFLAGS=`$(MINGW_PATH)/bin/sdl-config --cflags`
25
f896fe6a98da Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
11 SDL_LDFLAGS=`$(MINGW_PATH)/bin/sdl-config --libs` -lSDL
23
702fb015c844 Add mingw32 crossbuild Makefile for win32 target.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12
25
f896fe6a98da Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
13 CFLAGS = -march=pentium-m
f896fe6a98da Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
14 LDFLAGS = -lmingw32
23
702fb015c844 Add mingw32 crossbuild Makefile for win32 target.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15
702fb015c844 Add mingw32 crossbuild Makefile for win32 target.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16
25
f896fe6a98da Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 23
diff changeset
17 include Makefile.gen