ui/gtk/Makefile

Tue, 02 Jun 2026 19:30:34 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 02 Jun 2026 19:30:34 +0200
changeset 1158
96c202d45fbb
parent 607
cfcc3fb12d7d
permissions
-rw-r--r--

add build dependencies and a script for generating them

#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
#
# Copyright 2012 Olaf Wintermann. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
#   1. Redistributions of source code must retain the above copyright notice,
#      this list of conditions and the following disclaimer.
#
#   2. Redistributions in binary form must reproduce the above copyright
#      notice, this list of conditions and the following disclaimer in the
#      documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
#

$(UI_LIB): $(OBJ)
	$(AR) $(ARFLAGS) $(UI_LIB) $(OBJ)	

$(UI_SHLIB): $(OBJ)
	$(CC) -o $(UI_SHLIB) $(LDFLAGS) $(SHLIB_LDFLAGS) $(TK_LDFLAGS) $(OBJ) -L../build/lib -lucx

FORCE:

$(GTK_OBJPRE)action.o: gtk/action.c gtk/action.h gtk/../ui/toolkit.h \
 gtk/../common/action.h gtk/../common/../ui/toolkit.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

$(GTK_OBJPRE)button.o: gtk/button.c gtk/button.h gtk/../ui/toolkit.h \
 gtk/../ui/button.h gtk/../ui/toolkit.h gtk/toolkit.h \
 gtk/../common/context.h gtk/../common/../ui/toolkit.h \
 gtk/../common/action.h gtk/../common/object.h gtk/container.h \
 gtk/../ui/container.h gtk/widget.h gtk/../ui/widget.h \
 gtk/../common/action.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

$(GTK_OBJPRE)container.o: gtk/container.c gtk/container.h \
 gtk/../ui/toolkit.h gtk/../ui/container.h gtk/../ui/toolkit.h \
 gtk/toolkit.h gtk/../common/context.h gtk/../common/../ui/toolkit.h \
 gtk/../common/action.h gtk/../common/object.h gtk/headerbar.h \
 gtk/../ui/toolbar.h gtk/../common/toolbar.h \
 gtk/../common/../ui/toolbar.h gtk/../common/menu.h \
 gtk/../common/../ui/menu.h gtk/../common/../ui/toolkit.h \
 gtk/../common/container.h gtk/../common/../ui/container.h \
 gtk/../ui/properties.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

$(GTK_OBJPRE)display.o: gtk/display.c gtk/display.h gtk/../ui/toolkit.h \
 gtk/toolkit.h gtk/../common/context.h gtk/../common/../ui/toolkit.h \
 gtk/../common/action.h gtk/../common/object.h gtk/container.h \
 gtk/../ui/container.h gtk/../ui/toolkit.h gtk/../ui/display.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

$(GTK_OBJPRE)dnd.o: gtk/dnd.c gtk/dnd.h gtk/../ui/dnd.h \
 gtk/../ui/toolkit.h gtk/toolkit.h gtk/../ui/toolkit.h \
 gtk/../common/context.h gtk/../common/../ui/toolkit.h \
 gtk/../common/action.h gtk/../common/object.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

$(GTK_OBJPRE)draw_cairo.o: gtk/draw_cairo.c gtk/container.h \
 gtk/../ui/toolkit.h gtk/../ui/container.h gtk/../ui/toolkit.h \
 gtk/toolkit.h gtk/../common/context.h gtk/../common/../ui/toolkit.h \
 gtk/../common/action.h gtk/../common/object.h gtk/draw_cairo.h \
 gtk/graphics.h gtk/../ui/graphics.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

$(GTK_OBJPRE)draw_gdk.o: gtk/draw_gdk.c gtk/container.h \
 gtk/../ui/toolkit.h gtk/../ui/container.h gtk/../ui/toolkit.h \
 gtk/toolkit.h gtk/../common/context.h gtk/../common/../ui/toolkit.h \
 gtk/../common/action.h gtk/../common/object.h gtk/draw_gdk.h \
 gtk/graphics.h gtk/../ui/graphics.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

$(GTK_OBJPRE)entry.o: gtk/entry.c gtk/../common/context.h \
 gtk/../common/../ui/toolkit.h gtk/../common/action.h \
 gtk/../common/object.h gtk/container.h gtk/../ui/toolkit.h \
 gtk/../ui/container.h gtk/../ui/toolkit.h gtk/toolkit.h gtk/entry.h \
 gtk/../ui/entry.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

$(GTK_OBJPRE)graphics.o: gtk/graphics.c gtk/graphics.h \
 gtk/../ui/graphics.h gtk/../ui/toolkit.h gtk/toolkit.h \
 gtk/../ui/toolkit.h gtk/../common/context.h \
 gtk/../common/../ui/toolkit.h gtk/../common/action.h \
 gtk/../common/object.h gtk/container.h gtk/../ui/container.h \
 gtk/draw_cairo.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

$(GTK_OBJPRE)headerbar.o: gtk/headerbar.c gtk/headerbar.h gtk/toolkit.h \
 gtk/../ui/toolkit.h gtk/../common/context.h \
 gtk/../common/../ui/toolkit.h gtk/../common/action.h \
 gtk/../common/object.h gtk/../ui/toolbar.h gtk/../ui/toolkit.h \
 gtk/../common/toolbar.h gtk/../common/../ui/toolbar.h \
 gtk/../common/menu.h gtk/../common/../ui/menu.h \
 gtk/../common/../ui/toolkit.h gtk/button.h gtk/../ui/button.h gtk/menu.h \
 gtk/../ui/menu.h gtk/../common/menu.h gtk/../ui/properties.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

$(GTK_OBJPRE)icon.o: gtk/icon.c gtk/toolkit.h gtk/../ui/toolkit.h \
 gtk/../common/context.h gtk/../common/../ui/toolkit.h \
 gtk/../common/action.h gtk/../common/object.h gtk/icon.h \
 gtk/../ui/icons.h gtk/../ui/toolkit.h gtk/../common/properties.h \
 gtk/../common/../ui/properties.h gtk/../common/../ui/toolkit.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

$(GTK_OBJPRE)image.o: gtk/image.c gtk/image.h gtk/../ui/image.h \
 gtk/../ui/toolkit.h gtk/toolkit.h gtk/../ui/toolkit.h \
 gtk/../common/context.h gtk/../common/../ui/toolkit.h \
 gtk/../common/action.h gtk/../common/object.h gtk/container.h \
 gtk/../ui/container.h gtk/menu.h gtk/../ui/menu.h gtk/../common/menu.h \
 gtk/../common/../ui/menu.h gtk/widget.h gtk/../ui/widget.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

$(GTK_OBJPRE)list.o: gtk/list.c gtk/../common/context.h \
 gtk/../common/../ui/toolkit.h gtk/../common/action.h \
 gtk/../common/object.h gtk/../common/action.h gtk/container.h \
 gtk/../ui/toolkit.h gtk/../ui/container.h gtk/../ui/toolkit.h \
 gtk/toolkit.h gtk/list.h gtk/../ui/list.h gtk/button.h \
 gtk/../ui/button.h gtk/icon.h gtk/../ui/icons.h gtk/menu.h \
 gtk/../ui/menu.h gtk/../common/menu.h gtk/../common/../ui/menu.h \
 gtk/dnd.h gtk/../ui/dnd.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

$(GTK_OBJPRE)menu.o: gtk/menu.c gtk/menu.h gtk/../ui/menu.h \
 gtk/../ui/toolkit.h gtk/../common/menu.h gtk/../common/../ui/menu.h \
 gtk/toolkit.h gtk/../ui/toolkit.h gtk/../common/context.h \
 gtk/../common/../ui/toolkit.h gtk/../common/action.h \
 gtk/../common/object.h gtk/widget.h gtk/../ui/widget.h \
 gtk/../common/types.h gtk/../common/action.h gtk/../ui/properties.h \
 gtk/../ui/window.h gtk/container.h gtk/../ui/container.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

$(GTK_OBJPRE)range.o: gtk/range.c gtk/range.h gtk/toolkit.h \
 gtk/../ui/toolkit.h gtk/../common/context.h \
 gtk/../common/../ui/toolkit.h gtk/../common/action.h \
 gtk/../common/object.h gtk/../ui/range.h gtk/../ui/toolkit.h \
 gtk/container.h gtk/../ui/container.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

$(GTK_OBJPRE)text.o: gtk/text.c gtk/text.h gtk/../ui/text.h \
 gtk/../ui/toolkit.h gtk/toolkit.h gtk/../ui/toolkit.h \
 gtk/../common/context.h gtk/../common/../ui/toolkit.h \
 gtk/../common/action.h gtk/../common/object.h gtk/container.h \
 gtk/../ui/container.h gtk/widget.h gtk/../ui/widget.h \
 gtk/../common/types.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

$(GTK_OBJPRE)toolbar.o: gtk/toolbar.c gtk/toolbar.h gtk/../ui/toolbar.h \
 gtk/../ui/toolkit.h gtk/../common/toolbar.h \
 gtk/../common/../ui/toolbar.h gtk/../common/menu.h \
 gtk/../common/../ui/menu.h gtk/../common/../ui/toolkit.h gtk/list.h \
 gtk/../ui/list.h gtk/toolkit.h gtk/../ui/toolkit.h \
 gtk/../common/context.h gtk/../common/../ui/toolkit.h \
 gtk/../common/action.h gtk/../common/object.h gtk/menu.h \
 gtk/../ui/menu.h gtk/../common/menu.h gtk/button.h gtk/../ui/button.h \
 gtk/icon.h gtk/../ui/icons.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

$(GTK_OBJPRE)toolkit.o: gtk/toolkit.c gtk/toolkit.h gtk/../ui/toolkit.h \
 gtk/../common/context.h gtk/../common/../ui/toolkit.h \
 gtk/../common/action.h gtk/../common/object.h gtk/toolbar.h \
 gtk/../ui/toolbar.h gtk/../ui/toolkit.h gtk/../common/toolbar.h \
 gtk/../common/../ui/toolbar.h gtk/../common/menu.h \
 gtk/../common/../ui/menu.h gtk/../common/../ui/toolkit.h gtk/list.h \
 gtk/../ui/list.h gtk/window.h gtk/icon.h gtk/../ui/icons.h \
 gtk/../common/document.h gtk/../common/context.h \
 gtk/../common/properties.h gtk/../common/../ui/properties.h \
 gtk/../common/menu.h gtk/../common/threadpool.h gtk/../common/app.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

$(GTK_OBJPRE)webview.o: gtk/webview.c gtk/toolkit.h gtk/../ui/toolkit.h \
 gtk/../common/context.h gtk/../common/../ui/toolkit.h \
 gtk/../common/action.h gtk/../common/object.h gtk/container.h \
 gtk/../ui/container.h gtk/../ui/toolkit.h gtk/webview.h \
 gtk/../ui/webview.h gtk/widget.h gtk/../ui/widget.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

$(GTK_OBJPRE)widget.o: gtk/widget.c gtk/widget.h gtk/../ui/widget.h \
 gtk/../ui/toolkit.h gtk/container.h gtk/../ui/toolkit.h \
 gtk/../ui/container.h gtk/toolkit.h gtk/../common/context.h \
 gtk/../common/../ui/toolkit.h gtk/../common/action.h \
 gtk/../common/object.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

$(GTK_OBJPRE)window.o: gtk/window.c gtk/../ui/window.h \
 gtk/../ui/toolkit.h gtk/../ui/properties.h gtk/../common/context.h \
 gtk/../common/../ui/toolkit.h gtk/../common/action.h \
 gtk/../common/menu.h gtk/../common/../ui/menu.h \
 gtk/../common/../ui/toolkit.h gtk/../common/toolbar.h \
 gtk/../common/../ui/toolbar.h gtk/../common/menu.h gtk/../common/utils.h \
 gtk/../common/../ui/text.h gtk/menu.h gtk/../ui/menu.h gtk/toolkit.h \
 gtk/../ui/toolkit.h gtk/../common/object.h gtk/toolbar.h \
 gtk/../ui/toolbar.h gtk/list.h gtk/../ui/list.h gtk/container.h \
 gtk/../ui/container.h gtk/headerbar.h gtk/button.h gtk/../ui/button.h \
 gtk/window.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

mercurial