Mercurial > hg > nnchat
annotate Makefile.w32 @ 684:931f3a0f7d7d
Added signature for changeset af3e837558f0
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 09 Jul 2018 06:10:28 +0300 |
parents | 650e7a5c74c5 |
children | 264cada93ae9 |
rev | line source |
---|---|
0 | 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 | 3 # |
673
358cdc4c9178
Fix and improve Windows Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
647
diff
changeset
|
4 MINGW_PREFIX=i686-w64-mingw32- |
0 | 5 |
673
358cdc4c9178
Fix and improve Windows Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
647
diff
changeset
|
6 PREFIX = ./win32/ |
358cdc4c9178
Fix and improve Windows Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
647
diff
changeset
|
7 BINPATH = ./installer/ |
358cdc4c9178
Fix and improve Windows Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
647
diff
changeset
|
8 OBJPATH = obj/win32/ |
358cdc4c9178
Fix and improve Windows Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
647
diff
changeset
|
9 EXEEXT = .exe |
358cdc4c9178
Fix and improve Windows Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
647
diff
changeset
|
10 INSTALL = |
358cdc4c9178
Fix and improve Windows Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
647
diff
changeset
|
11 DOC = $(BINPATH)/README.html |
358cdc4c9178
Fix and improve Windows Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
647
diff
changeset
|
12 |
358cdc4c9178
Fix and improve Windows Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
647
diff
changeset
|
13 # C-compiler, etc |
537 | 14 CC=$(MINGW_PREFIX)gcc |
15 AR=$(MINGW_PREFIX)ar | |
16 RANLIB=$(MINGW_PREFIX)ranlib | |
17 WINDRES=$(MINGW_PREFIX)windres | |
119
4bc63a535acb
Fix some PDCurses incompatibilities and remove some Win32/PDCurses specific hacks.
Matti Hamalainen <ccr@tnsp.org>
parents:
110
diff
changeset
|
18 |
673
358cdc4c9178
Fix and improve Windows Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
647
diff
changeset
|
19 CFLAGS += -DHAVE_STRING_H -Ipdcurses -mwindows -DTH_BYTEORDER=TH_LITTLE_ENDIAN -D_NO_BOOL_TYPEDEF |
358cdc4c9178
Fix and improve Windows Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
647
diff
changeset
|
20 LDFLAGS += -lws2_32 -lole32 -mwindows pdcurses/libpdcurses.a -s |
0 | 21 |
673
358cdc4c9178
Fix and improve Windows Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
647
diff
changeset
|
22 ### |
358cdc4c9178
Fix and improve Windows Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
647
diff
changeset
|
23 ### Miscellaneous |
358cdc4c9178
Fix and improve Windows Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
647
diff
changeset
|
24 ### |
358cdc4c9178
Fix and improve Windows Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
647
diff
changeset
|
25 EXTRAOBJS = resource.o |
358cdc4c9178
Fix and improve Windows Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
647
diff
changeset
|
26 ICON = resource.ico |
0 | 27 |
28 include Makefile.gen | |
159
1b6bc8bf6ac3
Create win32/ subdirectory if needed.
Matti Hamalainen <ccr@tnsp.org>
parents:
158
diff
changeset
|
29 |
213 | 30 resource.rc: resource.rc.in $(ICON) VERSION |
31 sed -e "s/@VERSION@/$(NN_VERSION)/g;s/@VERSION_COM@/$(NN_VERSION_COM)/g;s/@ICON@/$(ICON)/g;s#@EXE@#$(notdir $(NNCHAT_BIN))#g" < $< > $@ | |
195
829457be9eea
Build system changes to support (in a big kludgy manner) icon and version information resource generation for Win32 binaries.
Matti Hamalainen <ccr@tnsp.org>
parents:
176
diff
changeset
|
32 |
829457be9eea
Build system changes to support (in a big kludgy manner) icon and version information resource generation for Win32 binaries.
Matti Hamalainen <ccr@tnsp.org>
parents:
176
diff
changeset
|
33 resource.o: resource.rc |
537 | 34 $(WINDRES) $< -O coff -o $@ |
227 | 35 |