comparison libpurple/protocols/msn/Makefile.mingw @ 15374:5fe8042783c1

Rename gtk/ and libgaim/ to pidgin/ and libpurple/
author Sean Egan <seanegan@gmail.com>
date Sat, 20 Jan 2007 02:32:10 +0000
parents
children 0e17470b47c2
comparison
equal deleted inserted replaced
15373:f79e0f4df793 15374:5fe8042783c1
1 #
2 # Makefile.mingw
3 #
4 # Description: Makefile for win32 (mingw) version of libmsn
5 #
6
7 GAIM_TOP := ../../..
8 include $(GAIM_TOP)/libgaim/win32/global.mak
9
10 TARGET = libmsn
11 TYPE = PLUGIN
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)
19 DLL_INSTALL_DIR = $(GAIM_INSTALL_PLUGINS_DIR)
20 endif
21 endif
22
23 ##
24 ## INCLUDE PATHS
25 ##
26 INCLUDE_PATHS += -I. \
27 -I$(GTK_TOP)/include \
28 -I$(GTK_TOP)/include/glib-2.0 \
29 -I$(GTK_TOP)/lib/glib-2.0/include \
30 -I$(GAIM_LIB_TOP) \
31 -I$(GAIM_LIB_TOP)/win32 \
32 -I$(GAIM_TOP)
33
34 LIB_PATHS = -L$(GTK_TOP)/lib \
35 -L$(GAIM_LIB_TOP)
36
37 ##
38 ## SOURCES, OBJECTS
39 ##
40 C_SRC = cmdproc.c \
41 command.c \
42 dialog.c \
43 directconn.c \
44 error.c \
45 group.c \
46 history.c \
47 httpconn.c \
48 msg.c \
49 msn.c \
50 nexus.c \
51 notification.c \
52 object.c \
53 page.c \
54 servconn.c \
55 session.c \
56 slp.c \
57 slpcall.c \
58 slplink.c \
59 slpmsg.c \
60 slpsession.c \
61 state.c \
62 switchboard.c \
63 sync.c \
64 table.c \
65 transaction.c \
66 user.c \
67 userlist.c \
68 msn-utils.c
69
70 OBJECTS = $(C_SRC:%.c=%.o)
71
72 ##
73 ## LIBRARIES
74 ##
75 LIBS = \
76 -lglib-2.0 \
77 -lintl \
78 -lws2_32 \
79 -lgaim
80
81 include $(GAIM_COMMON_RULES)
82
83 ##
84 ## TARGET DEFINITIONS
85 ##
86 .PHONY: all install clean
87
88 all: $(TARGET).dll
89
90 install: all $(DLL_INSTALL_DIR)
91 cp $(TARGET).dll $(DLL_INSTALL_DIR)
92
93 $(OBJECTS): $(GAIM_CONFIG_H)
94
95 $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(OBJECTS)
96 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll
97
98 ##
99 ## CLEAN RULES
100 ##
101 clean:
102 rm -f $(OBJECTS)
103 rm -f $(TARGET).dll
104
105 include $(GAIM_COMMON_TARGETS)