4 # Description: Makefile for win32 (mingw) version of libsilc protocol plugin
7 PIDGIN_TREE_TOP := ../../..
8 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
10 DEFINES := $(subst -DWIN32_LEAN_AND_MEAN,,$(DEFINES))
13 NEEDED_DLLS = $(SILC_TOOLKIT)/lib/silc.dll \
14 $(SILC_TOOLKIT)/lib/silcclient.dll
20 DLL_INSTALL_DIR = $(PURPLE_INSTALL_DIR)
23 DLL_INSTALL_DIR = $(PURPLE_INSTALL_PLUGINS_DIR)
30 INCLUDE_PATHS += -I. \
31 -I$(GTK_TOP)/include \
32 -I$(GTK_TOP)/include/glib-2.0 \
33 -I$(GTK_TOP)/lib/glib-2.0/include \
35 -I$(PURPLE_TOP)/win32 \
36 -I$(PIDGIN_TREE_TOP) \
37 -I$(SILC_TOOLKIT)/include
39 LIB_PATHS += -L$(GTK_TOP)/lib \
55 OBJECTS = $(C_SRC:%.c=%.o)
68 include $(PIDGIN_COMMON_RULES)
73 .PHONY: all install clean
77 install: all $(DLL_INSTALL_DIR) $(PURPLE_INSTALL_DIR)
78 cp $(TARGET).dll $(DLL_INSTALL_DIR)
79 cp $(NEEDED_DLLS) $(PURPLE_INSTALL_DIR)
81 $(OBJECTS): $(PURPLE_CONFIG_H)
83 $(TARGET).dll: $(PURPLE_DLL).a $(OBJECTS)
84 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--image-base,0x64000000 -o $(TARGET).dll
93 include $(PIDGIN_COMMON_TARGETS)