Mercurial > pidgin
annotate libgaim/protocols/bonjour/Makefile.mingw @ 14293:82373bb6a47a
[gaim-migrate @ 16983]
Restructure updates for some makefiles that are not used by default and may not fully work.
Remove gtk import stuff from oscar Makefile.mingw
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Tue, 22 Aug 2006 18:10:43 +0000 |
parents | 60b1bc8dbf37 |
children | 8793fc8f7064 |
rev | line source |
---|---|
14192 | 1 # |
2 # Makefile.mingw | |
3 # | |
4 # Description: Makefile for win32 (mingw) version of libbonjour | |
5 # | |
6 | |
7 # | |
8 # PATHS | |
9 # | |
10 | |
11 GTK_TOP := ../../../../win32-dev/gtk_2_0 | |
12 GAIM_TOP := ../../.. | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
13 LIBGAIM_TOP := ../.. |
14192 | 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 | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
32 # Static or Plugin... |
14192 | 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 | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
47 include $(LIBGAIM_TOP)/win32/global.mak |
14192 | 48 |
49 ## | |
50 ## INCLUDE PATHS | |
51 ## | |
52 | |
53 INCLUDE_PATHS += -I$(BONJOUR_ROOT) \ | |
54 -I$(GTK_TOP)/include \ | |
55 -I$(GTK_TOP)/include/glib-2.0 \ | |
56 -I$(GTK_TOP)/lib/glib-2.0/include \ | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
57 -I$(HOWL_DIR)/include \ |
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
58 -I$(LIBGAIM_TOP) \ |
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
59 -I$(LIBGAIM_TOP)/win32 \ |
14192 | 60 -I$(GAIM_TOP) |
61 | |
62 | |
63 LIB_PATHS = -L$(GTK_TOP)/lib \ | |
64 -L$(HOWL_DIR)/lib \ | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
65 -L$(LIBGAIM_TOP) |
14192 | 66 |
67 | |
68 ## | |
69 ## SOURCES, OBJECTS | |
70 ## | |
71 | |
72 C_SRC = bonjour.c \ | |
73 buddy.c \ | |
74 dns_sd.c \ | |
75 jabber.c | |
76 | |
77 | |
78 OBJECTS = $(C_SRC:%.c=%.o) | |
79 | |
80 | |
81 ## | |
82 ## LIBRARIES | |
83 ## | |
84 | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
85 LIBS = \ |
14192 | 86 -lglib-2.0 \ |
87 -lws2_32 \ | |
88 -lintl \ | |
89 -lhowl \ | |
90 -lgaim | |
91 | |
92 | |
93 ## | |
94 ## RULES | |
95 ## | |
96 | |
97 # How to make a C file | |
98 | |
99 %.o: %.c | |
100 $(CC) $(CFLAGS) $(DEFINES) $(INCLUDE_PATHS) -o $@ -c $< | |
101 | |
102 ## | |
103 ## TARGET DEFINITIONS | |
104 ## | |
105 | |
106 .PHONY: all clean | |
107 | |
108 all: $(TARGET).dll | |
109 | |
110 install: | |
111 cp $(BONJOUR_ROOT)/$(TARGET).dll $(DLL_INSTALL_DIR) | |
112 cp $(NEEDED_DLLS) $(GAIM_INSTALL_DIR) | |
113 | |
114 | |
115 ## | |
116 ## BUILD Dependencies | |
117 ## | |
118 | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
119 $(LIBGAIM_TOP)/libgaim.dll.a: |
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
120 $(MAKE) -C $(LIBGAIM_TOP) -f Makefile.mingw libgaim.dll.a |
14192 | 121 |
122 ## | |
123 ## BUILD DLL | |
124 ## | |
125 | |
14293
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
126 $(TARGET).dll: $(OBJECTS) $(LIBGAIM_TOP)/libgaim.dll.a |
82373bb6a47a
[gaim-migrate @ 16983]
Daniel Atallah <daniel.atallah@gmail.com>
parents:
14192
diff
changeset
|
127 $(CC) -shared $(OBJECTS) $(LIB_PATHS) $(LIBS) $(DLL_LD_FLAGS) -o $(TARGET).dll |
14192 | 128 |
129 ## | |
130 ## CLEAN RULES | |
131 ## | |
132 | |
133 clean: | |
134 rm -rf *.o | |
135 rm -rf $(TARGET).dll |