I think this was accidentally changed in revision
[pidgin-git.git] / libpurple / protocols / silc10 / Makefile.mingw
blobd087b331a82bca4eb62fae500afccd581a0feac1
2 # Makefile.mingw
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))
12 TARGET = libsilc
13 NEEDED_DLLS =           $(SILC_TOOLKIT)/lib/silc.dll \
14                         $(SILC_TOOLKIT)/lib/silcclient.dll
15 TYPE = PLUGIN
17 # Static or Plugin...
18 ifeq ($(TYPE),STATIC)
19   DEFINES += -DSTATIC
20   DLL_INSTALL_DIR =     $(PURPLE_INSTALL_DIR)
21 else
22 ifeq ($(TYPE),PLUGIN)
23   DLL_INSTALL_DIR =     $(PURPLE_INSTALL_PLUGINS_DIR)
24 endif
25 endif
28 ## INCLUDE PATHS
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 \
34                         -I$(PURPLE_TOP) \
35                         -I$(PURPLE_TOP)/win32 \
36                         -I$(PIDGIN_TREE_TOP) \
37                         -I$(SILC_TOOLKIT)/include
39 LIB_PATHS +=            -L$(GTK_TOP)/lib \
40                         -L$(PURPLE_TOP) \
41                         -L$(SILC_TOOLKIT)/lib
44 ##  SOURCES, OBJECTS
46 C_SRC =                 silc.c \
47                         buddy.c \
48                         chat.c \
49                         ft.c \
50                         ops.c \
51                         pk.c \
52                         util.c \
53                         wb.c
55 OBJECTS = $(C_SRC:%.c=%.o)
58 ## LIBRARIES
60 LIBS = \
61                         -lglib-2.0 \
62                         -lws2_32 \
63                         -lintl \
64                         -lpurple \
65                         -lsilc \
66                         -lsilcclient
68 include $(PIDGIN_COMMON_RULES)
71 ## TARGET DEFINITIONS
73 .PHONY: all install clean
75 all: $(TARGET).dll
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
87 ## CLEAN RULES
89 clean:
90         rm -f $(OBJECTS)
91         rm -f $(TARGET).dll
93 include $(PIDGIN_COMMON_TARGETS)