Mercurial > pidgin
comparison libgaim/protocols/msn/Makefile.mingw @ 14192:60b1bc8dbf37
[gaim-migrate @ 16863]
Renamed 'core' to 'libgaim'
committer: Tailor Script <tailor@pidgin.im>
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Sat, 19 Aug 2006 01:50:10 +0000 |
parents | |
children | a7590884324d |
comparison
equal
deleted
inserted
replaced
14191:009db0b357b5 | 14192:60b1bc8dbf37 |
---|---|
1 # | |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32 (mingw) version of libmsn | |
5 # | |
6 | |
7 # | |
8 # PATHS | |
9 # | |
10 | |
11 INCLUDE_DIR := . | |
12 GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
13 GAIM_TOP := ../../.. | |
14 MSN_ROOT := . | |
15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
16 | |
17 ## | |
18 ## VARIABLE DEFINITIONS | |
19 ## | |
20 | |
21 TARGET = libmsn | |
22 | |
23 # Compiler Options | |
24 | |
25 CFLAGS = | |
26 | |
27 DEFINES = | |
28 | |
29 # Static or Plugin... | |
30 ifeq ($(TYPE),STATIC) | |
31 DEFINES += -DSTATIC | |
32 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
33 else | |
34 ifeq ($(TYPE),PLUGIN) | |
35 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
36 endif | |
37 endif | |
38 | |
39 | |
40 ## | |
41 ## INCLUDE MAKEFILES | |
42 ## | |
43 | |
44 include $(GAIM_TOP)/src/win32/global.mak | |
45 | |
46 ## | |
47 ## INCLUDE PATHS | |
48 ## | |
49 | |
50 INCLUDE_PATHS += -I$(MSN_ROOT) \ | |
51 -I$(GTK_TOP)/include \ | |
52 -I$(GTK_TOP)/include/gtk-2.0 \ | |
53 -I$(GTK_TOP)/include/glib-2.0 \ | |
54 -I$(GTK_TOP)/include/pango-1.0 \ | |
55 -I$(GTK_TOP)/include/atk-1.0 \ | |
56 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
57 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
58 -I$(GAIM_TOP)/src \ | |
59 -I$(GAIM_TOP)/src/win32 \ | |
60 -I$(GAIM_TOP) | |
61 | |
62 | |
63 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
64 -L$(GAIM_TOP)/src | |
65 | |
66 | |
67 ## | |
68 ## SOURCES, OBJECTS | |
69 ## | |
70 | |
71 C_SRC = cmdproc.c \ | |
72 command.c \ | |
73 dialog.c \ | |
74 directconn.c \ | |
75 error.c \ | |
76 group.c \ | |
77 history.c \ | |
78 httpconn.c \ | |
79 msg.c \ | |
80 msn.c \ | |
81 nexus.c \ | |
82 notification.c \ | |
83 object.c \ | |
84 page.c \ | |
85 servconn.c \ | |
86 session.c \ | |
87 slp.c \ | |
88 slpcall.c \ | |
89 slplink.c \ | |
90 slpmsg.c \ | |
91 slpsession.c \ | |
92 state.c \ | |
93 switchboard.c \ | |
94 sync.c \ | |
95 table.c \ | |
96 transaction.c \ | |
97 user.c \ | |
98 userlist.c \ | |
99 msn-utils.c | |
100 | |
101 | |
102 OBJECTS = $(C_SRC:%.c=%.o) | |
103 | |
104 | |
105 ## | |
106 ## LIBRARIES | |
107 ## | |
108 | |
109 LIBS = -lgtk-win32-2.0 \ | |
110 -lglib-2.0 \ | |
111 -lgdk-win32-2.0 \ | |
112 -lgmodule-2.0 \ | |
113 -lgobject-2.0 \ | |
114 -lws2_32 \ | |
115 -lintl \ | |
116 -lgaim | |
117 | |
118 ## | |
119 ## RULES | |
120 ## | |
121 | |
122 # How to make a C file | |
123 | |
124 %.o: %.c | |
125 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
126 | |
127 ## | |
128 ## TARGET DEFINITIONS | |
129 ## | |
130 | |
131 .PHONY: all clean | |
132 | |
133 all: $(TARGET).dll | |
134 | |
135 install: | |
136 cp $(MSN_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
137 | |
138 | |
139 ## | |
140 ## BUILD Dependencies | |
141 ## | |
142 | |
143 $(GAIM_TOP)/src/gaim.lib: | |
144 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
145 | |
146 ## | |
147 ## BUILD DLL | |
148 ## | |
149 | |
150 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib | |
151 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll | |
152 | |
153 | |
154 ## | |
155 ## CLEAN RULES | |
156 ## | |
157 | |
158 clean: | |
159 rm -rf *.o | |
160 rm -rf $(TARGET).dll | |
161 rm -rf $(TARGET).lib |