2 TOPSRCDIR = @top_srcdir@
9 EXTRALIBS = -L$(TOPOBJDIR)/tools/wpp -lwpp
11 PROGRAMS = widl$(EXEEXT)
20 EXTRA_SRCS = parser.y parser.l
21 EXTRA_OBJS = y.tab.o @LEX_OUTPUT_ROOT@.o
27 widl: $(OBJS) $(TOPOBJDIR)/tools/wpp/libwpp.a
28 $(CC) $(CFLAGS) -o widl $(OBJS) $(EXTRALIBS) $(LIBWINE) $(LIBUNICODE) $(LEXLIB) $(LDFLAGS)
30 widl.exe: $(OBJS) $(TOPOBJDIR)/tools/wpp/libwpp.a
31 $(CC) $(CFLAGS) -o widl.exe $(OBJS) $(EXTRALIBS) $(LIBWINE) $(LIBUNICODE) $(LEXLIB) -liberty $(LDFLAGS)
33 y.tab.c y.tab.h: parser.y
34 $(YACC) $(YACCOPT) -d -t $(SRCDIR)/parser.y
36 @LEX_OUTPUT_ROOT@.c: parser.l
37 $(LEX) $(LEXOPT) -d -8 $(SRCDIR)/parser.l
39 @LEX_OUTPUT_ROOT@.o: y.tab.h
42 $(RM) parser.output parser.tab.h lex.backup y.output
45 $(MKINSTALLDIRS) $(bindir)
46 $(INSTALL_PROGRAM) widl$(EXEEXT) $(bindir)/widl$(EXEEXT)
49 $(RM) $(bindir)/widl$(EXEEXT)