Mercurial > pidgin
comparison libgaim/protocols/bonjour/Makefile.mingw @ 14192:60b1bc8dbf37
[gaim-migrate @ 16863]
Renamed 'core' to 'libgaim'
committer: Tailor Script <tailor@pidgin.im>
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Sat, 19 Aug 2006 01:50:10 +0000 |
parents | |
children | 82373bb6a47a |
comparison
equal
deleted
inserted
replaced
14191:009db0b357b5 | 14192:60b1bc8dbf37 |
---|---|
1 # | |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32 (mingw) version of libbonjour | |
5 # | |
6 | |
7 # | |
8 # PATHS | |
9 # | |
10 | |
11 INCLUDE_DIR := . | |
12 GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
13 GAIM_TOP := ../../.. | |
14 BONJOUR_ROOT := . | |
15 GAIM_INSTALL_DIR := $(GAIM_TOP)/win32-install-dir | |
16 HOWL_DIR := $(GAIM_TOP)/../win32-dev/howl-1.0.0 | |
17 | |
18 ## | |
19 ## VARIABLE DEFINITIONS | |
20 ## | |
21 | |
22 TARGET = libbonjour | |
23 | |
24 NEEDED_DLLS = $(HOWL_DIR)/bin/libhowl-1.dll | |
25 | |
26 # Compiler Options | |
27 | |
28 CFLAGS = | |
29 | |
30 DEFINES = | |
31 | |
32 # Static or Plugin... | |
33 ifeq ($(TYPE),STATIC) | |
34 DEFINES += -DSTATIC | |
35 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
36 else | |
37 ifeq ($(TYPE),PLUGIN) | |
38 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR)/plugins | |
39 endif | |
40 endif | |
41 | |
42 | |
43 ## | |
44 ## INCLUDE MAKEFILES | |
45 ## | |
46 | |
47 include $(GAIM_TOP)/src/win32/global.mak | |
48 | |
49 ## | |
50 ## INCLUDE PATHS | |
51 ## | |
52 | |
53 INCLUDE_PATHS += -I$(BONJOUR_ROOT) \ | |
54 -I$(GTK_TOP)/include \ | |
55 -I$(GTK_TOP)/include/gtk-2.0 \ | |
56 -I$(GTK_TOP)/include/glib-2.0 \ | |
57 -I$(GTK_TOP)/include/pango-1.0 \ | |
58 -I$(GTK_TOP)/include/atk-1.0 \ | |
59 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
60 -I$(GTK_TOP)/lib/gtk-2.0/include \ | |
61 -I$(HOWL_DIR)/include/howl \ | |
62 -I$(GAIM_TOP)/src \ | |
63 -I$(GAIM_TOP)/src/win32 \ | |
64 -I$(GAIM_TOP) | |
65 | |
66 | |
67 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
68 -L$(HOWL_DIR)/lib \ | |
69 -L$(GAIM_TOP)/src | |
70 | |
71 | |
72 ## | |
73 ## SOURCES, OBJECTS | |
74 ## | |
75 | |
76 C_SRC = bonjour.c \ | |
77 buddy.c \ | |
78 dns_sd.c \ | |
79 jabber.c | |
80 | |
81 | |
82 OBJECTS = $(C_SRC:%.c=%.o) | |
83 | |
84 | |
85 ## | |
86 ## LIBRARIES | |
87 ## | |
88 | |
89 LIBS = -lgtk-win32-2.0 \ | |
90 -lglib-2.0 \ | |
91 -lgdk-win32-2.0 \ | |
92 -lgmodule-2.0 \ | |
93 -lgobject-2.0 \ | |
94 -lws2_32 \ | |
95 -lintl \ | |
96 -lhowl \ | |
97 -lgaim | |
98 | |
99 | |
100 ## | |
101 ## RULES | |
102 ## | |
103 | |
104 # How to make a C file | |
105 | |
106 %.o: %.c | |
107 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
108 | |
109 ## | |
110 ## TARGET DEFINITIONS | |
111 ## | |
112 | |
113 .PHONY: all clean | |
114 | |
115 all: $(TARGET).dll | |
116 | |
117 install: | |
118 cp $(BONJOUR_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
119 cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR) | |
120 | |
121 | |
122 ## | |
123 ## BUILD Dependencies | |
124 ## | |
125 | |
126 $(GAIM_TOP)/src/gaim.lib: | |
127 $(MAKE) -C $(GAIM_TOP)/src -f Makefile.mingw gaim.lib | |
128 | |
129 ## | |
130 ## BUILD DLL | |
131 ## | |
132 | |
133 $(TARGET).dll: $(OBJECTS) $(GAIM_TOP)/src/gaim.lib | |
134 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll | |
135 | |
136 ## | |
137 ## CLEAN RULES | |
138 ## | |
139 | |
140 clean: | |
141 rm -rf *.o | |
142 rm -rf $(TARGET).dll | |
143 rm -rf $(TARGET).lib |