comparison libpurple/protocols/bonjour/Makefile.mingw @ 15374:5fe8042783c1

Rename gtk/ and libgaim/ to pidgin/ and libpurple/
author Sean Egan <seanegan@gmail.com>
date Sat, 20 Jan 2007 02:32:10 +0000
parents
children 0e17470b47c2
comparison
equal deleted inserted replaced
15373:f79e0f4df793 15374:5fe8042783c1
1 #
2 # Makefile.mingw
3 #
4 # Description: Makefile for win32 (mingw) version of libbonjour
5 #
6
7 GAIM_TOP := ../../..
8 include $(GAIM_TOP)/libgaim/win32/global.mak
9
10 TARGET = libbonjour
11 NEEDED_DLLS = $(HOWL_TOP)/bin/libhowl-1.dll
12 TYPE = PLUGIN
13
14 # Static or Plugin...
15 ifeq ($(TYPE),STATIC)
16 DEFINES += -DSTATIC
17 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)
18 else
19 ifeq ($(TYPE),PLUGIN)
20 DLL_INSTALL_DIR = $(GAIM_INSTALL_PLUGINS_DIR)
21 endif
22 endif
23
24 ##
25 ## INCLUDE PATHS
26 ##
27 INCLUDE_PATHS += -I$(BONJOUR_ROOT) \
28 -I$(GTK_TOP)/include \
29 -I$(GTK_TOP)/include/glib-2.0 \
30 -I$(GTK_TOP)/lib/glib-2.0/include \
31 -I$(HOWL_TOP)/include \
32 -I$(GAIM_LIB_TOP) \
33 -I$(GAIM_LIB_TOP)/win32 \
34 -I$(GAIM_TOP)
35
36 LIB_PATHS = -L$(GTK_TOP)/lib \
37 -L$(HOWL_TOP)/lib \
38 -L$(GAIM_LIB_TOP)
39
40 ##
41 ## SOURCES, OBJECTS
42 ##
43 C_SRC = bonjour.c \
44 buddy.c \
45 dns_sd.c \
46 jabber.c
47
48 OBJECTS = $(C_SRC:%.c=%.o)
49
50 ##
51 ## LIBRARIES
52 ##
53 LIBS = \
54 -lglib-2.0 \
55 -lws2_32 \
56 -lintl \
57 -lhowl \
58 -lgaim
59
60 include $(GAIM_COMMON_RULES)
61
62 ##
63 ## TARGET DEFINITIONS
64 ##
65 .PHONY: all install clean
66
67 all: $(TARGET).dll
68
69 install: all $(DLL_INSTALL_DIR)
70 cp $(TARGET).dll $(DLL_INSTALL_DIR)
71 cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR)
72
73 $(OBJECTS): $(GAIM_CONFIG_H)
74
75 $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(OBJECTS)
76 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll
77
78 ##
79 ## CLEAN RULES
80 ##
81
82 clean:
83 rm -f $(OBJECTS)
84 rm -f $(TARGET).dll
85
86 include $(GAIM_COMMON_TARGETS)