# Buildtemplate for dkusage subdirectory

HEADERS = storagedefs.h

SRCS =  dkusage.c

OBJS =  dkusage.$(OBJSUFFIX) listdir.$(OBJSUFFIX)

dkusage.$(MACHINE):	$(OBJS)
	$(CC) $(MIFLAGS) $(OBJS) -o dkusage.$(MACHINE) $(MDFLAGS) $(LIBRARIES) 

lint:
	lint -I/usr/sun/include $(SRCS) >lintlog

install: dkusage.$(MACHINE)
	$(NETINSTALL) -p dkusage.$(MACHINE) $(VSYS)/bin

install-help:
	$(NETINSTALL) dkusage.help /usr/sun/xhelp

clean:
	rm -f *BAK *CKP *.$(OBJSUFFIX) dkusage.$(MACHINE)

cleanbak:
	rm -f *.BAK *.CKP .emacs_*

tags:
	csh -c 'ctags -tw \
	{.,../$(MACHINE),../mi,/$(Xx)V/libc/include/{mi,$(MACHINE)}}/*.[ch]'
	cp tags ../mi/tags

# NOTE: having *.c here without the csh invocation,
# when it expands to nothing, will cause it to croak.
depend:
	csh -c 'makedep -$(Xx)V -t $(MACHINE) ../$(MACHINE)/*.c ../mi/*.c'


relink:
	rm -f *.$(MACHINE)
