4 # Author: zup@sbox.tugraz.at
6 # Description: Makefile for win32 (mingw) version of libsipe
9 OLD_PIDGIN_TREE_TOP := $(PIDGIN_TREE_TOP)
10 PIDGIN_TREE_TOP := ../$(OLD_PIDGIN_TREE_TOP)
12 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
20 DLL_INSTALL_DIR = $(PURPLE_INSTALL_DIR)
23 DLL_INSTALL_DIR = $(PURPLE_INSTALL_PLUGINS_DIR)
27 DEFINES += -DSIPE_VERSION=\"$(VERSION)\"
28 DEFINES += -DGETTEXT_PACKAGE=\"pidgin-sipe\"
29 #DEFINES += -DUSE_KERBEROS=1
33 INCLUDE_PATHS += -I. \
34 -I$(GTK_TOP)/include \
35 -I$(GTK_TOP)/include/glib-2.0 \
36 -I$(GTK_TOP)/lib/glib-2.0/include \
38 -I$(PURPLE_TOP)/win32 \
41 LIB_PATHS += -L$(GTK_TOP)/lib \
65 OBJECTS = $(C_SRC:%.c=%.o)
77 # These flags are used in mingw build
78 TESTS_WARN = -Werror -Wall -Waggregate-return -Wcast-align -Werror-implicit-function-declaration -Wextra -Wno-sign-compare -Wno-unused-parameter -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef
79 #TESTS_WARN += -Wdeclaration-after-statement
81 include $(PIDGIN_COMMON_RULES)
86 .PHONY: all clean install
90 $(OBJECTS): $(PURPLE_CONFIG_H)
92 $(TARGET).dll: $(PURPLE_DLL).a $(OBJECTS)
93 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll
106 test -z "$(DLL_INSTALL_DIR)" || mkdir -p "$(DLL_INSTALL_DIR)"
107 /usr/bin/install -c $(TARGET).dll '$(DLL_INSTALL_DIR)'
110 $(CC) $(TESTS_WARN) -pipe -mno-cygwin -mms-bitfields -ggdb $(INCLUDE_PATHS) -o tests.o -c tests.c
111 $(CC) sipe-sign.o sip-sec.o sipmsg.o sipe-utils.o uuid.o tests.o -L. $(LIB_PATHS) $(LIBS) -lsipe -o tests.exe
117 include $(PIDGIN_COMMON_TARGETS)