Migrate certificates, icons, logs to XDG dirs
[pidgin-git.git] / libpurple / protocols / yahoo / Makefile.mingw
blob95e2237008ee01b87b15ad1276e00a3b12686fa3
2 # Makefile.mingw
4 # Description: Makefile for win32 (mingw) version of libyahoo
7 PIDGIN_TREE_TOP := ../../..
8 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
10 TARGET = libyahoo
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. \
35                         -L$(GTK_TOP)/lib \
36                         -L$(PURPLE_TOP)
39 ##  SOURCES, OBJECTS
41 C_SRC =                 util.c \
42                         yahoo.c \
43                         yahoochat.c \
44                         yahoo_aliases.c \
45                         yahoo_doodle.c \
46                         yahoo_filexfer.c \
47                         yahoo_friend.c \
48                         yahoo_packet.c \
49                         yahoo_picture.c \
50                         yahoo_profile.c \
51                         ycht.c \
52                         ymsg.c
54 OBJECTS = $(C_SRC:%.c=%.o)
57 ## LIBRARIES
59 LIBS =                  \
60                         -lglib-2.0 \
61                         -lgobject-2.0 \
62                         -lws2_32 \
63                         -lintl \
64                         -lpurple
66 include $(PIDGIN_COMMON_RULES)
69 ## TARGET DEFINITIONS
72 .PHONY: all install clean
74 all: $(TARGET).dll
76 install: all $(DLL_INSTALL_DIR)
77         cp $(TARGET).dll $(DLL_INSTALL_DIR)
79 $(OBJECTS): $(PURPLE_CONFIG_H)
81 $(TARGET).dll: $(PURPLE_DLL).a $(OBJECTS)
82         $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll
85 ## CLEAN RULES
87 clean:
88         rm -f $(OBJECTS) $(TARGET).dll
90 include $(PIDGIN_COMMON_TARGETS)