Migrate certificates, icons, logs to XDG dirs
[pidgin-git.git] / libpurple / protocols / null / Makefile.mingw
blob31d41c2cc76bffedf472dc2584acbd7fb5774cc3
2 # Makefile.mingw
4 # Description: Makefile for win32 (mingw) version of libnull
7 PIDGIN_TREE_TOP := ../../..
8 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
10 TARGET = libnull
11 TYPE = PLUGIN
13 # Static or Plugin...
14 ifeq ($(TYPE),STATIC)
15   DEFINES += -DSTATIC
16   DLL_INSTALL_DIR =     $(PURPLE_INSTALL_DIR)
17 else
18 ifeq ($(TYPE),PLUGIN)
19   DLL_INSTALL_DIR =     $(PURPLE_INSTALL_PLUGINS_DIR)
20 endif
21 endif
24 ## INCLUDE PATHS
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 \
30                         -I$(PURPLE_TOP) \
31                         -I$(PURPLE_TOP)/win32 \
32                         -I$(PIDGIN_TREE_TOP)
34 LIB_PATHS +=            -L$(GTK_TOP)/lib \
35                         -L$(PURPLE_TOP)
38 ##  SOURCES, OBJECTS
40 C_SRC = nullprpl.c
42 OBJECTS = $(C_SRC:%.c=%.o)
45 ## LIBRARIES
47 LIBS =  \
48                         -lglib-2.0 \
49                         -lgobject-2.0 \
50                         -lintl \
51                         -lws2_32 \
52                         -lpurple
54 include $(PIDGIN_COMMON_RULES)
57 ## TARGET DEFINITIONS
59 .PHONY: all install install_real clean
61 all: $(TARGET).dll
63 install_real: all $(DLL_INSTALL_DIR) $(PURPLE_INSTALL_DIR)
64         cp $(TARGET).dll $(DLL_INSTALL_DIR)
66 install: all
68 $(OBJECTS): $(PURPLE_CONFIG_H)
70 $(TARGET).dll: $(PURPLE_DLL).a $(OBJECTS)
71         $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll
74 ## CLEAN RULES
76 clean:
77         rm -f $(OBJECTS)
78         rm -f $(TARGET).dll
80 include $(PIDGIN_COMMON_TARGETS)