Mercurial > pidgin
annotate src/protocols/bonjour/Makefile.mingw @ 11796:b9b7a010b043
[gaim-migrate @ 14087]
I need to sleep. This isn't finished. Hopefully someone will finish it before
I wake up.
Moved Preferences > Buddy List to Buddies menu.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Mon, 24 Oct 2005 08:06:34 +0000 |
parents | 1fd2a974379f |
children |
rev | line source |
---|---|
11477 | 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 | |
11688
1fd2a974379f
[gaim-migrate @ 13974]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11477
diff
changeset
|
16 HOWL_DIR := $(GAIM_TOP)/../win32-dev/howl-1.0.0 |
11477 | 17 |
18 ## | |
19 ## VARIABLE DEFINITIONS | |
20 ## | |
21 | |
22 TARGET = libbonjour | |
23 | |
11688
1fd2a974379f
[gaim-migrate @ 13974]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11477
diff
changeset
|
24 NEEDED_DLLS = $(HOWL_DIR)/bin/libhowl-1.dll |
1fd2a974379f
[gaim-migrate @ 13974]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11477
diff
changeset
|
25 |
11477 | 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 \ | |
11688
1fd2a974379f
[gaim-migrate @ 13974]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11477
diff
changeset
|
61 -I$(HOWL_DIR)/include/howl \ |
11477 | 62 -I$(GAIM_TOP)/src \ |
63 -I$(GAIM_TOP)/src/win32 \ | |
64 -I$(GAIM_TOP) | |
65 | |
66 | |
67 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
11688
1fd2a974379f
[gaim-migrate @ 13974]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11477
diff
changeset
|
68 -L$(HOWL_DIR)/lib \ |
11477 | 69 -L$(GAIM_TOP)/src |
70 | |
71 | |
72 ## | |
73 ## SOURCES, OBJECTS | |
74 ## | |
75 | |
11688
1fd2a974379f
[gaim-migrate @ 13974]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11477
diff
changeset
|
76 C_SRC = bonjour.c \ |
1fd2a974379f
[gaim-migrate @ 13974]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11477
diff
changeset
|
77 buddy.c \ |
1fd2a974379f
[gaim-migrate @ 13974]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11477
diff
changeset
|
78 dns_sd.c \ |
1fd2a974379f
[gaim-migrate @ 13974]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11477
diff
changeset
|
79 jabber.c |
11477 | 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 \ | |
11688
1fd2a974379f
[gaim-migrate @ 13974]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11477
diff
changeset
|
96 -lhowl \ |
11477 | 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) | |
11688
1fd2a974379f
[gaim-migrate @ 13974]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
11477
diff
changeset
|
119 cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR) |
11477 | 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 |