Mercurial > pidgin.yaz
annotate libgaim/protocols/gg/Makefile.mingw @ 15141:05c55c2b6c25
[gaim-migrate @ 17926]
Mark these strings for translation.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Huetsch <markhuetsch> |
---|---|
date | Sat, 09 Dec 2006 07:39:29 +0000 |
parents | 5d03b309b482 |
children |
rev | line source |
---|---|
14192 | 1 # |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32 (mingw) version of libgg | |
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 = libgg | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
11 CFLAGS += -include win32dep.h |
14555
12cb76aeb21c
[gaim-migrate @ 17278]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
12 TYPE = PLUGIN |
14192 | 13 |
14 # Static or Plugin... | |
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. \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
28 -I./lib \ |
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 | |
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 |
39 ## | |
40 ## SOURCES, OBJECTS | |
41 ## | |
42 C_SRC = \ | |
43 lib/common.c \ | |
44 lib/events.c \ | |
45 lib/http.c \ | |
46 lib/libgadu.c \ | |
47 lib/obsolete.c \ | |
48 lib/pubdir.c \ | |
49 lib/pubdir50.c \ | |
50 buddylist.c \ | |
51 confer.c \ | |
52 gg.c \ | |
53 search.c \ | |
54 gg-utils.c | |
55 | |
56 OBJECTS = $(C_SRC:%.c=%.o) | |
57 | |
58 ## | |
59 ## LIBRARIES | |
60 ## | |
61 LIBS = \ | |
62 -lglib-2.0 \ | |
63 -lintl \ | |
64 -lgaim \ | |
65 -lws2_32 | |
66 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
67 include $(GAIM_COMMON_RULES) |
14192 | 68 |
69 ## | |
70 ## TARGET DEFINITIONS | |
71 ## | |
14576
5d03b309b482
[gaim-migrate @ 17300]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14555
diff
changeset
|
72 .PHONY: all install clean |
14192 | 73 |
74 all: $(TARGET).dll | |
75 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
76 install: all $(DLL_INSTALL_DIR) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14232
diff
changeset
|
77 cp $(TARGET).dll $(DLL_INSTALL_DIR) |
14192 | 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) |
14232
a7590884324d
[gaim-migrate @ 16914]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
82 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
14192 | 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) |