Migrate certificates, icons, logs to XDG dirs
[pidgin-git.git] / libpurple / protocols / mxit / Makefile.mingw
blob4bb9fbb60f43b422c53cbf7f29231b887bb79a3e
2 # Makefile.mingw
4 # Description: Makefile for win32 (mingw) version of libmxit
7 PIDGIN_TREE_TOP := ../../..
8 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
10 TARGET = libmxit
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)
38 ##  SOURCES, OBJECTS
40 C_SRC =                 actions.c \
41                         chunk.c \
42                         cipher-mxit.c \
43                         client.c \
44                         filexfer.c \
45                         formcmds.c \
46                         login.c \
47                         markup.c \
48                         multimx.c \
49                         mxit.c \
50                         profile.c \
51                         roster.c \
52                         splashscreen.c
54 OBJECTS = $(C_SRC:%.c=%.o)
57 ## LIBRARIES
59 LIBS =  \
60                         -lglib-2.0 \
61                         -lgobject-2.0 \
62                         -lintl \
63                         -lws2_32 \
64                         -lpurple
66 include $(PIDGIN_COMMON_RULES)
69 ## TARGET DEFINITIONS
71 .PHONY: all install clean
73 all: $(TARGET).dll
75 install: all $(DLL_INSTALL_DIR)
76         cp $(TARGET).dll $(DLL_INSTALL_DIR)
78 $(OBJECTS): $(PURPLE_CONFIG_H)
80 $(TARGET).dll: $(PURPLE_DLL).a $(OBJECTS)
81         $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll
84 ## CLEAN RULES
86 clean:
87         rm -f $(OBJECTS)
88         rm -f $(TARGET).dll
90 include $(PIDGIN_COMMON_TARGETS)