Mercurial > pidgin
annotate libgaim/protocols/silc/Makefile.mingw @ 14803:967c39d78bc4
[gaim-migrate @ 17568]
I'm an idiot.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Mon, 23 Oct 2006 19:43:45 +0000 |
parents | 5d03b309b482 |
children |
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 | |
14555
12cb76aeb21c
[gaim-migrate @ 17278]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
13 TYPE = PLUGIN |
14192 | 14 |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
15 # Static or Plugin... |
14192 | 16 ifeq ($(TYPE),STATIC) |
17 DEFINES += -DSTATIC | |
18 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
19 else | |
20 ifeq ($(TYPE),PLUGIN) | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
21 DLL_INSTALL_DIR = $(GAIM_INSTALL_PLUGINS_DIR) |
14192 | 22 endif |
23 endif | |
24 | |
25 ## | |
26 ## INCLUDE PATHS | |
27 ## | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
28 INCLUDE_PATHS += -I. \ |
14192 | 29 -I$(GTK_TOP)/include \ |
30 -I$(GTK_TOP)/include/glib-2.0 \ | |
31 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
32 -I$(GAIM_LIB_TOP) \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
33 -I$(GAIM_LIB_TOP)/win32 \ |
14192 | 34 -I$(GAIM_TOP) \ |
35 -I$(SILC_TOOLKIT)/include | |
36 | |
37 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
38 -L$(GAIM_LIB_TOP) \ |
14192 | 39 -L$(SILC_TOOLKIT)/lib |
40 | |
41 ## | |
42 ## SOURCES, OBJECTS | |
43 ## | |
44 C_SRC = silc.c \ | |
45 buddy.c \ | |
46 chat.c \ | |
47 ft.c \ | |
48 ops.c \ | |
49 pk.c \ | |
50 util.c \ | |
51 wb.c | |
52 | |
53 OBJECTS = $(C_SRC:%.c=%.o) | |
54 | |
55 ## | |
56 ## LIBRARIES | |
57 ## | |
58 LIBS = \ | |
59 -lglib-2.0 \ | |
60 -lws2_32 \ | |
61 -lintl \ | |
62 -lgaim \ | |
63 -lsilc \ | |
64 -lsilcclient | |
65 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
66 include $(GAIM_COMMON_RULES) |
14192 | 67 |
68 ## | |
69 ## TARGET DEFINITIONS | |
70 ## | |
14576
5d03b309b482
[gaim-migrate @ 17300]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14555
diff
changeset
|
71 .PHONY: all install clean |
14192 | 72 |
73 all: $(TARGET).dll | |
74 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
75 install: all $(DLL_INSTALL_DIR) $(GAIM_INSTALL_DIR) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
76 cp $(TARGET).dll $(DLL_INSTALL_DIR) |
14192 | 77 cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR) |
78 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
79 $(OBJECTS): $(GAIM_CONFIG_H) |
14192 | 80 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
81 $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(OBJECTS) |
14192 | 82 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--image-base,0x64000000 -o $(TARGET).dll |
83 | |
84 ## | |
85 ## CLEAN RULES | |
86 ## | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
87 clean: |
14555
12cb76aeb21c
[gaim-migrate @ 17278]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
88 rm -f $(OBJECTS) |
12cb76aeb21c
[gaim-migrate @ 17278]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
89 rm -f $(TARGET).dll |
14192 | 90 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
91 include $(GAIM_COMMON_TARGETS) |