/* Copyright (C) 1992, Digital Equipment Corporation                         */
/* All rights reserved.                                                      */
/* See the file COPYRIGHT for a full description.                            */

/* Last modified on Wed Nov 11 10:35:51 PST 1992 by detlefs                  */
/*      modified on Wed Sep 30 21:16:13 PDT 1992 by muller                   */

all:: m3tags FTAGS

m3tags:  m3tags.o y.tab.o
	$(CC) -o m3tags $(CFLAGS) m3tags.o y.tab.o -ll

y.tab.o: ../src/y.tab.c ../src/lex.yy.c ../src/hash.h ../src/yaccpar
	$(CC) -I../src -I. $(CFLAGS) -c ../src/y.tab.c

m3tags.o: ../src/m3tags.c
	$(CC) -I../src -I. $(CFLAGS) -c ../src/m3tags.c


FTAGS: FRC
	find $(PUB_USE) \( -name \*.i3 -o -name \*.ig \) -print | \         @@\
		./m3tags -q - > FTAGS 2> ERRORS

install::
	@$(LIB_USE)/recmkdir $(GNUEMACS_INSTALL)

clean::
	rm -f m3tags y.tab.o m3tags.o FTAGS

BindExport (m3tags)
ManPage (m3tags,1)
ManPage (gnuemacs,1)
Gnuemacs (tags)
LibdExport (FTAGS)

CompiledGnuemacs (modula3)
CompiledGnuemacs (nm3)
CompiledGnuemacs (m3-debug)
CompiledGnuemacs (shell-compile)


