UNIXworkcode

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 $(MOTIF_OBJPRE)button.o: motif/button.c motif/button.h \ 38 motif/../ui/button.h motif/../ui/toolkit.h motif/toolkit.h \ 39 motif/../ui/toolkit.h motif/../common/context.h \ 40 motif/../common/../ui/toolkit.h motif/../common/action.h \ 41 motif/../common/object.h motif/container.h motif/../ui/container.h \ 42 motif/../common/action.h 43 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $< 44 45 $(MOTIF_OBJPRE)container.o: motif/container.c motif/container.h \ 46 motif/../ui/toolkit.h motif/../ui/container.h motif/../ui/toolkit.h \ 47 motif/../common/context.h motif/../common/../ui/toolkit.h \ 48 motif/../common/action.h motif/../common/object.h \ 49 motif/../common/container.h motif/../common/../ui/container.h \ 50 motif/Grid.h 51 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $< 52 53 $(MOTIF_OBJPRE)dnd.o: motif/dnd.c motif/dnd.h motif/../ui/dnd.h \ 54 motif/../ui/toolkit.h 55 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $< 56 57 $(MOTIF_OBJPRE)entry.o: motif/entry.c motif/entry.h motif/../ui/entry.h \ 58 motif/../ui/toolkit.h motif/container.h motif/../ui/toolkit.h \ 59 motif/../ui/container.h motif/toolkit.h motif/../common/context.h \ 60 motif/../common/../ui/toolkit.h motif/../common/action.h \ 61 motif/../common/object.h 62 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $< 63 64 $(MOTIF_OBJPRE)Fsb.o: motif/Fsb.c motif/Fsb.h motif/FsbP.h \ 65 motif/pathbar.h motif/../ui/text.h motif/../ui/toolkit.h \ 66 motif/../common/utils.h motif/../common/../ui/toolkit.h \ 67 motif/../common/../ui/text.h 68 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $< 69 70 $(MOTIF_OBJPRE)graphics.o: motif/graphics.c motif/graphics.h \ 71 motif/../ui/graphics.h motif/../ui/toolkit.h motif/toolkit.h \ 72 motif/../ui/toolkit.h motif/../common/context.h \ 73 motif/../common/../ui/toolkit.h motif/../common/action.h \ 74 motif/../common/object.h motif/container.h motif/../ui/container.h 75 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $< 76 77 $(MOTIF_OBJPRE)Grid.o: motif/Grid.c motif/Grid.h 78 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $< 79 80 $(MOTIF_OBJPRE)image.o: motif/image.c motif/image.h motif/../ui/image.h \ 81 motif/../ui/toolkit.h 82 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $< 83 84 $(MOTIF_OBJPRE)label.o: motif/label.c motif/label.h motif/../ui/display.h \ 85 motif/../ui/toolkit.h motif/../common/context.h \ 86 motif/../common/../ui/toolkit.h motif/../common/action.h \ 87 motif/container.h motif/../ui/toolkit.h motif/../ui/container.h \ 88 motif/../common/object.h motif/Grid.h 89 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $< 90 91 $(MOTIF_OBJPRE)list.o: motif/list.c motif/container.h \ 92 motif/../ui/toolkit.h motif/../ui/container.h motif/../ui/toolkit.h \ 93 motif/list.h motif/toolkit.h motif/../common/context.h \ 94 motif/../common/../ui/toolkit.h motif/../common/action.h \ 95 motif/../common/object.h motif/../ui/list.h 96 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $< 97 98 $(MOTIF_OBJPRE)menu.o: motif/menu.c motif/menu.h motif/../ui/menu.h \ 99 motif/../ui/toolkit.h motif/../common/menu.h \ 100 motif/../common/../ui/menu.h motif/../common/context.h \ 101 motif/../common/../ui/toolkit.h motif/../common/action.h motif/button.h \ 102 motif/../ui/button.h motif/toolkit.h motif/../ui/toolkit.h \ 103 motif/../common/object.h motif/container.h motif/../ui/container.h \ 104 motif/../common/types.h motif/../ui/window.h 105 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $< 106 107 $(MOTIF_OBJPRE)pathbar.o: motif/pathbar.c motif/pathbar.h \ 108 motif/../ui/text.h motif/../ui/toolkit.h 109 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $< 110 111 $(MOTIF_OBJPRE)range.o: motif/range.c motif/range.h motif/toolkit.h \ 112 motif/../ui/toolkit.h motif/../common/context.h \ 113 motif/../common/../ui/toolkit.h motif/../common/action.h \ 114 motif/../common/object.h motif/../ui/range.h motif/../ui/toolkit.h \ 115 motif/container.h motif/../ui/container.h 116 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $< 117 118 $(MOTIF_OBJPRE)text.o: motif/text.c motif/text.h motif/../ui/text.h \ 119 motif/../ui/toolkit.h motif/toolkit.h motif/../ui/toolkit.h \ 120 motif/../common/context.h motif/../common/../ui/toolkit.h \ 121 motif/../common/action.h motif/../common/object.h motif/container.h \ 122 motif/../ui/container.h motif/pathbar.h motif/../common/utils.h \ 123 motif/../common/../ui/text.h 124 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $< 125 126 $(MOTIF_OBJPRE)toolbar.o: motif/toolbar.c motif/toolbar.h \ 127 motif/../ui/toolbar.h motif/../ui/toolkit.h motif/button.h \ 128 motif/../ui/button.h motif/toolkit.h motif/../ui/toolkit.h \ 129 motif/../common/context.h motif/../common/../ui/toolkit.h \ 130 motif/../common/action.h motif/../common/object.h motif/list.h \ 131 motif/../ui/list.h 132 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $< 133 134 $(MOTIF_OBJPRE)toolkit.o: motif/toolkit.c motif/toolkit.h \ 135 motif/../ui/toolkit.h motif/../common/context.h \ 136 motif/../common/../ui/toolkit.h motif/../common/action.h \ 137 motif/../common/object.h motif/toolbar.h motif/../ui/toolbar.h \ 138 motif/../ui/toolkit.h motif/container.h motif/../ui/container.h \ 139 motif/../common/menu.h motif/../common/../ui/menu.h \ 140 motif/../common/../ui/toolkit.h motif/../common/toolbar.h \ 141 motif/../common/../ui/toolbar.h motif/../common/menu.h \ 142 motif/../common/document.h motif/../common/context.h \ 143 motif/../common/properties.h motif/../common/../ui/properties.h \ 144 motif/../common/app.h motif/../common/threadpool.h 145 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $< 146 147 $(MOTIF_OBJPRE)widget.o: motif/widget.c motif/../ui/widget.h \ 148 motif/../ui/toolkit.h motif/container.h motif/../ui/toolkit.h \ 149 motif/../ui/container.h motif/../common/context.h \ 150 motif/../common/../ui/toolkit.h motif/../common/action.h \ 151 motif/../common/object.h 152 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $< 153 154 $(MOTIF_OBJPRE)window.o: motif/window.c motif/window.h \ 155 motif/../ui/window.h motif/../ui/toolkit.h motif/../ui/widget.h \ 156 motif/toolkit.h motif/../ui/toolkit.h motif/../common/context.h \ 157 motif/../common/../ui/toolkit.h motif/../common/action.h \ 158 motif/../common/object.h motif/menu.h motif/../ui/menu.h \ 159 motif/../common/menu.h motif/../common/../ui/menu.h motif/toolbar.h \ 160 motif/../ui/toolbar.h motif/container.h motif/../ui/container.h \ 161 motif/pathbar.h motif/../ui/text.h motif/../common/utils.h \ 162 motif/../common/../ui/text.h motif/Grid.h motif/Fsb.h 163 $(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $< 164 165