Mercurial > pidgin
annotate libgaim/protocols/bonjour/Makefile.mingw @ 14576:5d03b309b482
[gaim-migrate @ 17300]
Fix mingw makefile .PHONY targets.
Fix gtkwin32dep.h missing includes.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Mon, 18 Sep 2006 01:13:07 +0000 |
parents | 12cb76aeb21c |
children |
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 |
14555
12cb76aeb21c
[gaim-migrate @ 17278]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
12 TYPE = PLUGIN |
14192 | 13 |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
14 # Static or Plugin... |
14192 | 15 ifeq ($(TYPE),STATIC) |
16 DEFINES += -DSTATIC | |
17 DLL_INSTALL_DIR = $(GAIM_INSTALL_DIR) | |
18 else | |
19 ifeq ($(TYPE),PLUGIN) | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
20 DLL_INSTALL_DIR = $(GAIM_INSTALL_PLUGINS_DIR) |
14192 | 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 \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
31 -I$(HOWL_TOP)/include \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
32 -I$(GAIM_LIB_TOP) \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
33 -I$(GAIM_LIB_TOP)/win32 \ |
14192 | 34 -I$(GAIM_TOP) |
35 | |
36 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
37 -L$(HOWL_TOP)/lib \ |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
38 -L$(GAIM_LIB_TOP) |
14192 | 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 ## | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
53 LIBS = \ |
14192 | 54 -lglib-2.0 \ |
55 -lws2_32 \ | |
56 -lintl \ | |
57 -lhowl \ | |
58 -lgaim | |
59 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
60 include $(GAIM_COMMON_RULES) |
14192 | 61 |
62 ## | |
63 ## TARGET DEFINITIONS | |
64 ## | |
14576
5d03b309b482
[gaim-migrate @ 17300]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14555
diff
changeset
|
65 .PHONY: all install clean |
14192 | 66 |
67 all: $(TARGET).dll | |
68 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
69 install: all $(DLL_INSTALL_DIR) |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
70 cp $(TARGET).dll $(DLL_INSTALL_DIR) |
14192 | 71 cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR) |
72 | |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
73 $(OBJECTS): $(GAIM_CONFIG_H) |
14192 | 74 |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
75 $(TARGET).dll: $(GAIM_LIBGAIM_DLL).a $(OBJECTS) |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
76 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
14192 | 77 |
78 ## | |
79 ## CLEAN RULES | |
80 ## | |
81 | |
82 clean: | |
14555
12cb76aeb21c
[gaim-migrate @ 17278]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
83 rm -f $(OBJECTS) |
12cb76aeb21c
[gaim-migrate @ 17278]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14315
diff
changeset
|
84 rm -f $(TARGET).dll |
14315
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
85 |
8793fc8f7064
[gaim-migrate @ 17008]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14293
diff
changeset
|
86 include $(GAIM_COMMON_TARGETS) |