TOPSRCDIR = @top_srcdir@ TOPOBJDIR = ../.. SRCDIR = @srcdir@ VPATH = @srcdir@ EXEEXT = @EXEEXT@ PROGRAMS = wmc$(EXEEXT) MANPAGES = wmc.man MODULE = none C_SRCS = \ lang.c \ mcl.c \ utils.c \ wmc.c \ write.c EXTRA_SRCS = mcy.y EXTRA_OBJS = mcy.tab.o INSTALLDIRS = $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext) all: $(PROGRAMS) $(MANPAGES) mcl.o: mcy.tab.h @MAKE_RULES@ wmc$(EXEEXT): $(OBJS) $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBWINE) $(LIBPORT) $(LEXLIB) $(LDFLAGS) mcy.tab.c mcy.tab.h: mcy.y $(BISON) -d -t $(SRCDIR)/mcy.y -o mcy.tab.c # hack to allow parallel make mcy.tab.h: mcy.tab.c mcy.tab.o: mcy.tab.h install:: $(PROGRAMS) $(MANPAGES) $(INSTALLDIRS) $(INSTALL_DATA) wmc.man $(DESTDIR)$(mandir)/man$(prog_manext)/wmc.$(prog_manext) $(INSTALL_PROGRAM) wmc$(EXEEXT) $(DESTDIR)$(bindir)/wmc$(EXEEXT) uninstall:: $(RM) $(DESTDIR)$(bindir)/wmc$(EXEEXT) $(DESTDIR)$(mandir)/man$(prog_manext)/wmc.$(prog_manext) ### Dependencies: