Migrate certificates, icons, logs to XDG dirs
[pidgin-git.git] / pidgin / plugins / cap / Makefile.mingw
blobd799cf1d61a591a85e0defe6b07bb19778937a5d
2 # Makefile.mingw
4 # Description: Makefile for cap plugin.
7 PIDGIN_TREE_TOP := ../../..
8 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
10 TARGET = cap
12 # This is where sqlite3.[ch] from the sqlite "amalgamation" archive were extracted to
13 # This is available from http://www.sqlite.org/download.html
14 SQLITE_TOP ?= $(WIN32_DEV_TOP)/sqlite-3.4.1
17 ## INCLUDE PATHS
19 INCLUDE_PATHS +=        -I. \
20                         -I$(SQLITE_TOP) \
21                         -I$(GTK_TOP)/include \
22                         -I$(GTK_TOP)/include/gtk-2.0 \
23                         -I$(GTK_TOP)/include/glib-2.0 \
24                         -I$(GTK_TOP)/include/pango-1.0 \
25                         -I$(GTK_TOP)/include/atk-1.0 \
26                         -I$(GTK_TOP)/include/cairo \
27                         -I$(GTK_TOP)/lib/glib-2.0/include \
28                         -I$(GTK_TOP)/lib/gtk-2.0/include \
29                         -I$(PURPLE_TOP) \
30                         -I$(PURPLE_TOP)/win32 \
31                         -I$(PIDGIN_TOP) \
32                         -I$(PIDGIN_TOP)/win32 \
33                         -I$(PIDGIN_TREE_TOP)
35 LIB_PATHS +=            -L$(GTK_TOP)/lib \
36                         -L$(PURPLE_TOP) \
37                         -L$(PIDGIN_TOP)
40 ##  SOURCES, OBJECTS
42 C_SRC =                 cap.c \
43                         $(SQLITE_TOP)/sqlite3.c
45 OBJECTS = $(C_SRC:%.c=%.o)
48 ## LIBRARIES
50 LIBS =                  -lgtk-win32-2.0 \
51                         -lglib-2.0 \
52                         -lgdk-win32-2.0 \
53                         -lgobject-2.0 \
54                         -lintl \
55                         -lpurple \
56                         -lpidgin
58 include $(PIDGIN_COMMON_RULES)
61 ## TARGET DEFINITIONS
63 .PHONY: all install clean
65 all: $(TARGET).dll
67 install: $(PIDGIN_INSTALL_PLUGINS_DIR) all
68         cp $(TARGET).dll $(PIDGIN_INSTALL_PLUGINS_DIR)
70 $(OBJECTS): $(PIDGIN_CONFIG_H)
72 $(TARGET).dll: $(PURPLE_DLL).a $(PIDGIN_DLL).a $(OBJECTS)
73         $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll
76 ## CLEAN RULES
78 clean:
79         rm -rf $(OBJECTS)
80         rm -rf $(TARGET).dll
82 include $(PIDGIN_COMMON_TARGETS)