Mercurial > hg > nnchat
annotate Makefile.w32 @ 645:0d7e6b61956c dev-1_5_1
No need for SDL anymore.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 09 Jan 2015 20:30:14 +0200 |
parents | 904c359b1ced |
children | ff94100cfc7c |
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 # |
4 | |
5 # C-compiler, flags and linker flags | |
537 | 6 MINGW_PREFIX=i686-w64-mingw32- |
7 CC=$(MINGW_PREFIX)gcc | |
8 AR=$(MINGW_PREFIX)ar | |
9 RANLIB=$(MINGW_PREFIX)ranlib | |
10 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
|
11 |
533
52c56ada3816
Fix Win32/MinGW cross-compilation target to work with Debian's gcc-mingw-w64
Matti Hamalainen <ccr@tnsp.org>
parents:
471
diff
changeset
|
12 CFLAGS=-DHAVE_STRING_H -Ipdcurses -mwindows |
645 | 13 LDFLAGS= -lws2_32 -lole32 -mwindows pdcurses/libpdcurses.a -s |
0 | 14 |
15 # Miscellaneous | |
16 EXEEXT=.exe | |
626 | 17 OBJPATH=obj/win32/ |
18 BINPATH=installer/ | |
199
5ef630818bef
Get version number from external file 'VERSION'.
Matti Hamalainen <ccr@tnsp.org>
parents:
197
diff
changeset
|
19 |
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
|
20 EXTRAOBJS= resource.o |
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
|
21 ICON=resource.ico |
0 | 22 |
23 include Makefile.gen | |
159
1b6bc8bf6ac3
Create win32/ subdirectory if needed.
Matti Hamalainen <ccr@tnsp.org>
parents:
158
diff
changeset
|
24 |
213 | 25 resource.rc: resource.rc.in $(ICON) VERSION |
26 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
|
27 |
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
|
28 resource.o: resource.rc |
537 | 29 $(WINDRES) $< -O coff -o $@ |
227 | 30 |
337
386a9febfa73
Improvements in Windows Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
269
diff
changeset
|
31 |
386a9febfa73
Improvements in Windows Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
269
diff
changeset
|
32 DOC=$(BINPATH)/README.html |
227 | 33 |
337
386a9febfa73
Improvements in Windows Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
269
diff
changeset
|
34 update-doc: |
471
4e178dfd0cc3
Fix updating of documentation.
Matti Hamalainen <ccr@tnsp.org>
parents:
351
diff
changeset
|
35 @wget -qO- http://www.tnsp.org/~ccr/nnchat/ | tr '\n' '§' | sed "s/<.-- BEGIN -->.*<.-- END -->//g" | tr '§' '\n' > "$(DOC).new" |
4e178dfd0cc3
Fix updating of documentation.
Matti Hamalainen <ccr@tnsp.org>
parents:
351
diff
changeset
|
36 @if diff -u "$(DOC)" "$(DOC).new" > /dev/null; then echo "No differences."; else cp "$(DOC).new" "$(DOC)"; fi |
337
386a9febfa73
Improvements in Windows Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
269
diff
changeset
|
37 |
386a9febfa73
Improvements in Windows Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
269
diff
changeset
|
38 $(DOC): update-doc |
386a9febfa73
Improvements in Windows Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
269
diff
changeset
|
39 |
386a9febfa73
Improvements in Windows Makefile.
Matti Hamalainen <ccr@tnsp.org>
parents:
269
diff
changeset
|
40 upload: $(BINPATH)/nncsetup.msi $(DOC) |
566
f0354b35d906
Improve win32 MSI uploading by adding the current version number to the MSI filename.
Matti Hamalainen <ccr@tnsp.org>
parents:
537
diff
changeset
|
41 @scp $< ccr@tnsp.org:public_html/nnchat/nncsetup-$(NN_VERSION).msi |
f0354b35d906
Improve win32 MSI uploading by adding the current version number to the MSI filename.
Matti Hamalainen <ccr@tnsp.org>
parents:
537
diff
changeset
|
42 @touch $@ |