Open an explorer.exe window at the location of the file when clicking
[pidgin-git.git] / libpurple / protocols / gg / Makefile.mingw
blob9ac78336576215d4cc2536e97846087214f90ff1
2 # Makefile.mingw
4 # Description: Makefile for win32 (mingw) version of libgg
7 PIDGIN_TREE_TOP := ../../..
8 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
10 TARGET = libgg
11 CFLAGS += -include win32dep.h -DGG_IGNORE_DEPRECATED
12 TYPE = PLUGIN
14 # Static or Plugin...
15 ifeq ($(TYPE),STATIC)
16   DEFINES += -DSTATIC
17   DLL_INSTALL_DIR =     $(PURPLE_INSTALL_DIR)
18 else
19 ifeq ($(TYPE),PLUGIN)
20   DLL_INSTALL_DIR =     $(PURPLE_INSTALL_PLUGINS_DIR)
21 endif
22 endif
25 ## INCLUDE PATHS
27 INCLUDE_PATHS +=        -I. \
28                         -I./lib \
29                         -I$(GTK_TOP)/include \
30                         -I$(GTK_TOP)/include/glib-2.0 \
31                         -I$(GTK_TOP)/lib/glib-2.0/include \
32                         -I$(PURPLE_TOP) \
33                         -I$(PURPLE_TOP)/win32 \
34                         -I$(PIDGIN_TREE_TOP)
36 LIB_PATHS +=            -L$(GTK_TOP)/lib \
37                         -L$(PURPLE_TOP) \
40 ##  SOURCES, OBJECTS
42 C_SRC = \
43         lib/common.c \
44         lib/dcc.c \
45         lib/dcc7.c \
46         lib/debug.c \
47         lib/deflate.c \
48         lib/encoding.c \
49         lib/events.c \
50         lib/handlers.c \
51         lib/http.c \
52         lib/libgadu.c \
53         lib/message.c \
54         lib/obsolete.c \
55         lib/pubdir.c \
56         lib/pubdir50.c \
57         lib/resolver.c \
58         lib/sha1.c \
59         buddylist.c \
60         confer.c \
61         gg.c \
62         search.c \
63         gg-utils.c
65 OBJECTS = $(C_SRC:%.c=%.o)
68 ## LIBRARIES
70 LIBS =  \
71                         -lglib-2.0 \
72                         -lintl \
73                         -lpurple \
74                         -lws2_32
76 include $(PIDGIN_COMMON_RULES)
79 ## TARGET DEFINITIONS
81 .PHONY: all install clean
83 all: $(TARGET).dll
85 install: all $(DLL_INSTALL_DIR)
86         cp $(TARGET).dll $(DLL_INSTALL_DIR)
88 $(OBJECTS): $(PURPLE_CONFIG_H)
90 $(TARGET).dll: $(PURPLE_DLL).a $(OBJECTS)
91         $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll
94 ## CLEAN RULES
96 clean:
97         rm -f $(OBJECTS)
98         rm -f $(TARGET).dll
100 include $(PIDGIN_COMMON_TARGETS)