#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.
 
# DORE_LOC is the full pathname of the directory containing the
# dore directory
DORE_LOC = 

# DORE_OBJTYPE is the machine object type
DORE_OBJTYPE=

# DORE_LIB_NAME specifies the name of the Dore library to link to
DORE_LIB_NAME= libdore.a

# DORLIB provides the full path to the Dore library
DORLIB= $(DORE_LOC)/dore/lib/$(DORE_OBJTYPE)/$(DORE_LIB_NAME)

PRECISION=      DORE_REAL_SINGLE

CFLAGS=         -I$(DORE_LOC)/dore/include -D$(PRECISION)

###########################################################################

OFILES= $(DORE_OBJTYPE)/MkModels.o $(DORE_OBJTYPE)/ParseArg.o \
	$(DORE_OBJTYPE)/Trnsfrmr.o $(DORE_OBJTYPE)/MkStudios.o \
	$(DORE_OBJTYPE)/Render.o

all: $(DORE_OBJTYPE) $(OFILES)

clean:	
	/bin/rm -f $(OFILES)

###########################################################################

$(DORE_OBJTYPE):
	mkdir -p $(DORE_OBJTYPE)

$(DORE_OBJTYPE)/MkModels.o: MkModels.c
	cc -c $(CFLAGS) $?
	mv MkModels.o $@

$(DORE_OBJTYPE)/MkStudios.o: MkStudios.c
	cc -c $(CFLAGS) $?
	mv MkStudios.o $@

$(DORE_OBJTYPE)/ParseArg.o: ParseArg.c
	cc -c $(CFLAGS) $?
	mv ParseArg.o $@

$(DORE_OBJTYPE)/Render.o: Render.c
	cc -c $(CFLAGS) $?
	mv Render.o $@

$(DORE_OBJTYPE)/Trnsfrmr.o: Trnsfrmr.c
	cc -c $(CFLAGS) $?
	mv Trnsfrmr.o $@
