
/*
** INGRES makefile for front!st!crsfiles
*/

/* History
**	14-jan-93 (dianeh)
**		Created.
**	17-feb-93 (dianeh)
**		Added sed to commands list to allow for History
**		comment-blocks; fixed date on previous history.
**	xx-oct-93 (tyler)
**		Added target: secure.crs
**	18-feb-94 (tomm)
** 		Fix ming file to use ccpp instead of cpp.  This way we
**		drag in the config string and can pick our editor based
**		on platform.  BUG # 59564
**	17-nov-94 (forky01)
**		Fix ming file to remove the symbolic link before trying
**		to change the build directory crs file.
**	04-mar-96 (rajus01)
**		Added bridge.crs
**	13-mar-96 (harpa06)
**		Added ice.crs for internet communication.
**	25-mar-1998 (canor01)
**	        Added Gateway crs files.
**	05-Mar-1999 (peeje01)
**	        Add icesvr.crs
**	25-Apr-2000 (hanch04)
**		Added jdbc.crs
**	28-apr-2000 (somsa01)
**		Unalias product prefix variables.
**	31-aug-2000 (hanch04)
**		Added tng.crs
**      17-jan-2002 (loera01) SIR 106858
**              Added kerberos.crs.
**      31-oct-2002 (mofja02) 
**              Added db2udb.crs.
**	22-Feb-2003 (wansh01)
**		Added das.crs 
*/

files : \
	$(INGFILES)/all.crs \
	$(INGFILES)/dbms.crs \
	$(INGFILES)/net.crs \
	$(INGFILES)/bridge.crs \
	$(INGFILES)/secure.crs \
	$(INGFILES)/star.crs \
	$(INGFILES)/tz.crs \
	$(INGFILES)/ice.crs \
	$(INGFILES)/icesvr.crs \
	$(INGFILES)/oracle.crs \
	$(INGFILES)/sybase.crs \
	$(INGFILES)/informix.crs \
	$(INGFILES)/db2udb.crs \
	$(INGFILES)/jdbc.crs \
	$(INGFILES)/das.crs \
	$(INGFILES)/kerberos.crs \
	$(INGFILES)/tng.crs

$(INGFILES)/all.crs : all.crs 
	rm -f $(<)
	sed -e '/^--#/d' -e 's:(PROG0PRFX):$(PROG0PRFX):g' \
		-e 's:(PROG1PRFX):$(PROG1PRFX):g' \
		-e 's:(PROG2PRFX):$(PROG2PRFX):g' \
		-e 's:(PROG3PRFX):$(PROG3PRFX):g' \
		-e 's:(PROG4PRFX):$(PROG4PRFX):g' \
		-e 's:(PRODLOC):$(PRODLOC):g' \
		-e 's:(PROD1NAME):$(PROD1NAME):g' \
		-e 's:(PROD2NAME):$(PROD2NAME):g' $(>) | $(CCPP)   > $(<)
	$(CHMOD) $(FILEMODE) $(<)

$(INGFILES)/dbms.crs : dbms.crs
	rm -f $(<)
	sed '/^--#/d' $(>) | $(CCPP)   > $(<)
	$(CHMOD) $(FILEMODE) $(<)

$(INGFILES)/tng.crs : tng.crs
	rm -f $(<)
	sed '/^--#/d' $(>) | $(CCPP)   > $(<)
	$(CHMOD) $(FILEMODE) $(<)

$(INGFILES)/net.crs : net.crs
	rm -f $(<)
	sed -e '/^--#/d' -e 's:(PROG0PRFX):$(PROG0PRFX):g' \
		-e 's:(PROG1PRFX):$(PROG1PRFX):g' \
		-e 's:(PROG2PRFX):$(PROG2PRFX):g' \
		-e 's:(PROG3PRFX):$(PROG3PRFX):g' \
		-e 's:(PROG4PRFX):$(PROG4PRFX):g' \
		-e 's:(PRODLOC):$(PRODLOC):g' \
		-e 's:(PROD1NAME):$(PROD1NAME):g' \
		-e 's:(PROD2NAME):$(PROD2NAME):g' $(>) | $(CCPP)   > $(<)
	$(CHMOD) $(FILEMODE) $(<)

$(INGFILES)/bridge.crs : bridge.crs
	rm -f $(<)
	sed -e '/^--#/d' -e 's:(PROG0PRFX):$(PROG0PRFX):g' \
		-e 's:(PROG1PRFX):$(PROG1PRFX):g' \
		-e 's:(PROG2PRFX):$(PROG2PRFX):g' \
		-e 's:(PROG3PRFX):$(PROG3PRFX):g' \
		-e 's:(PROG4PRFX):$(PROG4PRFX):g' \
		-e 's:(PRODLOC):$(PRODLOC):g' \
		-e 's:(PROD1NAME):$(PROD1NAME):g' \
		-e 's:(PROD2NAME):$(PROD2NAME):g' $(>) | $(CCPP)   > $(<)
	$(CHMOD) $(FILEMODE) $(<)

$(INGFILES)/secure.crs : secure.crs
	rm -f $(<)
	sed '/^--#/d' $(>) | $(CCPP)   > $(<)
	$(CHMOD) $(FILEMODE) $(<)

$(INGFILES)/star.crs : star.crs
	rm -f $(<)
	sed '/^--#/d' $(>) | $(CCPP)   > $(<)
	$(CHMOD) $(FILEMODE) $(<)

$(INGFILES)/tz.crs : tz.crs
	rm -f $(<)
	sed -e '/^--#/d' -e 's:(PROG0PRFX):$(PROG0PRFX):g' \
		-e 's:(PROG1PRFX):$(PROG1PRFX):g' \
		-e 's:(PROG2PRFX):$(PROG2PRFX):g' \
		-e 's:(PROG3PRFX):$(PROG3PRFX):g' \
		-e 's:(PROG4PRFX):$(PROG4PRFX):g' \
		-e 's:(PRODLOC):$(PRODLOC):g' \
		-e 's:(PROD1NAME):$(PROD1NAME):g' \
		-e 's:(PROD2NAME):$(PROD2NAME):g' $(>) | $(CCPP)   > $(<)
	$(CHMOD) $(FILEMODE) $(<)

$(INGFILES)/ice.crs : ice.crs
        rm -f $(<)
        sed '/^--#/d' $(>) | $(CCPP)   > $(<)
        $(CHMOD) $(FILEMODE) $(<)

$(INGFILES)/icesvr.crs : icesvr.crs
        rm -f $(<)
        sed '/^--#/d' $(>) | $(CCPP)   > $(<)
        $(CHMOD) $(FILEMODE) $(<)

$(INGFILES)/oracle.crs : oracle.crs
        rm -f $(<)
        sed '/^--#/d' $(>) | $(CCPP)   > $(<)
        $(CHMOD) $(FILEMODE) $(<)

$(INGFILES)/sybase.crs : sybase.crs
        rm -f $(<)
        sed '/^--#/d' $(>) | $(CCPP)   > $(<)
        $(CHMOD) $(FILEMODE) $(<)

$(INGFILES)/informix.crs : informix.crs
        rm -f $(<)
        sed '/^--#/d' $(>) | $(CCPP)   > $(<)
        $(CHMOD) $(FILEMODE) $(<)

$(INGFILES)/db2udb.crs : db2udb.crs
        rm -f $(<)
        sed '/^--#/d' $(>) | $(CCPP)   > $(<)
        $(CHMOD) $(FILEMODE) $(<)

$(INGFILES)/jdbc.crs : jdbc.crs
        rm -f $(<)
	sed -e '/^--#/d' -e 's:(PROG0PRFX):$(PROG0PRFX):g' \
		-e 's:(PROG1PRFX):$(PROG1PRFX):g' \
		-e 's:(PROG2PRFX):$(PROG2PRFX):g' \
		-e 's:(PROG3PRFX):$(PROG3PRFX):g' \
		-e 's:(PROG4PRFX):$(PROG4PRFX):g' \
		-e 's:(PRODLOC):$(PRODLOC):g' \
		-e 's:(PROD1NAME):$(PROD1NAME):g' \
		-e 's:(PROD2NAME):$(PROD2NAME):g' $(>) | $(CCPP)   > $(<)
        $(CHMOD) $(FILEMODE) $(<)

$(INGFILES)/das.crs : das.crs 
        rm -f $(<)
	sed -e '/^--#/d' -e 's:(PROG0PRFX):$(PROG0PRFX):g' \
		-e 's:(PROG1PRFX):$(PROG1PRFX):g' \
		-e 's:(PROG2PRFX):$(PROG2PRFX):g' \
		-e 's:(PROG3PRFX):$(PROG3PRFX):g' \
		-e 's:(PROG4PRFX):$(PROG4PRFX):g' \
		-e 's:(PRODLOC):$(PRODLOC):g' \
		-e 's:(PROD1NAME):$(PROD1NAME):g' \
		-e 's:(PROD2NAME):$(PROD2NAME):g' $(>) | $(CCPP)   > $(<)
        $(CHMOD) $(FILEMODE) $(<)

$(INGFILES)/kerberos.crs : kerberos.crs
        rm -f $(<)
	sed -e '/^--#/d' -e 's:(PROG1PRFX):$(PROG1PRFX):g' \
		-e 's:(PROG4PRFX):$(PROG4PRFX):g' \
		$(>) | $(CCPP)   > $(<)
        $(CHMOD) $(FILEMODE) $(<)
