Mercurial > pidgin
annotate libgaim/protocols/bonjour/Makefile.mingw @ 14441:b4a5b77e167e
[gaim-migrate @ 17155]
Minor cleanup and whitespace. And make some error messages a bit more
concise.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 04 Sep 2006 05:48:45 +0000 |
parents | 8793fc8f7064 |
children | 12cb76aeb21c |
rev | line source |
---|---|
14192 | 1 # |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32 (mingw) version of libbonjour | |
5 # | |
6 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
7 GAIM_TOP := ../../.. |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
8 include $(GAIM_TOP)/libgaim/win32/global.mak |
14192 | 9 |
10 TARGET = libbonjour | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
11 NEEDED_DLLS = $(HOWL_TOP)/bin/libhowl-1.dll |
14192 | 12 |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
13 # Static or Plugin... |
14192 | 14 ifeq ($(TYPE),STATIC) |
15 DEFINES += -DSTATIC | |
16 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
17 else | |
18 ifeq ($(TYPE),PLUGIN) | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
19 DLL_INSTALL_DIR = $(GAIM_INSTALL_PLUGINS_DIR) |
14192 | 20 endif |
21 endif | |
22 | |
23 ## | |
24 ## INCLUDE PATHS | |
25 ## | |
26 INCLUDE_PATHS += -I$(BONJOUR_ROOT) \ | |
27 -I$(GTK_TOP)/include \ | |
28 -I$(GTK_TOP)/include/glib-2.0 \ | |
29 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
30 -I$(HOWL_TOP)/include \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
31 -I$(GAIM_LIB_TOP) \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
32 -I$(GAIM_LIB_TOP)/win32 \ |
14192 | 33 -I$(GAIM_TOP) |
34 | |
35 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
36 -L$(HOWL_TOP)/lib \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
37 -L$(GAIM_LIB_TOP) |
14192 | 38 |
39 ## | |
40 ## SOURCES, OBJECTS | |
41 ## | |
42 C_SRC = bonjour.c \ | |
43 buddy.c \ | |
44 dns_sd.c \ | |
45 jabber.c | |
46 | |
47 OBJECTS = $(C_SRC:%.c=%.o) | |
48 | |
49 ## | |
50 ## LIBRARIES | |
51 ## | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
52 LIBS = \ |
14192 | 53 -lglib-2.0 \ |
54 -lws2_32 \ | |
55 -lintl \ | |
56 -lhowl \ | |
57 -lgaim | |
58 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
59 include $(GAIM_COMMON_RULES) |
14192 | 60 |
61 ## | |
62 ## TARGET DEFINITIONS | |
63 ## | |
64 .PHONY: all clean | |
65 | |
66 all: $(TARGET).dll | |
67 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
68 install: all $(DLL_INSTALL_DIR) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
69 cp $(TARGET).dll $(DLL_INSTALL_DIR) |
14192 | 70 cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR) |
71 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
72 $(OBJECTS): $(GAIM_CONFIG_H) |
14192 | 73 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
74 $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(OBJECTS) |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
75 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
14192 | 76 |
77 ## | |
78 ## CLEAN RULES | |
79 ## | |
80 | |
81 clean: | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
82 rm -rf $(OBJECTS) |
14192 | 83 rm -rf $(TARGET).dll |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
84 |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
85 include $(GAIM_COMMON_TARGETS) |