2 TOPSRCDIR
= @top_srcdir@
22 GEN_C_SRCS
= ppy.tab.c
lex.ppl.c
23 EXTRA_SRCS
= parser.y parser.l
24 EXTRA_OBJS
= y.tab.o
lex.yy.o
28 depend
: y.tab.h ppy.tab.h
32 wrc
: $(OBJS
) $(TOPOBJDIR
)/libwine_unicode.
$(LIBEXT
)
33 $(CC
) $(CFLAGS
) -o wrc
$(OBJS
) -L
$(TOPOBJDIR
) -lwine_unicode
$(LEXLIB
) $(LDFLAGS
)
35 $(TOPOBJDIR
)/libwine_unicode.
$(LIBEXT
):
36 cd
$(TOPOBJDIR
) && $(MAKE
) libwine_unicode.
$(LIBEXT
)
38 y.tab.c y.tab.h
: parser.y
39 $(YACC
) $(YACCOPT
) -d
-t
$(SRCDIR
)/parser.y
41 ppy.tab.c ppy.tab.h
: ppy.y
42 $(YACC
) $(YACCOPT
) -bppy
-ppp
-d
-t
$(SRCDIR
)/ppy.y
45 $(LEX
) $(LEXOPT
) -d
-8 $(SRCDIR
)/parser.l
48 $(LEX
) $(LEXOPT
) -d
-Ppp
-8 -olex.ppl.c
$(SRCDIR
)/ppl.l
51 $(RM
) ppy.tab.h ppy.output parser.output parser.tab.h
lex.backup y.output
54 [ -d
$(bindir) ] ||
$(MKDIR
) $(bindir)
55 [ -d
$(mandir)/man
$(prog_manext
) ] ||
$(MKDIR
) $(mandir)/man
$(prog_manext
)
56 $(INSTALL_DATA
) $(SRCDIR
)/wrc.man
$(mandir)/man
$(prog_manext
)/wrc.
$(prog_manext
)
57 $(INSTALL_PROGRAM
) wrc
$(bindir)/wrc
60 $(RM
) $(bindir)/wrc
$(mandir)/man
$(prog_manext
)/wrc.
$(prog_manext
)