# Copyright (c) 1991, 1992 by Frank J. Edwards
# All rights reserved.  (However, I'm flexible.  Go ahead and ask. :-)

# I've switched to GNU make 3.62, as you can probably tell (!)

OBJS = source/exp
DISTR = README Manifest COPYRIGHT INSTALLATION Makefile Makefile.local `cat Manifest`
SHAR = shar3
SHARFLAGS = -Mc -a -n "AmigaDOS VFS for Amix" -l48

.PHONY: $(OBJS) kit ci clean ados_fs

exp: $(OBJS)
	ld -r -o exp $(OBJS)

clean:
	rm -f $(OBJS) exp ../exp

source/exp:
	cd source; $(MAKE) exp

ados_fs:
	cd ados_fs; $(MAKE) CFLAGS="-O -s -I../source" mount lsfs

kit:
	rm -f ados_vfs.?? ados_fs/lsfs ados_fs/mount source/exp
	find ados_fs master.d source sbin	\
	    ! -name 'tags'			\
	    ! -name '*.o'			\
	    ! \( -name Notes -prune \)		\
	    ! \( -name RCS -prune \)		\
	    ! \( -name .proto -prune \)		\
	    ! -type d -print | sort -o Manifest
	$(SHAR) -o ados_vfs $(SHARFLAGS) $(DISTR)

ci:	Makefile INSTALLATION README COPYRIGHT
	-ci -l $(CIFLAGS) $?
