ui/motif/Makefile

Tue, 09 Jun 2026 18:50:13 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Tue, 09 Jun 2026 18:50:13 +0200
changeset 1187
7b5ee7367b32
parent 1158
96c202d45fbb
permissions
-rw-r--r--

fix AppDelegate source file case (Cocoa)

#
# 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:

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

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

$(MOTIF_OBJPRE)dnd.o: motif/dnd.c motif/dnd.h motif/../ui/dnd.h \
 motif/../ui/toolkit.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

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

$(MOTIF_OBJPRE)Fsb.o: motif/Fsb.c motif/Fsb.h motif/FsbP.h \
 motif/pathbar.h motif/../ui/text.h motif/../ui/toolkit.h \
 motif/../common/utils.h motif/../common/../ui/toolkit.h \
 motif/../common/../ui/text.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

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

$(MOTIF_OBJPRE)Grid.o: motif/Grid.c motif/Grid.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

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

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

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

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

$(MOTIF_OBJPRE)pathbar.o: motif/pathbar.c motif/pathbar.h \
 motif/../ui/text.h motif/../ui/toolkit.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

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

$(MOTIF_OBJPRE)text.o: motif/text.c motif/text.h motif/../ui/text.h \
 motif/../ui/toolkit.h motif/toolkit.h motif/../ui/toolkit.h \
 motif/../common/context.h motif/../common/../ui/toolkit.h \
 motif/../common/action.h motif/../common/object.h motif/container.h \
 motif/../ui/container.h motif/pathbar.h motif/../common/utils.h \
 motif/../common/../ui/text.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

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

$(MOTIF_OBJPRE)toolkit.o: motif/toolkit.c motif/toolkit.h \
 motif/../ui/toolkit.h motif/../common/context.h \
 motif/../common/../ui/toolkit.h motif/../common/action.h \
 motif/../common/object.h motif/toolbar.h motif/../ui/toolbar.h \
 motif/../ui/toolkit.h motif/container.h motif/../ui/container.h \
 motif/../common/menu.h motif/../common/../ui/menu.h \
 motif/../common/../ui/toolkit.h motif/../common/toolbar.h \
 motif/../common/../ui/toolbar.h motif/../common/menu.h \
 motif/../common/document.h motif/../common/context.h \
 motif/../common/properties.h motif/../common/../ui/properties.h \
 motif/../common/app.h motif/../common/threadpool.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

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

$(MOTIF_OBJPRE)window.o: motif/window.c motif/window.h \
 motif/../ui/window.h motif/../ui/toolkit.h motif/../ui/widget.h \
 motif/toolkit.h motif/../ui/toolkit.h motif/../common/context.h \
 motif/../common/../ui/toolkit.h motif/../common/action.h \
 motif/../common/object.h motif/menu.h motif/../ui/menu.h \
 motif/../common/menu.h motif/../common/../ui/menu.h motif/toolbar.h \
 motif/../ui/toolbar.h motif/container.h motif/../ui/container.h \
 motif/pathbar.h motif/../ui/text.h motif/../common/utils.h \
 motif/../common/../ui/text.h motif/Grid.h motif/Fsb.h
	$(CC) -o $@ $(CFLAGS) -I../ucx $(SHLIB_CFLAGS) $(TK_CFLAGS) -c $<

mercurial