Wed, 30 Jul 2008 03:58:21 +0000
Cleanup unnecessary casts and etc.
| 7031 | 1 | # |
| 2 | # Makefile.mingw | |
| 3 | # | |
| 4 | # Description: Makefile for ssl plugin. | |
| 5 | # | |
| 6 | ||
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
7 | PIDGIN_TREE_TOP := ../../.. |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
8 | include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak |
| 7031 | 9 | |
| 10 | ## | |
| 11 | ## VARIABLE DEFINITIONS | |
| 12 | ## | |
| 13 | TARGET = ssl | |
| 14 | TARGET_NSS = ssl-nss | |
| 15 | ||
|
15138
45cef2c7d3b6
[gaim-migrate @ 17860]
Daniel Atallah <datallah@pidgin.im>
parents:
14638
diff
changeset
|
16 | NEEDED_DLLS = \ |
|
45cef2c7d3b6
[gaim-migrate @ 17860]
Daniel Atallah <datallah@pidgin.im>
parents:
14638
diff
changeset
|
17 | $(NSS_TOP)/lib/freebl3.dll \ |
|
45cef2c7d3b6
[gaim-migrate @ 17860]
Daniel Atallah <datallah@pidgin.im>
parents:
14638
diff
changeset
|
18 | $(NSS_TOP)/lib/nss3.dll \ |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
19 | $(NSS_TOP)/lib/nssckbi.dll \ |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
20 | $(NSS_TOP)/lib/softokn3.dll \ |
|
19668
2071903c58e4
Fix the win32 build for the cert SoC branch merge.
Daniel Atallah <datallah@pidgin.im>
parents:
16393
diff
changeset
|
21 | $(NSS_TOP)/lib/smime3.dll \ |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
22 | $(NSS_TOP)/lib/ssl3.dll \ |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
23 | $(NSPR_TOP)/lib/nspr4.dll \ |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
24 | $(NSPR_TOP)/lib/plc4.dll \ |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
25 | $(NSPR_TOP)/lib/plds4.dll |
| 7031 | 26 | |
| 27 | ## | |
| 28 | ## INCLUDE PATHS | |
| 29 | ## | |
| 30 | INCLUDE_PATHS += -I. \ | |
| 31 | -I$(GTK_TOP)/include \ | |
| 32 | -I$(GTK_TOP)/include/glib-2.0 \ | |
| 33 | -I$(GTK_TOP)/lib/glib-2.0/include \ | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
34 | -I$(PURPLE_TOP) \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
35 | -I$(PURPLE_TOP)/win32 \ |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
36 | -I$(PIDGIN_TREE_TOP) \ |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
37 | -I$(NSS_TOP)/include \ |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
38 | -I$(NSPR_TOP)/include |
| 7031 | 39 | |
|
16393
d89faf3f5282
Allow include and lib paths to be overridden from local.ent
Daniel Atallah <datallah@pidgin.im>
parents:
16100
diff
changeset
|
40 | LIB_PATHS += -L$(GTK_TOP)/lib \ |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
41 | -L$(PURPLE_TOP) \ |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
42 | -L$(NSS_TOP)/lib \ |
|
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
43 | -L$(NSPR_TOP)/lib |
| 7031 | 44 | |
| 45 | ## | |
| 46 | ## SOURCES, OBJECTS | |
| 47 | ## | |
| 48 | C_SRC = ssl.c | |
| 49 | C_SRC_NSS = ssl-nss.c | |
| 50 | OBJECTS = $(C_SRC:%.c=%.o) | |
| 51 | OBJECTS_NSS = $(C_SRC_NSS:%.c=%.o) | |
| 52 | ||
| 53 | ## | |
| 54 | ## LIBRARIES | |
| 55 | ## | |
|
14286
9ff15ceacd34
[gaim-migrate @ 16905]
Daniel Atallah <datallah@pidgin.im>
parents:
14254
diff
changeset
|
56 | LIBS = \ |
| 7031 | 57 | -lglib-2.0 \ |
| 58 | -lws2_32 \ | |
| 59 | -lintl \ | |
|
15438
c3e93cd038c5
Update win32 build for libpurple and pidgin renames. This compiles, but is far from complete.
Daniel Atallah <datallah@pidgin.im>
parents:
15435
diff
changeset
|
60 | -lpurple \ |
| 7031 | 61 | -lnss3 \ |
| 62 | -lnspr4 \ | |
|
19668
2071903c58e4
Fix the win32 build for the cert SoC branch merge.
Daniel Atallah <datallah@pidgin.im>
parents:
16393
diff
changeset
|
63 | -lssl3 \ |
|
2071903c58e4
Fix the win32 build for the cert SoC branch merge.
Daniel Atallah <datallah@pidgin.im>
parents:
16393
diff
changeset
|
64 | -lsmime3 |
| 7031 | 65 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
66 | include $(PIDGIN_COMMON_RULES) |
| 7031 | 67 | |
| 68 | ## | |
| 69 | ## TARGET DEFINITIONS | |
| 70 | ## | |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
71 | .PHONY: all install clean |
| 7031 | 72 | |
|
7042
a1f48a580379
[gaim-migrate @ 7605]
Christian Hammond <chipx86@chipx86.com>
parents:
7031
diff
changeset
|
73 | all: $(TARGET).dll $(TARGET_NSS).dll |
| 7031 | 74 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
75 | install: all $(PURPLE_INSTALL_PLUGINS_DIR) $(PURPLE_INSTALL_DIR) |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
76 | cp $(TARGET).dll $(PURPLE_INSTALL_PLUGINS_DIR) |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
77 | cp $(TARGET_NSS).dll $(PURPLE_INSTALL_PLUGINS_DIR) |
|
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
78 | cp $(NEEDED_DLLS) $(PURPLE_INSTALL_DIR) |
| 7031 | 79 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
80 | $(OBJECTS) $(OBJECTS_NSS): $(PURPLE_CONFIG_H) |
| 7031 | 81 | |
| 82 | ## | |
| 83 | ## BUILD DLL | |
| 84 | ## | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
85 | $(TARGET).dll: $(PURPLE_DLL).a $(OBJECTS) |
| 7031 | 86 | $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
|
7056
ce7ac622e415
[gaim-migrate @ 7619]
Herman Bloggs <herman@bluedigits.com>
parents:
7042
diff
changeset
|
87 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
88 | $(TARGET_NSS).dll: $(PURPLE_DLL) $(OBJECTS_NSS) |
| 7031 | 89 | $(CC) -shared $(OBJECTS_NSS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET_NSS).dll |
| 90 | ||
| 91 | ## | |
| 92 | ## CLEAN RULES | |
| 93 | ## | |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14286
diff
changeset
|
94 | clean: |
|
14638
b0fa76dac93f
[gaim-migrate @ 17300]
Daniel Atallah <datallah@pidgin.im>
parents:
14377
diff
changeset
|
95 | rm -f $(OBJECTS) $(OBJECTS_NSS) $(TARGET).dll $(TARGET_NSS).dll |
| 7031 | 96 | |
|
16100
a0ab70986c10
This should get all the Win32 Makefiles in line with
Kevin Stange <kstange@pidgin.im>
parents:
15438
diff
changeset
|
97 | include $(PIDGIN_COMMON_TARGETS) |