# Generate some "headers"

TOP=../..
CPPFLAGS=-I..

include $(TOP)/rules

.SUFFIXES: .ty

.ty.c:
	$(GENCODE) $(CPPFLAGS) -sed $< > $@

.ty.h:
	$(GENHDR) $(CPPFLAGS) $< > $@

dep depend all:: userfs_types.c userfs_types.h coder.h

userfs_types.c: userfs_types.ty $(GENCODE)
userfs_types.h: userfs_types.ty $(GENHDR)

coder.h:
	ln -s $(GENDIR)/coder.h .

clean::
	rm -f userfs_types.[ch] coder.h *~
