+BUILT_SOURCES = mime-token.h mime-token.c
+CLEANFILES = $(BUILT_SOURCES)
+
noinst_LIBRARIES = libmime.a
-libmime_a_SOURCES = mime.h mime.c rfc822.c rfc2231.c
+libmime_a_SOURCES = mime.h mime-types.h $(BUILT_SOURCES) \
+ mime.c rfc822address.c rfc822parse.c rfc2047.c rfc2231.c
+
+noinst_HEADERS = mime.h mime-types.h
+
-noinst_HEADERS = mime.h
+mime-token.c mime-token.h: mime-token.def mime-token.sh
+ sh mime-token.sh $@ < $<
-include ../cflags.mk