Mercurial > pidgin
annotate libgaim/protocols/sametime/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 libsametime | |
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 = libsametime | |
11 NEEDED_DLLS = $(MEANWHILE_TOP)/bin/libmeanwhile-1.dll | |
12 | |
13 # Static or Plugin... | |
14 ifeq ($(TYPE),STATIC) | |
15 DEFINES += -DSTATIC | |
16 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
17 else | |
18 ifeq ($(TYPE),PLUGIN) | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
19 DLL_INSTALL_DIR = $(GAIM_INSTALL_PLUGINS_DIR) |
14192 | 20 endif |
21 endif | |
22 | |
23 ## | |
24 ## INCLUDE PATHS | |
25 ## | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
26 INCLUDE_PATHS += -I. \ |
14192 | 27 -I$(MEANWHILE_TOP)/include/meanwhile \ |
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 | |
35 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
36 -L$(MEANWHILE_TOP)/lib \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
37 -L$(GAIM_LIB_TOP) |
14192 | 38 |
39 ## | |
40 ## SOURCES, OBJECTS | |
41 ## | |
42 C_SRC = sametime.c | |
43 | |
44 OBJECTS = $(C_SRC:%.c=%.o) | |
45 | |
46 ## | |
47 ## LIBRARIES | |
48 ## | |
49 LIBS = \ | |
50 -lglib-2.0 \ | |
51 -lintl \ | |
52 -lws2_32 \ | |
53 -lmeanwhile \ | |
54 -lgaim \ | |
55 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
56 include $(GAIM_COMMON_RULES) |
14192 | 57 |
58 ## | |
59 ## TARGET DEFINITIONS | |
60 ## | |
61 .PHONY: all clean | |
62 | |
63 all: $(TARGET).dll | |
64 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
65 install: all $(DLL_INSTALL_DIR) $(GAIM_INSTALL_DIR) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
66 cp $(TARGET).dll $(DLL_INSTALL_DIR) |
14192 | 67 cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR) |
68 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
69 $(OBJECTS): $(GAIM_CONFIG_H) |
14192 | 70 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
71 $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(OBJECTS) |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
72 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
14192 | 73 |
74 ## | |
75 ## CLEAN RULES | |
76 ## | |
77 | |
78 clean: | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
79 rm -rf $(OBJECTS) |
14192 | 80 rm -rf $(TARGET).dll |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
81 |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
82 include $(GAIM_COMMON_TARGETS) |