Mercurial > pidgin
annotate Makefile.mingw @ 9449:ad93d76666dd
[gaim-migrate @ 10273]
Minor changes to the listen function in network.c
We were using strerror() to print the string form of
errno when getaddrinfo() failed, but that is incorrect.
getaddrinfo() does not use errno or strerror. It retuns an
integer error code which can be converted to a string with
gai_strerror(errorcode)
When we didn't have getaddrinfo, and we were unable to set
SO_REUSEADDR, we would abort the listen attempt. That's not
necessary becuase SO_REUSEADDR isn't vital, it's just nice
to have (right?)
struct addrinfo *res was not getting freed when we did not have
any interfaces to listen on (incredibly rare)
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 05 Jul 2004 15:43:26 +0000 |
parents | 9ee2542d1104 |
children | c60809a33460 |
rev | line source |
---|---|
3630 | 1 # Makefile.mingw |
8615 | 2 # |
3630 | 3 # Author: hermanator12002@yahoo.com |
4 # Date 9/11/02 | |
5 # Description: Top Makefile for win32 (mingw) port of Gaim | |
6 # | |
7 | |
8 GAIM_SRC = ./src | |
9 GAIM_PROTOS = $(GAIM_SRC)/protocols | |
10 GAIM_PLUGINS = ./plugins | |
11 GAIM_PIXMAPS = ./pixmaps | |
4017
4cf1d0ff9f5f
[gaim-migrate @ 4217]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3967
diff
changeset
|
12 GAIM_SOUNDS = ./sounds |
3630 | 13 GAIM_INSTALL_DIR = ./win32-install-dir |
4863
ee46d3875cc8
[gaim-migrate @ 5190]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4537
diff
changeset
|
14 GTKSPELL_TOP = ../win32-dev/gtkspell-2.0.4/gtkspell |
4537
741a18f2fb23
[gaim-migrate @ 4816]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4373
diff
changeset
|
15 IDLETRACK_TOP = $(GAIM_SRC)/win32/IdleTracker |
3920
1b3beae6c59c
[gaim-migrate @ 4085]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3905
diff
changeset
|
16 GTKRC_TOP = ../win32-dev/gtkrc |
3630 | 17 OSCAR = $(GAIM_PROTOS)/oscar |
18 YAHOO = $(GAIM_PROTOS)/yahoo | |
19 MSN = $(GAIM_PROTOS)/msn | |
20 TOC = $(GAIM_PROTOS)/toc | |
21 IRC = $(GAIM_PROTOS)/irc | |
22 JABBER = $(GAIM_PROTOS)/jabber | |
23 NAPSTER = $(GAIM_PROTOS)/napster | |
6103
ee4858c41a18
[gaim-migrate @ 6564]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5931
diff
changeset
|
24 TREPIA = $(GAIM_PROTOS)/trepia |
3630 | 25 GG = $(GAIM_PROTOS)/gg |
8675 | 26 NOVELL = $(GAIM_PROTOS)/novell |
3630 | 27 PO = ./po |
28 | |
3967
cafc0968ea6b
[gaim-migrate @ 4151]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3963
diff
changeset
|
29 VERSION := $(shell cat ./VERSION) |
cafc0968ea6b
[gaim-migrate @ 4151]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3963
diff
changeset
|
30 |
6816
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6795
diff
changeset
|
31 NEEDED_DLLS = $(GTKSPELL_TOP)/libgtkspell.dll \ |
7056
c92dbccd7448
[gaim-migrate @ 7619]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6816
diff
changeset
|
32 $(IDLETRACK_TOP)/idletrack.dll |
3630 | 33 |
4017
4cf1d0ff9f5f
[gaim-migrate @ 4217]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3967
diff
changeset
|
34 SOUNDS = $(GAIM_SOUNDS)/leave.wav \ |
4cf1d0ff9f5f
[gaim-migrate @ 4217]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3967
diff
changeset
|
35 $(GAIM_SOUNDS)/redalert.wav \ |
4cf1d0ff9f5f
[gaim-migrate @ 4217]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3967
diff
changeset
|
36 $(GAIM_SOUNDS)/receive.wav \ |
4cf1d0ff9f5f
[gaim-migrate @ 4217]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3967
diff
changeset
|
37 $(GAIM_SOUNDS)/send.wav \ |
4cf1d0ff9f5f
[gaim-migrate @ 4217]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3967
diff
changeset
|
38 $(GAIM_SOUNDS)/arrive.wav |
4cf1d0ff9f5f
[gaim-migrate @ 4217]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3967
diff
changeset
|
39 |
3630 | 40 |
41 ## | |
8615 | 42 ## Don't forget to change STATIC_PROTO_INIT, in config.h.mingw if you |
3630 | 43 ## change the status of a protocol (static/plugin) |
44 ## | |
45 | |
46 OSCAR_TYPE = PLUGIN | |
47 YAHOO_TYPE = PLUGIN | |
48 MSN_TYPE = PLUGIN | |
49 TOC_TYPE = PLUGIN | |
50 IRC_TYPE = PLUGIN | |
51 JABBER_TYPE = PLUGIN | |
52 NAPSTER_TYPE = PLUGIN | |
53 GG_TYPE = PLUGIN | |
8675 | 54 NOVELL_TYPE = PLUGIN |
6103
ee4858c41a18
[gaim-migrate @ 6564]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5931
diff
changeset
|
55 TREPIA_TYPE = PLUGIN |
3630 | 56 |
57 all: | |
58 cp config.h.mingw config.h | |
59 $(MAKE) TYPE='$(OSCAR_TYPE)' -C $(OSCAR) -f Makefile.mingw | |
60 $(MAKE) TYPE='$(YAHOO_TYPE)' -C $(YAHOO) -f Makefile.mingw | |
61 $(MAKE) TYPE='$(MSN_TYPE)' -C $(MSN) -f Makefile.mingw | |
62 $(MAKE) TYPE='$(IRC_TYPE)' -C $(IRC) -f Makefile.mingw | |
63 $(MAKE) TYPE='$(JABBER_TYPE)' -C $(JABBER) -f Makefile.mingw | |
64 $(MAKE) TYPE='$(GG_TYPE)' -C $(GG) -f Makefile.mingw | |
8675 | 65 $(MAKE) TYPE='$(NOVELL_TYPE)' -C $(NOVELL) -f Makefile.mingw |
4373
dcc6c130c6d9
[gaim-migrate @ 4639]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4363
diff
changeset
|
66 $(MAKE) -C $(GAIM_SRC) -f Makefile.mingw |
3630 | 67 $(MAKE) -C $(GAIM_PLUGINS) -f Makefile.mingw |
68 | |
69 | |
70 install: all | |
71 mkdir -p $(GAIM_INSTALL_DIR)/plugins | |
4017
4cf1d0ff9f5f
[gaim-migrate @ 4217]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3967
diff
changeset
|
72 mkdir -p $(GAIM_INSTALL_DIR)/sounds/gaim |
4319
13f41fc1fa8f
[gaim-migrate @ 4574]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4060
diff
changeset
|
73 $(MAKE) -C $(GAIM_PIXMAPS) -f Makefile.mingw install |
3630 | 74 $(MAKE) -C $(PO) -f Makefile.mingw install |
75 $(MAKE) -C $(GAIM_SRC) -f Makefile.mingw install | |
76 $(MAKE) -C $(GAIM_PLUGINS) -f Makefile.mingw install | |
77 $(MAKE) TYPE='$(OSCAR_TYPE)' -C $(OSCAR) -f Makefile.mingw install | |
78 $(MAKE) TYPE='$(YAHOO_TYPE)' -C $(YAHOO) -f Makefile.mingw install | |
79 $(MAKE) TYPE='$(MSN_TYPE)' -C $(MSN) -f Makefile.mingw install | |
80 $(MAKE) TYPE='$(IRC_TYPE)' -C $(IRC) -f Makefile.mingw install | |
81 $(MAKE) TYPE='$(JABBER_TYPE)' -C $(JABBER) -f Makefile.mingw install | |
82 $(MAKE) TYPE='$(GG_TYPE)' -C $(GG) -f Makefile.mingw install | |
8675 | 83 $(MAKE) TYPE='$(NOVELL_TYPE)' -C $(NOVELL) -f Makefile.mingw install |
3630 | 84 cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR) |
4017
4cf1d0ff9f5f
[gaim-migrate @ 4217]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3967
diff
changeset
|
85 cp $(SOUNDS) $(GAIM_INSTALL_DIR)/sounds/gaim |
3630 | 86 |
87 installer: | |
5384
0b544518a365
[gaim-migrate @ 5760]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4897
diff
changeset
|
88 makensis.exe /DGAIM_VERSION="$(VERSION)" /DWITH_GTK gaim-installer.nsi |
0b544518a365
[gaim-migrate @ 5760]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4897
diff
changeset
|
89 |
0b544518a365
[gaim-migrate @ 5760]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4897
diff
changeset
|
90 installer_nogtk: |
3967
cafc0968ea6b
[gaim-migrate @ 4151]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3963
diff
changeset
|
91 makensis.exe /DGAIM_VERSION="$(VERSION)" gaim-installer.nsi |
3630 | 92 |
5931
8b5dd7117f56
[gaim-migrate @ 6371]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5387
diff
changeset
|
93 installer_debug: |
8b5dd7117f56
[gaim-migrate @ 6371]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5387
diff
changeset
|
94 makensis.exe /DGAIM_VERSION="$(VERSION)" /DDEBUG gaim-installer.nsi |
8b5dd7117f56
[gaim-migrate @ 6371]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5387
diff
changeset
|
95 |
5384
0b544518a365
[gaim-migrate @ 5760]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4897
diff
changeset
|
96 installers: installer installer_nogtk |
0b544518a365
[gaim-migrate @ 5760]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
4897
diff
changeset
|
97 |
5931
8b5dd7117f56
[gaim-migrate @ 6371]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
5387
diff
changeset
|
98 |
3630 | 99 clean: |
100 $(MAKE) -C $(PO) -f Makefile.mingw clean | |
101 $(MAKE) -C $(OSCAR) -f Makefile.mingw clean | |
102 $(MAKE) -C $(YAHOO) -f Makefile.mingw clean | |
103 $(MAKE) -C $(MSN) -f Makefile.mingw clean | |
104 $(MAKE) -C $(IRC) -f Makefile.mingw clean | |
105 $(MAKE) -C $(JABBER) -f Makefile.mingw clean | |
106 $(MAKE) -C $(GG) -f Makefile.mingw clean | |
8675 | 107 $(MAKE) -C $(NOVELL) -f Makefile.mingw clean |
3630 | 108 $(MAKE) -C $(GAIM_SRC) -f Makefile.mingw clean |
109 $(MAKE) -C $(GAIM_PLUGINS) -f Makefile.mingw clean | |
110 rm -rf config.h $(GAIM_INSTALL_DIR) | |
3898
34292bf25e4d
[gaim-migrate @ 4050]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
3896
diff
changeset
|
111 rm -rf gaim*.exe |