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 $(SERVER_OBJPRE)args.o: server/args.c server/args.h server/toolkit.h \
38 server/../ui/toolkit.h server/../common/context.h \
39 server/../common/../ui/toolkit.h server/../common/action.h \
40 server/../common/object.h server/../common/utils.h \
41 server/../common/../ui/text.h server/../common/../ui/toolkit.h
42 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
43
44 $(SERVER_OBJPRE)button.o: server/button.c server/button.h \
45 server/toolkit.h server/../ui/toolkit.h server/../common/context.h \
46 server/../common/../ui/toolkit.h server/../common/action.h \
47 server/../common/object.h server/../ui/button.h server/../ui/toolkit.h \
48 server/args.h server/container.h server/../common/container.h \
49 server/../common/../ui/container.h server/../common/../ui/toolkit.h \
50 server/widget.h server/../ui/widget.h server/var.h
51 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
52
53 $(SERVER_OBJPRE)container.o: server/container.c server/container.h \
54 server/toolkit.h server/../ui/toolkit.h server/../common/context.h \
55 server/../common/../ui/toolkit.h server/../common/action.h \
56 server/../common/object.h server/../common/container.h \
57 server/../common/../ui/container.h server/../common/../ui/toolkit.h \
58 server/widget.h server/../ui/widget.h server/../ui/toolkit.h \
59 server/args.h
60 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
61
62 $(SERVER_OBJPRE)image.o: server/image.c server/image.h \
63 server/../ui/image.h server/../ui/toolkit.h
64 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
65
66 $(SERVER_OBJPRE)toolkit.o: server/toolkit.c server/toolkit.h \
67 server/../ui/toolkit.h server/../common/context.h \
68 server/../common/../ui/toolkit.h server/../common/action.h \
69 server/../common/object.h server/../common/message.h \
70 server/../common/threadpool.h server/../common/app.h
71 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
72
73 $(SERVER_OBJPRE)var.o: server/var.c server/toolkit.h \
74 server/../ui/toolkit.h server/../common/context.h \
75 server/../common/../ui/toolkit.h server/../common/action.h \
76 server/../common/object.h server/var.h
77 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
78
79 $(SERVER_OBJPRE)widget.o: server/widget.c server/widget.h \
80 server/../ui/widget.h server/../ui/toolkit.h server/toolkit.h \
81 server/../ui/toolkit.h server/../common/context.h \
82 server/../common/../ui/toolkit.h server/../common/action.h \
83 server/../common/object.h
84 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
85
86 $(SERVER_OBJPRE)window.o: server/window.c server/window.h \
87 server/../ui/window.h server/../ui/toolkit.h server/toolkit.h \
88 server/../ui/toolkit.h server/../common/context.h \
89 server/../common/../ui/toolkit.h server/../common/action.h \
90 server/../common/object.h server/container.h \
91 server/../common/container.h server/../common/../ui/container.h \
92 server/../common/../ui/toolkit.h server/widget.h server/../ui/widget.h
93 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<
94
95