/*
** INGRES custom makefile for back!scf!udt.  Compiles iiuseradt and moves
** it to the deliverable area.
**
**	18-dec-1990 (bonobo)
**		Added the BAROQUE flag to make this file compatible with
**		the PE build environment.
**	18-mar-1991 (bonobo)
**		Added exact location of iiuseradt.c via the ADTDOTCLOC 
**		variable to eliminate a dependancy problem.  ming was 
**		always looking for iiuseradt.c in the directory from 
**		which it was invoked.
**   	14-sep-1993 (stevet)
**  	    	Added iiclsadt.c dependencies.
**	11-jun-2002 (hanch04)
**	    Changes for 32/64 bit build.
**	11-Aug-2002 (hanch04)
**	    Make the lp64 dir if it does not exist
*/

files:	$(BACKLIB64)/iiuseradt.o
files:	$(BACKLIB64)/iiclsadt.o


$(BAROQUE:T=N)HDR1 = $(ING_SRC)/back/scf/hdr
$(BAROQUE:T=V)HDR1 = $(ING_SRC)/back/scf/$(ING_VERS)/hdr
$(BAROQUE:T=N)HDR4 = $(ING_SRC)/back/hdr/hdr
$(BAROQUE:T=V)HDR4 = $(ING_SRC)/back/hdr/$(ING_VERS)/hdr

$(BAROQUE:T=V)ADTDOTCLOC = $(ING_SRC)/back/scf/$(ING_VERS)/src/udt
$(BAROQUE:T=N)ADTDOTCLOC = $(ING_SRC)/back/scf/udt

$(BACKLIB64)/iiclsadt.o: $(ADTDOTCLOC)/iiclsadt.c
	if [ -d $(LP64DIR) ] ; then
	    :
	else
	    mkdir $(LP64DIR)
	fi
	$(CC) -c $(OPTIM) $(CCFLAGS) $(>) -o lp64/iiclsadt.o
        $(MV) lp64/iiclsadt.o $(<)
        $(CHMOD) $(FILEMODE) $(<)

$(BACKLIB64)/iiuseradt.o: $(ADTDOTCLOC)/iiuseradt.c
	if [ -d $(LP64DIR) ] ; then
	    :
	else
	    mkdir $(LP64DIR)
	fi
	$(CC) -c $(OPTIM) $(CCFLAGS) $(>) -o lp64/iiuseradt.o
        $(MV) lp64/iiuseradt.o $(<)
        $(CHMOD) $(FILEMODE) $(<)




