Mercurial > pidgin
annotate libgaim/protocols/silc/Makefile.mingw @ 14315:8793fc8f7064
[gaim-migrate @ 17008]
Lee Roach revamped the win32 makefiles. This makes me happy, they were in dire need of some loving.
This makes life a great deal easier for anyone who wants to build out-of-tree plugins.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Wed, 23 Aug 2006 21:34:43 +0000 |
parents | a7590884324d |
children | 12cb76aeb21c |
rev | line source |
---|---|
14192 | 1 # |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32 (mingw) version of libsilc protocol plugin | |
5 # | |
6 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
7 GAIM_TOP := ../../.. |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
8 include $(GAIM_TOP)/libgaim/win32/global.mak |
14192 | 9 |
10 TARGET = libsilc | |
11 NEEDED_DLLS = $(SILC_TOOLKIT)/lib/silc.dll \ | |
12 $(SILC_TOOLKIT)/lib/silcclient.dll | |
13 | |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
14 # Static or Plugin... |
14192 | 15 ifeq ($(TYPE),STATIC) |
16 DEFINES += -DSTATIC | |
17 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
18 else | |
19 ifeq ($(TYPE),PLUGIN) | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
20 DLL_INSTALL_DIR = $(GAIM_INSTALL_PLUGINS_DIR) |
14192 | 21 endif |
22 endif | |
23 | |
24 ## | |
25 ## INCLUDE PATHS | |
26 ## | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
27 INCLUDE_PATHS += -I. \ |
14192 | 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:
14232
diff
changeset
|
31 -I$(GAIM_LIB_TOP) \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
32 -I$(GAIM_LIB_TOP)/win32 \ |
14192 | 33 -I$(GAIM_TOP) \ |
34 -I$(SILC_TOOLKIT)/include | |
35 | |
36 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
37 -L$(GAIM_LIB_TOP) \ |
14192 | 38 -L$(SILC_TOOLKIT)/lib |
39 | |
40 ## | |
41 ## SOURCES, OBJECTS | |
42 ## | |
43 C_SRC = silc.c \ | |
44 buddy.c \ | |
45 chat.c \ | |
46 ft.c \ | |
47 ops.c \ | |
48 pk.c \ | |
49 util.c \ | |
50 wb.c | |
51 | |
52 OBJECTS = $(C_SRC:%.c=%.o) | |
53 | |
54 ## | |
55 ## LIBRARIES | |
56 ## | |
57 LIBS = \ | |
58 -lglib-2.0 \ | |
59 -lws2_32 \ | |
60 -lintl \ | |
61 -lgaim \ | |
62 -lsilc \ | |
63 -lsilcclient | |
64 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
65 include $(GAIM_COMMON_RULES) |
14192 | 66 |
67 ## | |
68 ## TARGET DEFINITIONS | |
69 ## | |
70 .PHONY: all clean | |
71 | |
72 all: $(TARGET).dll | |
73 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
74 install: all $(DLL_INSTALL_DIR) $(GAIM_INSTALL_DIR) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
75 cp $(TARGET).dll $(DLL_INSTALL_DIR) |
14192 | 76 cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR) |
77 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
78 $(OBJECTS): $(GAIM_CONFIG_H) |
14192 | 79 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
80 $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(OBJECTS) |
14192 | 81 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--image-base,0x64000000 -o $(TARGET).dll |
82 | |
83 ## | |
84 ## CLEAN RULES | |
85 ## | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
86 clean: |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
87 rm -rf $(OBJECTS) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
88 rm -rf $(TARGET).dll |
14192 | 89 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
90 include $(GAIM_COMMON_TARGETS) |