#ident "%W%" %G%
 
# Copyright (C) 1994 Kubota Graphics Corp.
# 
# Permission to use, copy, modify, and distribute this material for
# any purpose and without fee is hereby granted, provided that the
# above copyright notice and this permission notice appear in all
# copies, and that the name of Kubota Graphics not be used in
# advertising or publicity pertaining to this material.  Kubota
# Graphics Corporation MAKES NO REPRESENTATIONS ABOUT THE ACCURACY
# OR SUITABILITY OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED
# "AS IS", WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
# PURPOSE AND KUBOTA GRAPHICS CORPORATION DISCLAIMS ALL WARRANTIES,
# EXPRESS OR IMPLIED.
 
################################################################################
# ------------------------------  N O T I C E  ---------------------------------
################################################################################
# The way the demo package is set up, each application program must be compiled
#  and reside in a sister directory to the "dui" directory.  An assumption had
#  to be made as to where various files would reside and how they would be 
#  referenced, and it was decided to have all of the application programs 
#  make references to and be referenced by "../?" (relative to the rest of the
#  demo package).  Therefore any new application programs written must be
#  installed in a subdirectory of the main demo directory.
################################################################################
DUI=	../dui

DORE= 	$(DORE_LOC)/dore/lib/$(DORE_OBJTYPE)/$(DORE_LIBRARY)

LOCAL=	geom_spec.o user_parse.o

UI=	$(DUI)/Render.o \
	$(DUI)/Dialbox.o\
	$(DUI)/MkModels.o \
	$(DUI)/MkStudios.o \
	$(DUI)/ParseArg.o \
	$(DUI)/Trnsfrmr.o

LIB=    -lsuntool -lsunwindow -lpixrect -lX11 -lm

ALL=	$(LOCAL) $(UI) $(DORE)

INCLUDES= -I$(DUI) -I$(DORE_LOC)/dore/include

CFLAGS=  -O

runme:  $(LOCAL)
	-cc -o runme $(ALL) $(LIB)

.c.o:	$*.c
	cc $(INCLUDES) $(CFLAGS) -c $*.c -o $*.o

clean:	
	-rm -f *.o core

clobber: clean
	-rm -f runme
