/* Token scanning library Imakefile */
XCOMM Token scanning library Makefile

XCOMM Use "make World" to build this project.
XCOMM Requires the WRPRC2 configuration files.
XCOMM Look at the files in the config subdirectory to see if you want
XCOMM to change anything.

XCOMM	where to install tokenscan.h

LIBSRCS = tokenscan.c
LIBOBJS = tokenscan.o

TESTSRCS = tstest.c
TESTOBJS = tstest.o

SRCS = $(LIBSRCS) $(TESTSRCS)

NormalLibraryObjectRule()

BuildNormalLibrary(tokenscan,$(LIBSRCS),$(LIBOBJS))
InstallLibrary(tokenscan,$(LOCALUSRLIBDIR))

InstallIncludeFile(tokenscan.h,$(LOCALINCLUDEROOT))

BuildProgram(tstest,$(TESTSRCS),$(TESTOBJS),$(TSLIB),$(DEPTSLIB))
FakeInstallFile(tstest)

test:: tstest
	./tstest testin1
	./tstest -s testin2

regression:: tstest
	./tstest testin1 | diff testout1 -
	./tstest -s testin2 | diff testout2 -

DependTarget ()

SimpleWorldTarget($(PROJECTNAME),$(PROJECTRELEASE))

TroffMsToPostScript(tokenscan.ps,tokenscan.ms,|$(TBL),NullArg)
