annotate src/protocols/rendezvous/Makefile.mingw @ 9075:0d5206ffe86a

[gaim-migrate @ 9851] Fixed a privacy-related bug in MSN that affected blocking/permitting, which was due to case-sensitive string comparisons. Patch by Gudmundur Olafsson. 13:19:27 <Aquatopia> I block myself: aquatopia@hotmail.com 13:19:43 <Aquatopia> and when I wanna unblock me, I go to the tools | privacy window 13:20:05 <Aquatopia> and I add: Aquatopia@hotmail.com (I registered to MSN with an uppercase A) 13:20:28 <Aquatopia> the client compares aquatopia@hotmail.com from the server to Aquatopia@hotmail.com committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Wed, 26 May 2004 20:21:30 +0000
parents dbbf5470ba05
children 8bc7ba019e96
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8489
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
1 #
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
2 # Makefile.mingw
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
3 #
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
4 # Description: Makefile for win32 (mingw) version of librendezvous
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
5 #
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
6
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
7 #
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
8 # PATHS
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
9 #
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
10
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
11 INCLUDE_DIR := .
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
12 GTK_TOP := ../../../../win32-dev/gtk_2_0
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
13 GAIM_TOP := ../../..
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
14 RENDEZVOUS_ROOT := .
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
16
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
17 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
18 ## VARIABLE DEFINITIONS
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
19 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
20
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
21 TARGET = librendezvous
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
22
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
23 # Compiler Options
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
24
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
25 CFLAGS =
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
26
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
27 DEFINES =
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
28
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
29 # Static or Plugin...
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
30 ifeq ($(TYPE),STATIC)
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
31 DEFINES += -DSTATIC
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
32 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
33 else
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
34 ifeq ($(TYPE),PLUGIN)
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
35 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
36 endif
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
37 endif
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
38
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
39
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
40 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
41 ## INCLUDE MAKEFILES
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
42 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
43
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
44 include $(GAIM_TOP)/src/win32/global.mak
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
45
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
46 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
47 ## INCLUDE PATHS
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
48 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
49
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
50 INCLUDE_PATHS += -I$(RENDEZVOUS_ROOT) \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
51 -I$(GTK_TOP)/include \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
52 -I$(GTK_TOP)/include/gtk-2.0 \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
53 -I$(GTK_TOP)/include/glib-2.0 \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
54 -I$(GTK_TOP)/include/pango-1.0 \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
55 -I$(GTK_TOP)/include/atk-1.0 \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
56 -I$(GTK_TOP)/lib/glib-2.0/include \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
57 -I$(GTK_TOP)/lib/gtk-2.0/include \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
58 -I$(GAIM_TOP)/src \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
59 -I$(GAIM_TOP)/src/win32 \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
60 -I$(GAIM_TOP)
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
61
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
62
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
63 LIB_PATHS = -L$(GTK_TOP)/lib \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
64 -L$(GAIM_TOP)/src
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
65
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
66
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
67 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
68 ## SOURCES, OBJECTS
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
69 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
70
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
71 C_SRC = mdns.c \
8738
dbbf5470ba05 [gaim-migrate @ 9493]
Mark Doliner <mark@kingant.net>
parents: 8489
diff changeset
72 mdns_cache.c \
8489
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
73 rendezvous.c
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
74
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
75
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
76 OBJECTS = $(C_SRC:%.c=%.o)
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
77
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
78
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
79 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
80 ## LIBRARIES
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
81 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
82
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
83 LIBS = -lgtk-win32-2.0 \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
84 -lglib-2.0 \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
85 -lgdk-win32-2.0 \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
86 -lgmodule-2.0 \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
87 -lgobject-2.0 \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
88 -lws2_32 \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
89 -lintl \
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
90 -lgaim
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
91
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
92
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
93 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
94 ## RULES
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
95 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
96
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
97 # How to make a C file
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
98
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
99 %.o: %.c
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
100 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $<
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
101
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
102 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
103 ## TARGET DEFINITIONS
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
104 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
105
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
106 .PHONY: all clean
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
107
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
108 all: $(TARGET).dll
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
109
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
110 install:
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
111 cp $(RENDEZVOUS_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR)
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
112
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
113
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
114 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
115 ## BUILD Dependencies
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
116 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
117
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
118 $(GAIM_TOP)/src/gaim.lib:
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
119 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
120
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
121 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
122 ## BUILD DLL
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
123 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
124
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
125 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
126 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
127
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
128 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
129 ## CLEAN RULES
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
130 ##
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
131
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
132 clean:
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
133 rm -rf *.o
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
134 rm -rf $(TARGET).dll
b06dcc915c45 [gaim-migrate @ 9224]
Mark Doliner <mark@kingant.net>
parents:
diff changeset
135 rm -rf $(TARGET).lib