# MKPKG file for the IMPORT task

$call update
$exit

update:
	$checkout libpkg.a ../
	$update   libpkg.a
	$checkin  libpkg.a ../
	;

generic:
        $set    GEN = "$$generic -k"

        $ifolder (generic/ipdb.x, ipdb.gx)
            $(GEN) ipdb.gx -o generic/ipdb.x $endif
        $ifolder (generic/ipfio.x, ipfio.gx)
            $(GEN) ipfio.gx -o generic/ipfio.x $endif
        $ifolder (generic/ipobands.x, ipobands.gx)
            $(GEN) ipobands.gx -o generic/ipobands.x $endif
        $ifolder (generic/ipproc.x, ipproc.gx)
            $(GEN) ipproc.gx -o generic/ipproc.x $endif
	;

libpkg.a:
        $ifeq (USE_GENERIC, yes) $call generic $endif
	@generic
	@bltins

	fmtdb.x		import.h <ctotok.h> <error.h> <evvexpr.h> <fset.h>
	ipbuiltin.x	import.h
	ipinfo.x	import.h
	iplistpix.x	<imhdr.h> <error.h> <mwset.h>
	ipmkhdr.x	import.h <ctype.h> <imhdr.h>
	t_import.x	import.h <ctype.h> <error.h> <evvexpr.h> <imhdr.h>
	zzidbg.x	import.h <evvexpr.h>
	;
