4 # Description: Makefile for win32 (mingw) version of liboscar
7 PIDGIN_TREE_TOP := ../../..
8 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
16 DLL_INSTALL_DIR = $(PURPLE_INSTALL_DIR)
19 DLL_INSTALL_DIR = $(PURPLE_INSTALL_PLUGINS_DIR)
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 \
31 -I$(PURPLE_TOP)/win32 \
34 LIB_PATHS += -L$(GTK_TOP)/lib \
81 OBJECTS = $(C_SRC:%.c=%.o)
93 include $(PIDGIN_COMMON_RULES)
98 .PHONY: all install clean
102 install: all $(DLL_INSTALL_DIR)
103 cp $(TARGET).dll $(DLL_INSTALL_DIR)
105 $(OBJECTS): $(PURPLE_CONFIG_H)
107 $(TARGET).dll: $(PURPLE_DLL).a $(OBJECTS)
108 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll
114 rm -f $(OBJECTS) $(TARGET).dll
116 include $(PIDGIN_COMMON_TARGETS)