1 DEFS
= -DDINCLUDEDIR
="\"$(includedir)\""
2 TOPSRCDIR
= @top_srcdir@
9 EXTRALIBS
= -L
$(TOPOBJDIR
)/tools
/wpp
-lwpp
11 PROGRAMS
= wrc
$(EXEEXT
)
23 EXTRA_SRCS
= parser.y parser.l
24 EXTRA_OBJS
= y.tab.o @LEX_OUTPUT_ROOT@.o
30 wrc
$(EXEEXT
): $(OBJS
) $(TOPOBJDIR
)/tools
/wpp
/libwpp.a
31 $(CC
) $(CFLAGS
) -o
$@
$(OBJS
) $(EXTRALIBS
) $(LIBUNICODE
) $(LIBPORT
) $(LEXLIB
) $(LDFLAGS
)
33 y.tab.c y.tab.h
: parser.y
34 $(YACC
) $(YACCOPT
) -d
-t
$(SRCDIR
)/parser.y
36 # hack to allow parallel make
40 @LEX_OUTPUT_ROOT@.c
: parser.l
41 $(LEX
) $(LEXOPT
) -d
-8 $(SRCDIR
)/parser.l
43 @LEX_OUTPUT_ROOT@.o
: y.tab.h
46 $(MKINSTALLDIRS
) $(bindir) $(mandir)/man
$(prog_manext
)
47 $(INSTALL_DATA
) $(SRCDIR
)/wrc.man
$(mandir)/man
$(prog_manext
)/wrc.
$(prog_manext
)
48 $(INSTALL_PROGRAM
) wrc
$(EXEEXT
) $(bindir)/wrc
$(EXEEXT
)
51 $(RM
) $(bindir)/wrc
$(EXEEXT
) $(mandir)/man
$(prog_manext
)/wrc.
$(prog_manext
)