annotate Makefile.w32 @ 159:1b6bc8bf6ac3

Create win32/ subdirectory if needed.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 03 Nov 2010 13:36:35 +0200
parents a06d27141c26
children f265e7274a45
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 #
158
a06d27141c26 Add some comments in Win32 MinGW cross build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 119
diff changeset
2 # For win32 version cross-compilation with MinGW suite @ Linux
0
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 #
158
a06d27141c26 Add some comments in Win32 MinGW cross build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 119
diff changeset
4
a06d27141c26 Add some comments in Win32 MinGW cross build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 119
diff changeset
5 # Set PATH to include MinGW cross compiler path FIRST!
64
6a3a917303e4 Some random cleanups, bring back WinSock support.
Matti Hamalainen <ccr@tnsp.org>
parents: 0
diff changeset
6 PATH=/usr/local/i386-mingw32/bin:/usr/bin:/bin
0
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 # C-compiler, flags and linker flags
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9 CC=gcc
68
3ab7751fdad1 MingW compatibility, with one ugly kludge.
Matti Hamalainen <ccr@tnsp.org>
parents: 64
diff changeset
10 CFLAGS=-DHAVE_STRING_H -Ipdcurses
158
a06d27141c26 Add some comments in Win32 MinGW cross build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 119
diff changeset
11
a06d27141c26 Add some comments in Win32 MinGW cross build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 119
diff changeset
12 # Library path must be defined correctly here
119
4bc63a535acb Fix some PDCurses incompatibilities and remove some Win32/PDCurses specific hacks.
Matti Hamalainen <ccr@tnsp.org>
parents: 110
diff changeset
13 LDFLAGS=-L/usr/local/i386-mingw32/lib/ -lmingw32 -liberty -lws2_32 -s
4bc63a535acb Fix some PDCurses incompatibilities and remove some Win32/PDCurses specific hacks.
Matti Hamalainen <ccr@tnsp.org>
parents: 110
diff changeset
14
158
a06d27141c26 Add some comments in Win32 MinGW cross build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 119
diff changeset
15 # Link PDCurses static library here .. you will want to change this
119
4bc63a535acb Fix some PDCurses incompatibilities and remove some Win32/PDCurses specific hacks.
Matti Hamalainen <ccr@tnsp.org>
parents: 110
diff changeset
16 ifeq ($(SDL),y)
4bc63a535acb Fix some PDCurses incompatibilities and remove some Win32/PDCurses specific hacks.
Matti Hamalainen <ccr@tnsp.org>
parents: 110
diff changeset
17 LDFLAGS+=pdcurses/libpdcurses-sdl.a -lSDL
4bc63a535acb Fix some PDCurses incompatibilities and remove some Win32/PDCurses specific hacks.
Matti Hamalainen <ccr@tnsp.org>
parents: 110
diff changeset
18 else
4bc63a535acb Fix some PDCurses incompatibilities and remove some Win32/PDCurses specific hacks.
Matti Hamalainen <ccr@tnsp.org>
parents: 110
diff changeset
19 LDFLAGS+=pdcurses/libpdcurses.a
4bc63a535acb Fix some PDCurses incompatibilities and remove some Win32/PDCurses specific hacks.
Matti Hamalainen <ccr@tnsp.org>
parents: 110
diff changeset
20 endif
0
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22 # Miscellaneous
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23 EXEEXT=.exe
87
9140c33296a8 Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 83
diff changeset
24 OBJPATH=./win32/
158
a06d27141c26 Add some comments in Win32 MinGW cross build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 119
diff changeset
25 BINPATH=./win32/
a06d27141c26 Add some comments in Win32 MinGW cross build Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents: 119
diff changeset
26 #BINPATH=/misc/wine_c/
159
1b6bc8bf6ac3 Create win32/ subdirectory if needed.
Matti Hamalainen <ccr@tnsp.org>
parents: 158
diff changeset
27 TARGETS=$(OBJPATH)
0
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
28
728243125263 Import.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
29 include Makefile.gen
159
1b6bc8bf6ac3 Create win32/ subdirectory if needed.
Matti Hamalainen <ccr@tnsp.org>
parents: 158
diff changeset
30
1b6bc8bf6ac3 Create win32/ subdirectory if needed.
Matti Hamalainen <ccr@tnsp.org>
parents: 158
diff changeset
31 $(OBJPATH):
1b6bc8bf6ac3 Create win32/ subdirectory if needed.
Matti Hamalainen <ccr@tnsp.org>
parents: 158
diff changeset
32 mkdir $@