ui/server/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 944
cc23aad6335e
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:

$(SERVER_OBJPRE)args.o: server/args.c server/args.h server/toolkit.h \
 server/../ui/toolkit.h server/../common/context.h \
 server/../common/../ui/toolkit.h server/../common/action.h \
 server/../common/object.h server/../common/utils.h \
 server/../common/../ui/text.h server/../common/../ui/toolkit.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

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

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

$(SERVER_OBJPRE)image.o: server/image.c server/image.h \
 server/../ui/image.h server/../ui/toolkit.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

$(SERVER_OBJPRE)toolkit.o: server/toolkit.c server/toolkit.h \
 server/../ui/toolkit.h server/../common/context.h \
 server/../common/../ui/toolkit.h server/../common/action.h \
 server/../common/object.h server/../common/message.h \
 server/../common/threadpool.h server/../common/app.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

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

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

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

mercurial