Mercurial > pidgin.yaz
annotate libgaim/plugins/ssl/Makefile.mingw @ 14840:b8eb759625b0
[gaim-migrate @ 17609]
I guess it's just the Max Headroom in me.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 28 Oct 2006 20:10:08 +0000 |
parents | 5d03b309b482 |
children | 7ca4a6820154 |
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 ## | |
14576
5d03b309b482
[gaim-migrate @ 17300]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
67 .PHONY: all install clean |
14192 | 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: |
14576
5d03b309b482
[gaim-migrate @ 17300]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
91 rm -f $(OBJECTS) $(OBJECTS_NSS) $(TARGET).dll $(TARGET_NSS).dll |
14192 | 92 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14224
diff
changeset
|
93 include $(GAIM_COMMON_TARGETS) |