1 #
2 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3 #
4 # Copyright 2012 Olaf Wintermann. All rights reserved.
5 #
6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions are met:
8 #
9 # 1. Redistributions of source code must retain the above copyright notice,
10 # this list of conditions and the following disclaimer.
11 #
12 # 2. Redistributions in binary form must reproduce the above copyright
13 # notice, this list of conditions and the following disclaimer in the
14 # documentation and/or other materials provided with the distribution.
15 #
16 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17 # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
20 # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 # POSSIBILITY OF SUCH DAMAGE.
27 #
28
29 $(UI_LIB): $(OBJ)
30 $(AR) $(ARFLAGS) $(UI_LIB) $(OBJ)
31
32 $(UI_SHLIB): $(OBJ)
33 $(CC) -o $(UI_SHLIB) $(LDFLAGS) $(SHLIB_LDFLAGS) $(TK_LDFLAGS) $(OBJ) -L../build/lib -lucx
34
35 FORCE:
36
37 $(GTK_OBJPRE)action.o: gtk/action.c gtk/action.h gtk/../ui/toolkit.h \
38 gtk/../common/action.h gtk/../common/../ui/toolkit.h
39 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
40
41 $(GTK_OBJPRE)button.o: gtk/button.c gtk/button.h gtk/../ui/toolkit.h \
42 gtk/../ui/button.h gtk/../ui/toolkit.h gtk/toolkit.h \
43 gtk/../common/context.h gtk/../common/../ui/toolkit.h \
44 gtk/../common/action.h gtk/../common/object.h gtk/container.h \
45 gtk/../ui/container.h gtk/widget.h gtk/../ui/widget.h \
46 gtk/../common/action.h
47 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
48
49 $(GTK_OBJPRE)container.o: gtk/container.c gtk/container.h \
50 gtk/../ui/toolkit.h gtk/../ui/container.h gtk/../ui/toolkit.h \
51 gtk/toolkit.h gtk/../common/context.h gtk/../common/../ui/toolkit.h \
52 gtk/../common/action.h gtk/../common/object.h gtk/headerbar.h \
53 gtk/../ui/toolbar.h gtk/../common/toolbar.h \
54 gtk/../common/../ui/toolbar.h gtk/../common/menu.h \
55 gtk/../common/../ui/menu.h gtk/../common/../ui/toolkit.h \
56 gtk/../common/container.h gtk/../common/../ui/container.h \
57 gtk/../ui/properties.h
58 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
59
60 $(GTK_OBJPRE)display.o: gtk/display.c gtk/display.h gtk/../ui/toolkit.h \
61 gtk/toolkit.h gtk/../common/context.h gtk/../common/../ui/toolkit.h \
62 gtk/../common/action.h gtk/../common/object.h gtk/container.h \
63 gtk/../ui/container.h gtk/../ui/toolkit.h gtk/../ui/display.h
64 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
65
66 $(GTK_OBJPRE)dnd.o: gtk/dnd.c gtk/dnd.h gtk/../ui/dnd.h \
67 gtk/../ui/toolkit.h gtk/toolkit.h gtk/../ui/toolkit.h \
68 gtk/../common/context.h gtk/../common/../ui/toolkit.h \
69 gtk/../common/action.h gtk/../common/object.h
70 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
71
72 $(GTK_OBJPRE)draw_cairo.o: gtk/draw_cairo.c gtk/container.h \
73 gtk/../ui/toolkit.h gtk/../ui/container.h gtk/../ui/toolkit.h \
74 gtk/toolkit.h gtk/../common/context.h gtk/../common/../ui/toolkit.h \
75 gtk/../common/action.h gtk/../common/object.h gtk/draw_cairo.h \
76 gtk/graphics.h gtk/../ui/graphics.h
77 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
78
79 $(GTK_OBJPRE)draw_gdk.o: gtk/draw_gdk.c gtk/container.h \
80 gtk/../ui/toolkit.h gtk/../ui/container.h gtk/../ui/toolkit.h \
81 gtk/toolkit.h gtk/../common/context.h gtk/../common/../ui/toolkit.h \
82 gtk/../common/action.h gtk/../common/object.h gtk/draw_gdk.h \
83 gtk/graphics.h gtk/../ui/graphics.h
84 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
85
86 $(GTK_OBJPRE)entry.o: gtk/entry.c gtk/../common/context.h \
87 gtk/../common/../ui/toolkit.h gtk/../common/action.h \
88 gtk/../common/object.h gtk/container.h gtk/../ui/toolkit.h \
89 gtk/../ui/container.h gtk/../ui/toolkit.h gtk/toolkit.h gtk/entry.h \
90 gtk/../ui/entry.h
91 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
92
93 $(GTK_OBJPRE)graphics.o: gtk/graphics.c gtk/graphics.h \
94 gtk/../ui/graphics.h gtk/../ui/toolkit.h gtk/toolkit.h \
95 gtk/../ui/toolkit.h gtk/../common/context.h \
96 gtk/../common/../ui/toolkit.h gtk/../common/action.h \
97 gtk/../common/object.h gtk/container.h gtk/../ui/container.h \
98 gtk/draw_cairo.h
99 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
100
101 $(GTK_OBJPRE)headerbar.o: gtk/headerbar.c gtk/headerbar.h gtk/toolkit.h \
102 gtk/../ui/toolkit.h gtk/../common/context.h \
103 gtk/../common/../ui/toolkit.h gtk/../common/action.h \
104 gtk/../common/object.h gtk/../ui/toolbar.h gtk/../ui/toolkit.h \
105 gtk/../common/toolbar.h gtk/../common/../ui/toolbar.h \
106 gtk/../common/menu.h gtk/../common/../ui/menu.h \
107 gtk/../common/../ui/toolkit.h gtk/button.h gtk/../ui/button.h gtk/menu.h \
108 gtk/../ui/menu.h gtk/../common/menu.h gtk/../ui/widget.h \
109 gtk/../ui/properties.h
110 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
111
112 $(GTK_OBJPRE)icon.o: gtk/icon.c gtk/toolkit.h gtk/../ui/toolkit.h \
113 gtk/../common/context.h gtk/../common/../ui/toolkit.h \
114 gtk/../common/action.h gtk/../common/object.h gtk/icon.h \
115 gtk/../ui/icons.h gtk/../ui/toolkit.h gtk/../common/properties.h \
116 gtk/../common/../ui/properties.h gtk/../common/../ui/toolkit.h
117 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
118
119 $(GTK_OBJPRE)image.o: gtk/image.c gtk/image.h gtk/../ui/image.h \
120 gtk/../ui/toolkit.h gtk/toolkit.h gtk/../ui/toolkit.h \
121 gtk/../common/context.h gtk/../common/../ui/toolkit.h \
122 gtk/../common/action.h gtk/../common/object.h gtk/container.h \
123 gtk/../ui/container.h gtk/menu.h gtk/../ui/menu.h gtk/../common/menu.h \
124 gtk/../common/../ui/menu.h gtk/widget.h gtk/../ui/widget.h \
125 gtk/../common/action.h
126 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
127
128 $(GTK_OBJPRE)list.o: gtk/list.c gtk/../common/context.h \
129 gtk/../common/../ui/toolkit.h gtk/../common/action.h \
130 gtk/../common/object.h gtk/../common/action.h gtk/container.h \
131 gtk/../ui/toolkit.h gtk/../ui/container.h gtk/../ui/toolkit.h \
132 gtk/toolkit.h gtk/list.h gtk/../ui/list.h gtk/button.h \
133 gtk/../ui/button.h gtk/icon.h gtk/../ui/icons.h gtk/menu.h \
134 gtk/../ui/menu.h gtk/../common/menu.h gtk/../common/../ui/menu.h \
135 gtk/dnd.h gtk/../ui/dnd.h
136 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
137
138 $(GTK_OBJPRE)menu.o: gtk/menu.c gtk/menu.h gtk/../ui/menu.h \
139 gtk/../ui/toolkit.h gtk/../common/menu.h gtk/../common/../ui/menu.h \
140 gtk/toolkit.h gtk/../ui/toolkit.h gtk/../common/context.h \
141 gtk/../common/../ui/toolkit.h gtk/../common/action.h \
142 gtk/../common/object.h gtk/widget.h gtk/../ui/widget.h \
143 gtk/../common/types.h gtk/../common/action.h gtk/../ui/properties.h \
144 gtk/../ui/window.h gtk/container.h gtk/../ui/container.h
145 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
146
147 $(GTK_OBJPRE)range.o: gtk/range.c gtk/range.h gtk/toolkit.h \
148 gtk/../ui/toolkit.h gtk/../common/context.h \
149 gtk/../common/../ui/toolkit.h gtk/../common/action.h \
150 gtk/../common/object.h gtk/../ui/range.h gtk/../ui/toolkit.h \
151 gtk/container.h gtk/../ui/container.h
152 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
153
154 $(GTK_OBJPRE)text.o: gtk/text.c gtk/text.h gtk/../ui/text.h \
155 gtk/../ui/toolkit.h gtk/toolkit.h gtk/../ui/toolkit.h \
156 gtk/../common/context.h gtk/../common/../ui/toolkit.h \
157 gtk/../common/action.h gtk/../common/object.h gtk/container.h \
158 gtk/../ui/container.h gtk/widget.h gtk/../ui/widget.h \
159 gtk/../common/types.h
160 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
161
162 $(GTK_OBJPRE)toolbar.o: gtk/toolbar.c gtk/toolbar.h gtk/../ui/toolbar.h \
163 gtk/../ui/toolkit.h gtk/../common/toolbar.h \
164 gtk/../common/../ui/toolbar.h gtk/../common/menu.h \
165 gtk/../common/../ui/menu.h gtk/../common/../ui/toolkit.h gtk/list.h \
166 gtk/../ui/list.h gtk/toolkit.h gtk/../ui/toolkit.h \
167 gtk/../common/context.h gtk/../common/../ui/toolkit.h \
168 gtk/../common/action.h gtk/../common/object.h gtk/menu.h \
169 gtk/../ui/menu.h gtk/../common/menu.h gtk/button.h gtk/../ui/button.h \
170 gtk/icon.h gtk/../ui/icons.h
171 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
172
173 $(GTK_OBJPRE)toolkit.o: gtk/toolkit.c gtk/toolkit.h gtk/../ui/toolkit.h \
174 gtk/../common/context.h gtk/../common/../ui/toolkit.h \
175 gtk/../common/action.h gtk/../common/object.h gtk/toolbar.h \
176 gtk/../ui/toolbar.h gtk/../ui/toolkit.h gtk/../common/toolbar.h \
177 gtk/../common/../ui/toolbar.h gtk/../common/menu.h \
178 gtk/../common/../ui/menu.h gtk/../common/../ui/toolkit.h gtk/list.h \
179 gtk/../ui/list.h gtk/window.h gtk/icon.h gtk/../ui/icons.h \
180 gtk/../common/document.h gtk/../common/context.h \
181 gtk/../common/properties.h gtk/../common/../ui/properties.h \
182 gtk/../common/menu.h gtk/../common/threadpool.h gtk/../common/app.h
183 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
184
185 $(GTK_OBJPRE)tree.o: gtk/tree.c gtk/tree.h gtk/../ui/tree.h \
186 gtk/../ui/list.h gtk/../ui/toolkit.h gtk/toolkit.h gtk/../ui/toolkit.h \
187 gtk/../common/context.h gtk/../common/../ui/toolkit.h \
188 gtk/../common/action.h gtk/../common/object.h gtk/../common/container.h \
189 gtk/../common/../ui/container.h gtk/../common/../ui/toolkit.h
190 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
191
192 $(GTK_OBJPRE)webview.o: gtk/webview.c gtk/toolkit.h gtk/../ui/toolkit.h \
193 gtk/../common/context.h gtk/../common/../ui/toolkit.h \
194 gtk/../common/action.h gtk/../common/object.h gtk/container.h \
195 gtk/../ui/container.h gtk/../ui/toolkit.h gtk/webview.h \
196 gtk/../ui/webview.h gtk/widget.h gtk/../ui/widget.h
197 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
198
199 $(GTK_OBJPRE)widget.o: gtk/widget.c gtk/widget.h gtk/../ui/widget.h \
200 gtk/../ui/toolkit.h gtk/container.h gtk/../ui/toolkit.h \
201 gtk/../ui/container.h gtk/toolkit.h gtk/../common/context.h \
202 gtk/../common/../ui/toolkit.h gtk/../common/action.h \
203 gtk/../common/object.h
204 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
205
206 $(GTK_OBJPRE)window.o: gtk/window.c gtk/../ui/window.h \
207 gtk/../ui/toolkit.h gtk/../ui/properties.h gtk/../common/context.h \
208 gtk/../common/../ui/toolkit.h gtk/../common/action.h \
209 gtk/../common/menu.h gtk/../common/../ui/menu.h \
210 gtk/../common/../ui/toolkit.h gtk/../common/toolbar.h \
211 gtk/../common/../ui/toolbar.h gtk/../common/menu.h gtk/../common/utils.h \
212 gtk/../common/../ui/text.h gtk/menu.h gtk/../ui/menu.h gtk/toolkit.h \
213 gtk/../ui/toolkit.h gtk/../common/object.h gtk/toolbar.h \
214 gtk/../ui/toolbar.h gtk/list.h gtk/../ui/list.h gtk/container.h \
215 gtk/../ui/container.h gtk/headerbar.h gtk/button.h gtk/../ui/button.h \
216 gtk/window.h gtk/widget.h gtk/../ui/widget.h
217 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
218
219