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

SHELL = /bin/sh
CCCOM = $(CC) $(CFLAGS) -DERRCHK -I${DORE_LOC}/dore/include -I${ROOT}/usr/include
LDCOM = $(LD) $(LDFLAGS)
ARCOM = $(AR) $(ARFLAGS)
SRC_PATH = $(DORE_LOC)/dore/src/objs/misc
OBJ_PATH = $(DORE_LOC)/dore/obj/$(DORE_OBJTYPE)/objs/misc
LIB_PATH = $(DORE_LOC)/dore/lib/$(DORE_OBJTYPE)

OFILES = calbak.o datptr.o datval.o exeset.o fil.o filerstr.o label.o \
       namset.o null.o pckid.o popatt.o pshatt.o rstr.o slot.o 

compile: $(OFILES)

$(OBJ_PATH):
	@sIFS=$$IFS ; IFS="/" ; set $(OBJ_PATH) ; IFS=$$sIFS ; \
	path="" ; \
	for file do \
	   path="$$path/$$file" ; \
	   if [ ! -d $$path ]; then \
	      echo "New Directory $$path" ; \
	      mkdir -p $$path ; \
	   fi ; \
	done

calbak.o : $(OBJ_PATH) $(OBJ_PATH)/calbak.o ;
datptr.o : $(OBJ_PATH) $(OBJ_PATH)/datptr.o ;
datval.o : $(OBJ_PATH) $(OBJ_PATH)/datval.o ;
exeset.o : $(OBJ_PATH) $(OBJ_PATH)/exeset.o ;
fil.o : $(OBJ_PATH) $(OBJ_PATH)/fil.o ;
filerstr.o : $(OBJ_PATH) $(OBJ_PATH)/filerstr.o ;
label.o : $(OBJ_PATH) $(OBJ_PATH)/label.o ;
namset.o : $(OBJ_PATH) $(OBJ_PATH)/namset.o ;
null.o : $(OBJ_PATH) $(OBJ_PATH)/null.o ;
pckid.o : $(OBJ_PATH) $(OBJ_PATH)/pckid.o ;
popatt.o : $(OBJ_PATH) $(OBJ_PATH)/popatt.o ;
pshatt.o : $(OBJ_PATH) $(OBJ_PATH)/pshatt.o ;
rstr.o : $(OBJ_PATH) $(OBJ_PATH)/rstr.o ;
slot.o : $(OBJ_PATH) $(OBJ_PATH)/slot.o ;

$(OBJ_PATH)/calbak.o : calbak.c
	$(CCCOM) -c calbak.c
	mv -f calbak.o $(OBJ_PATH)/calbak.o

$(OBJ_PATH)/datptr.o : datptr.c
	$(CCCOM) -c datptr.c
	mv -f datptr.o $(OBJ_PATH)/datptr.o

$(OBJ_PATH)/datval.o : datval.c
	$(CCCOM) -c datval.c
	mv -f datval.o $(OBJ_PATH)/datval.o

$(OBJ_PATH)/exeset.o : exeset.c
	$(CCCOM) -c exeset.c
	mv -f exeset.o $(OBJ_PATH)/exeset.o

$(OBJ_PATH)/fil.o : fil.c
	$(CCCOM) -c fil.c
	mv -f fil.o $(OBJ_PATH)/fil.o

$(OBJ_PATH)/filerstr.o : filerstr.c
	$(CCCOM) -c filerstr.c
	mv -f filerstr.o $(OBJ_PATH)/filerstr.o

$(OBJ_PATH)/label.o : label.c
	$(CCCOM) -c label.c
	mv -f label.o $(OBJ_PATH)/label.o

$(OBJ_PATH)/namset.o : namset.c
	$(CCCOM) -c namset.c
	mv -f namset.o $(OBJ_PATH)/namset.o

$(OBJ_PATH)/null.o : null.c
	$(CCCOM) -c null.c
	mv -f null.o $(OBJ_PATH)/null.o

$(OBJ_PATH)/pckid.o : pckid.c
	$(CCCOM) -c pckid.c
	mv -f pckid.o $(OBJ_PATH)/pckid.o

$(OBJ_PATH)/popatt.o : popatt.c
	$(CCCOM) -c popatt.c
	mv -f popatt.o $(OBJ_PATH)/popatt.o

$(OBJ_PATH)/pshatt.o : pshatt.c
	$(CCCOM) -c pshatt.c
	mv -f pshatt.o $(OBJ_PATH)/pshatt.o

$(OBJ_PATH)/rstr.o : rstr.c
	$(CCCOM) -c rstr.c
	mv -f rstr.o $(OBJ_PATH)/rstr.o

$(OBJ_PATH)/slot.o : slot.c
	$(CCCOM) -c slot.c
	mv -f slot.o $(OBJ_PATH)/slot.o


library: 
	(cd $(OBJ_PATH);					\
	$(LDCOM) $(OFILES) -o misc.o ; \
	$(ARCOM) $(LIB_PATH)/$(DORE_LIB_NAME) misc.o )

object: 
	(cd $(OBJ_PATH);					\
	$(LDCOM) $(LIB_PATH)/dore.sub.o $(OFILES) -o $(LIB_PATH)/dore.t.o)
	mv $(LIB_PATH)/dore.t.o $(LIB_PATH)/dore.sub.o

clean: 
	/bin/rm -f $(OBJ_PATH)/*.o

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

$(OBJ_PATH)/calbak.o: ${DORE_LOC}/dore/include/dore.h
$(OBJ_PATH)/calbak.o: ${DORE_LOC}/dore/include/dore_develop/develop.h
$(OBJ_PATH)/calbak.o: ${DORE_LOC}/dore/include/dore_develop/error.h
$(OBJ_PATH)/calbak.o: ${DORE_LOC}/dore/include/internal/dogen.h
$(OBJ_PATH)/calbak.o: ${DORE_LOC}/dore/include/internal/error.h
$(OBJ_PATH)/calbak.o: ${DORE_LOC}/dore/include/internal/font.h
$(OBJ_PATH)/calbak.o: ${DORE_LOC}/dore/include/internal/util.h
$(OBJ_PATH)/datptr.o: ${DORE_LOC}/dore/include/dore.h
$(OBJ_PATH)/datptr.o: ${DORE_LOC}/dore/include/dore_develop/develop.h
$(OBJ_PATH)/datptr.o: ${DORE_LOC}/dore/include/dore_develop/error.h
$(OBJ_PATH)/datptr.o: ${DORE_LOC}/dore/include/dore_develop/private/datptr.h
$(OBJ_PATH)/datptr.o: ${DORE_LOC}/dore/include/internal/dogen.h
$(OBJ_PATH)/datptr.o: ${DORE_LOC}/dore/include/internal/error.h
$(OBJ_PATH)/datptr.o: ${DORE_LOC}/dore/include/internal/font.h
$(OBJ_PATH)/datptr.o: ${DORE_LOC}/dore/include/internal/util.h
$(OBJ_PATH)/datval.o: ${DORE_LOC}/dore/include/dore.h
$(OBJ_PATH)/datval.o: ${DORE_LOC}/dore/include/dore_develop/develop.h
$(OBJ_PATH)/datval.o: ${DORE_LOC}/dore/include/dore_develop/error.h
$(OBJ_PATH)/datval.o: ${DORE_LOC}/dore/include/dore_develop/private/datval.h
$(OBJ_PATH)/datval.o: ${DORE_LOC}/dore/include/internal/dogen.h
$(OBJ_PATH)/datval.o: ${DORE_LOC}/dore/include/internal/error.h
$(OBJ_PATH)/datval.o: ${DORE_LOC}/dore/include/internal/font.h
$(OBJ_PATH)/datval.o: ${DORE_LOC}/dore/include/internal/util.h
$(OBJ_PATH)/exeset.o: ${DORE_LOC}/dore/include/dore.h
$(OBJ_PATH)/exeset.o: ${DORE_LOC}/dore/include/dore_develop/develop.h
$(OBJ_PATH)/exeset.o: ${DORE_LOC}/dore/include/dore_develop/error.h
$(OBJ_PATH)/exeset.o: ${DORE_LOC}/dore/include/internal/bitfield.h
$(OBJ_PATH)/exeset.o: ${DORE_LOC}/dore/include/internal/dogen.h
$(OBJ_PATH)/exeset.o: ${DORE_LOC}/dore/include/internal/error.h
$(OBJ_PATH)/exeset.o: ${DORE_LOC}/dore/include/internal/exeset.h
$(OBJ_PATH)/exeset.o: ${DORE_LOC}/dore/include/internal/filters.h
$(OBJ_PATH)/exeset.o: ${DORE_LOC}/dore/include/internal/font.h
$(OBJ_PATH)/exeset.o: ${DORE_LOC}/dore/include/internal/glbatt.h
$(OBJ_PATH)/exeset.o: ${DORE_LOC}/dore/include/internal/modclpvol.h
$(OBJ_PATH)/exeset.o: ${DORE_LOC}/dore/include/internal/util.h
$(OBJ_PATH)/fil.o: ${DORE_LOC}/dore/include/dore.h
$(OBJ_PATH)/fil.o: ${DORE_LOC}/dore/include/dore_develop/develop.h
$(OBJ_PATH)/fil.o: ${DORE_LOC}/dore/include/dore_develop/error.h
$(OBJ_PATH)/fil.o: ${DORE_LOC}/dore/include/internal/bitfield.h
$(OBJ_PATH)/fil.o: ${DORE_LOC}/dore/include/internal/dogen.h
$(OBJ_PATH)/fil.o: ${DORE_LOC}/dore/include/internal/error.h
$(OBJ_PATH)/fil.o: ${DORE_LOC}/dore/include/internal/exeset.h
$(OBJ_PATH)/fil.o: ${DORE_LOC}/dore/include/internal/filters.h
$(OBJ_PATH)/fil.o: ${DORE_LOC}/dore/include/internal/font.h
$(OBJ_PATH)/fil.o: ${DORE_LOC}/dore/include/internal/glbatt.h
$(OBJ_PATH)/fil.o: ${DORE_LOC}/dore/include/internal/modclpvol.h
$(OBJ_PATH)/fil.o: ${DORE_LOC}/dore/include/internal/util.h
$(OBJ_PATH)/filerstr.o: ${DORE_LOC}/dore/include/dore.h
$(OBJ_PATH)/filerstr.o: ${DORE_LOC}/dore/include/dore_develop/develop.h
$(OBJ_PATH)/filerstr.o: ${DORE_LOC}/dore/include/dore_develop/error.h
$(OBJ_PATH)/filerstr.o: ${DORE_LOC}/dore/include/dore_develop/private/filerstr.h
$(OBJ_PATH)/filerstr.o: ${DORE_LOC}/dore/include/internal/dogen.h
$(OBJ_PATH)/filerstr.o: ${DORE_LOC}/dore/include/internal/error.h
$(OBJ_PATH)/filerstr.o: ${DORE_LOC}/dore/include/internal/font.h
$(OBJ_PATH)/filerstr.o: ${DORE_LOC}/dore/include/internal/util.h
$(OBJ_PATH)/label.o: ${DORE_LOC}/dore/include/dore.h
$(OBJ_PATH)/label.o: ${DORE_LOC}/dore/include/dore_develop/develop.h
$(OBJ_PATH)/label.o: ${DORE_LOC}/dore/include/dore_develop/error.h
$(OBJ_PATH)/label.o: ${DORE_LOC}/dore/include/internal/dogen.h
$(OBJ_PATH)/label.o: ${DORE_LOC}/dore/include/internal/error.h
$(OBJ_PATH)/label.o: ${DORE_LOC}/dore/include/internal/font.h
$(OBJ_PATH)/label.o: ${DORE_LOC}/dore/include/internal/util.h
$(OBJ_PATH)/namset.o: ${DORE_LOC}/dore/include/dore.h
$(OBJ_PATH)/namset.o: ${DORE_LOC}/dore/include/dore_develop/develop.h
$(OBJ_PATH)/namset.o: ${DORE_LOC}/dore/include/dore_develop/error.h
$(OBJ_PATH)/namset.o: ${DORE_LOC}/dore/include/internal/bitfield.h
$(OBJ_PATH)/namset.o: ${DORE_LOC}/dore/include/internal/dogen.h
$(OBJ_PATH)/namset.o: ${DORE_LOC}/dore/include/internal/error.h
$(OBJ_PATH)/namset.o: ${DORE_LOC}/dore/include/internal/exeset.h
$(OBJ_PATH)/namset.o: ${DORE_LOC}/dore/include/internal/filters.h
$(OBJ_PATH)/namset.o: ${DORE_LOC}/dore/include/internal/font.h
$(OBJ_PATH)/namset.o: ${DORE_LOC}/dore/include/internal/glbatt.h
$(OBJ_PATH)/namset.o: ${DORE_LOC}/dore/include/internal/modclpvol.h
$(OBJ_PATH)/namset.o: ${DORE_LOC}/dore/include/internal/util.h
$(OBJ_PATH)/null.o: ${DORE_LOC}/dore/include/dore.h
$(OBJ_PATH)/null.o: ${DORE_LOC}/dore/include/dore_develop/develop.h
$(OBJ_PATH)/null.o: ${DORE_LOC}/dore/include/dore_develop/error.h
$(OBJ_PATH)/null.o: ${DORE_LOC}/dore/include/internal/dogen.h
$(OBJ_PATH)/null.o: ${DORE_LOC}/dore/include/internal/error.h
$(OBJ_PATH)/null.o: ${DORE_LOC}/dore/include/internal/font.h
$(OBJ_PATH)/null.o: ${DORE_LOC}/dore/include/internal/util.h
$(OBJ_PATH)/pckid.o: ${DORE_LOC}/dore/include/dore.h
$(OBJ_PATH)/pckid.o: ${DORE_LOC}/dore/include/dore_develop/develop.h
$(OBJ_PATH)/pckid.o: ${DORE_LOC}/dore/include/dore_develop/error.h
$(OBJ_PATH)/pckid.o: ${DORE_LOC}/dore/include/internal/bitfield.h
$(OBJ_PATH)/pckid.o: ${DORE_LOC}/dore/include/internal/dogen.h
$(OBJ_PATH)/pckid.o: ${DORE_LOC}/dore/include/internal/error.h
$(OBJ_PATH)/pckid.o: ${DORE_LOC}/dore/include/internal/exeset.h
$(OBJ_PATH)/pckid.o: ${DORE_LOC}/dore/include/internal/filters.h
$(OBJ_PATH)/pckid.o: ${DORE_LOC}/dore/include/internal/font.h
$(OBJ_PATH)/pckid.o: ${DORE_LOC}/dore/include/internal/glbatt.h
$(OBJ_PATH)/pckid.o: ${DORE_LOC}/dore/include/internal/modclpvol.h
$(OBJ_PATH)/pckid.o: ${DORE_LOC}/dore/include/internal/util.h
$(OBJ_PATH)/popatt.o: ${DORE_LOC}/dore/include/dore.h
$(OBJ_PATH)/popatt.o: ${DORE_LOC}/dore/include/dore_develop/develop.h
$(OBJ_PATH)/popatt.o: ${DORE_LOC}/dore/include/dore_develop/error.h
$(OBJ_PATH)/popatt.o: ${DORE_LOC}/dore/include/internal/dogen.h
$(OBJ_PATH)/popatt.o: ${DORE_LOC}/dore/include/internal/error.h
$(OBJ_PATH)/popatt.o: ${DORE_LOC}/dore/include/internal/font.h
$(OBJ_PATH)/popatt.o: ${DORE_LOC}/dore/include/internal/util.h
$(OBJ_PATH)/pshatt.o: ${DORE_LOC}/dore/include/dore.h
$(OBJ_PATH)/pshatt.o: ${DORE_LOC}/dore/include/dore_develop/develop.h
$(OBJ_PATH)/pshatt.o: ${DORE_LOC}/dore/include/dore_develop/error.h
$(OBJ_PATH)/pshatt.o: ${DORE_LOC}/dore/include/internal/dogen.h
$(OBJ_PATH)/pshatt.o: ${DORE_LOC}/dore/include/internal/error.h
$(OBJ_PATH)/pshatt.o: ${DORE_LOC}/dore/include/internal/font.h
$(OBJ_PATH)/pshatt.o: ${DORE_LOC}/dore/include/internal/util.h
$(OBJ_PATH)/rstr.o: ${DORE_LOC}/dore/include/dore.h
$(OBJ_PATH)/rstr.o: ${DORE_LOC}/dore/include/dore_develop/develop.h
$(OBJ_PATH)/rstr.o: ${DORE_LOC}/dore/include/dore_develop/error.h
$(OBJ_PATH)/rstr.o: ${DORE_LOC}/dore/include/dore_develop/private/rstr.h
$(OBJ_PATH)/rstr.o: ${DORE_LOC}/dore/include/internal/dogen.h
$(OBJ_PATH)/rstr.o: ${DORE_LOC}/dore/include/internal/error.h
$(OBJ_PATH)/rstr.o: ${DORE_LOC}/dore/include/internal/font.h
$(OBJ_PATH)/rstr.o: ${DORE_LOC}/dore/include/internal/util.h
$(OBJ_PATH)/slot.o: ${DORE_LOC}/dore/include/dore.h
$(OBJ_PATH)/slot.o: ${DORE_LOC}/dore/include/dore_develop/develop.h
$(OBJ_PATH)/slot.o: ${DORE_LOC}/dore/include/dore_develop/error.h
$(OBJ_PATH)/slot.o: ${DORE_LOC}/dore/include/internal/dogen.h
$(OBJ_PATH)/slot.o: ${DORE_LOC}/dore/include/internal/error.h
$(OBJ_PATH)/slot.o: ${DORE_LOC}/dore/include/internal/font.h
$(OBJ_PATH)/slot.o: ${DORE_LOC}/dore/include/internal/system.h
$(OBJ_PATH)/slot.o: ${DORE_LOC}/dore/include/internal/util.h
