Mercurial > pidgin.yaz
annotate libgaim/plugins/ssl/Makefile.mingw @ 14392:92eb7a040663
[gaim-migrate @ 17099]
Better connection error messages for dnsquery failures in
general and for oscar
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 31 Aug 2006 09:44:51 +0000 |
parents | 8793fc8f7064 |
children | 5d03b309b482 |
rev | line source |
---|---|
14192 | 1 # |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for ssl plugin. | |
5 # | |
6 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
7 GAIM_TOP := ../../.. |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
8 include $(GAIM_TOP)/libgaim/win32/global.mak |
14192 | 9 |
10 ## | |
11 ## VARIABLE DEFINITIONS | |
12 ## | |
13 TARGET = ssl | |
14 TARGET_NSS = ssl-nss | |
15 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
16 NEEDED_DLLS = $(NSS_TOP)/lib/nss3.dll \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
17 $(NSS_TOP)/lib/nssckbi.dll \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
18 $(NSS_TOP)/lib/softokn3.dll \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
19 $(NSS_TOP)/lib/ssl3.dll \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
20 $(NSPR_TOP)/lib/nspr4.dll \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
21 $(NSPR_TOP)/lib/plc4.dll \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
22 $(NSPR_TOP)/lib/plds4.dll |
14192 | 23 |
24 ## | |
25 ## INCLUDE PATHS | |
26 ## | |
27 INCLUDE_PATHS += -I. \ | |
28 -I$(GTK_TOP)/include \ | |
29 -I$(GTK_TOP)/include/glib-2.0 \ | |
30 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
31 -I$(GAIM_LIB_TOP) \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
32 -I$(GAIM_LIB_TOP)/win32 \ |
14192 | 33 -I$(GAIM_TOP) \ |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
34 -I$(NSS_TOP)/include \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
35 -I$(NSPR_TOP)/include |
14192 | 36 |
37 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
38 -L$(GAIM_LIB_TOP) \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
39 -L$(NSS_TOP)/lib \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
40 -L$(NSPR_TOP)/lib |
14192 | 41 |
42 ## | |
43 ## SOURCES, OBJECTS | |
44 ## | |
45 C_SRC = ssl.c | |
46 C_SRC_NSS = ssl-nss.c | |
47 OBJECTS = $(C_SRC:%.c=%.o) | |
48 OBJECTS_NSS = $(C_SRC_NSS:%.c=%.o) | |
49 | |
50 ## | |
51 ## LIBRARIES | |
52 ## | |
14224
ab8a105eff62
[gaim-migrate @ 16905]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
53 LIBS = \ |
14192 | 54 -lglib-2.0 \ |
55 -lws2_32 \ | |
56 -lintl \ | |
57 -lgaim \ | |
58 -lnss3 \ | |
59 -lnspr4 \ | |
60 -lssl3 | |
61 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
62 include $(GAIM_COMMON_RULES) |
14192 | 63 |
64 ## | |
65 ## TARGET DEFINITIONS | |
66 ## | |
67 .PHONY: all clean | |
68 | |
69 all: $(TARGET).dll $(TARGET_NSS).dll | |
70 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
71 install: all $(GAIM_INSTALL_PLUGINS_DIR) $(GAIM_INSTALL_DIR) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
72 cp $(TARGET).dll $(GAIM_INSTALL_PLUGINS_DIR) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
73 cp $(TARGET_NSS).dll $(GAIM_INSTALL_PLUGINS_DIR) |
14192 | 74 cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR) |
75 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
76 $(OBJECTS) $(OBJECTS_NSS): $(GAIM_CONFIG_H) |
14192 | 77 |
78 ## | |
79 ## BUILD DLL | |
80 ## | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
81 $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(OBJECTS) |
14192 | 82 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
83 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
84 $(TARGET_NSS).dll: $(GAIM_LIBGAIM_DLL) $(OBJECTS_NSS) |
14192 | 85 $(CC) -shared $(OBJECTS_NSS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET_NSS).dll |
86 | |
87 ## | |
88 ## CLEAN RULES | |
89 ## | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
90 clean: |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
91 rm -rf $(OBJECTS) $(OBJECTS_NSS) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
92 rm -rf $(TARGET).dll $(TARGET_NSS).dll |
14192 | 93 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
94 include $(GAIM_COMMON_TARGETS) |