Merged pidgin/main into default
[pidgin-git.git] / libpurple / plugins / Makefile.mingw
blob77b12af2cd84188a7961f5a753b35809933502a7
2 # Makefile.mingw
4 # Description: Makefile for win32 (mingw) version of libpurple Plugins
7 PIDGIN_TREE_TOP := ../..
8 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
10 KEYRING_PLUGIN := ./keyrings
12 .SUFFIXES:
13 .SUFFIXES: .c .dll
16 ## INCLUDE PATHS
18 INCLUDE_PATHS +=        \
19                         -I$(GTK_TOP)/include \
20                         -I$(GTK_TOP)/include/glib-2.0 \
21                         -I$(GTK_TOP)/lib/glib-2.0/include \
22                         -I$(PIDGIN_TREE_TOP) \
23                         -I$(PURPLE_TOP) \
24                         -I$(PURPLE_TOP)/win32
26 LIB_PATHS +=            -L$(GTK_TOP)/lib \
27                         -L$(PURPLE_TOP)
30 ## LIBRARIES
32 LIBS =  \
33                         -lglib-2.0 \
34                         -lgobject-2.0 \
35                         -lgmodule-2.0 \
36                         -lintl \
37                         -lws2_32 \
38                         -lpurple
41 ## TARGET DEFINITIONS
43 .PHONY: all clean plugins install
45 all: $(PURPLE_DLL).a plugins
46         $(MAKE_at) $(MAKE) -C $(KEYRING_PLUGIN) -f $(MINGW_MAKEFILE)
48 install: all $(PURPLE_INSTALL_PLUGINS_DIR)
49         $(MAKE_at) $(MAKE) -C $(KEYRING_PLUGIN) -f $(MINGW_MAKEFILE) install
50         cp *.dll $(PURPLE_INSTALL_PLUGINS_DIR)
52 %.dll: %.c $(PURPLE_CONFIG_H) $(PURPLE_VERSION_H)
53         $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@.o -c $<
54         $(CC) -shared $@.o $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $@
56 plugins: \
57                 autoaccept.dll \
58                 buddynote.dll \
59                 idle.dll \
60                 joinpart.dll \
61                 log_reader.dll \
62                 offlinemsg.dll \
63                 psychic.dll \
64                 statenotify.dll
67 ## CLEAN RULES
69 clean:
70         rm -f *.o *.dll
71         $(MAKE_at) $(MAKE) -C $(KEYRING_PLUGIN) -f $(MINGW_MAKEFILE) clean
73 include $(PIDGIN_COMMON_TARGETS)