# Makefile for HTML library # RANLIB = ranlib AR = ar cq HTMLLIB = libHTML.a PROG=sgml_test PROGOBJ = SGMLmain.o HTMLLIBOBJ = SGMLstream.o HTMLentities.o SRCS = SGMLmain.c \ SGMLstream.c \ HTMLentities.c HDRS = SGMLstream.h c_dialect.h HTML_SGML_decl.h HTMLentities.h DEBUG = -g DEFINES = -DSGML_DECLARATION=\"HTML_SGML_decl.h\" CFLAGS = $(DEBUG) $(DEFINES) $(HTMLLIB): $(HTMLLIBOBJ) rm -rf $(HTMLLIB) ar cq $(HTMLLIB) $(HTMLLIBOBJ) $(RANLIB) $(HTMLLIB) $(PROG): $(PROGOBJ) $(HTMLLIB) $(CC) -o $(PROG) $(CFLAGS) $(PROGOBJ) $(HTMLLIB) TESTFILE = test.html test: $(PROG) $(PROG) < $(TESTFILE) depend: makedepend $(CFLAGS) $(SRCS) shar: libHTML.shar libHTML.shar: shar Makefile $(SRCS) test.html $(HDRS) >$@ # DO NOT DELETE THIS LINE -- make depend depends on it. SGMLmain.o: SGMLstream.h c_dialect.h HTML_SGML_decl.h HTMLentities.h SGMLmain.o: SGMLstream.h /usr/include/stdio.h /usr/include/string.h SGMLstream.o: SGMLstream.h /usr/include/ctype.h /usr/include/assert.h HTMLentities.o: HTMLentities.h SGMLstream.h /usr/include/string.h