Merged pidgin/main into default
[pidgin-git.git] / libpurple / protocols / oscar / Makefile.mingw
blob98a27d83ad7bf8f62b937e928ce2176c6cde19fd
2 # Makefile.mingw
4 # Description: Makefile for win32 (mingw) version of liboscar
7 PIDGIN_TREE_TOP := ../../..
8 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
10 TARGET = liboscar
11 TYPE = PLUGIN
13 # Static or Plugin...
14 ifeq ($(TYPE),STATIC)
15   DEFINES += -DSTATIC
16   DLL_INSTALL_DIR =             $(PURPLE_INSTALL_DIR)
17 else
18   ifeq ($(TYPE),PLUGIN)
19     DLL_INSTALL_DIR =   $(PURPLE_INSTALL_PLUGINS_DIR)
20   endif
21 endif
24 ## INCLUDE PATHS
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$(PURPLE_TOP) \
31                         -I$(PURPLE_TOP)/win32 \
32                         -I$(PIDGIN_TREE_TOP)
34 LIB_PATHS +=            -L$(GTK_TOP)/lib \
35                         -L$(PURPLE_TOP) \
36                         -L.
39 ##  SOURCES, OBJECTS
41 C_SRC = \
42         aim.c                   \
43         authorization.c         \
44         bstream.c               \
45         clientlogin.c           \
46         encoding.c              \
47         family_admin.c          \
48         family_alert.c          \
49         family_auth.c           \
50         family_bart.c           \
51         family_bos.c            \
52         family_buddy.c          \
53         family_chat.c           \
54         family_chatnav.c        \
55         family_feedbag.c        \
56         family_icbm.c           \
57         family_icq.c            \
58         family_locate.c         \
59         family_oservice.c       \
60         family_popup.c          \
61         family_stats.c          \
62         family_userlookup.c     \
63         flap_connection.c       \
64         icq.c                   \
65         kerberos.c              \
66         misc.c                  \
67         msgcookie.c             \
68         odc.c                   \
69         oft.c                   \
70         oscar.c                 \
71         oscar_data.c            \
72         peer.c                  \
73         peer_proxy.c            \
74         rxhandlers.c            \
75         snac.c                  \
76         tlv.c                   \
77         userinfo.c              \
78         util.c                  \
79         visibility.c
81 OBJECTS = $(C_SRC:%.c=%.o)
84 ## LIBRARIES
86 LIBS =  \
87                         -lglib-2.0 \
88                         -lgobject-2.0 \
89                         -lintl \
90                         -lws2_32 \
91                         -lpurple
93 include $(PIDGIN_COMMON_RULES)
96 ## TARGET DEFINITIONS
98 .PHONY: all install clean
100 all: $(TARGET).dll
102 install: all $(DLL_INSTALL_DIR)
103         cp $(TARGET).dll $(DLL_INSTALL_DIR)
105 $(OBJECTS): $(PURPLE_CONFIG_H)
107 $(TARGET).dll: $(PURPLE_DLL).a $(OBJECTS)
108         $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll
111 ## CLEAN RULES
113 clean:
114         rm -f $(OBJECTS) $(TARGET).dll
116 include $(PIDGIN_COMMON_TARGETS)