2 TOPSRCDIR = @top_srcdir@
7 PROGRAMS = winhelp hlp2sgml
8 ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS)
9 WRCEXTRA = -t -A -p winhelp
17 EXTRA_SRCS = macro.yacc.y macro.lex.l
18 EXTRA_OBJS = y.tab.o lex.yy.o
22 all: check_wrc $(PROGRAMS)
28 # Override resource compiler rules
30 $(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P -x c $< | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -o $*.s
32 winhelp: $(OBJS) $(WINESTUB)
33 $(CC) -o winhelp $(OBJS) $(LDOPTIONS) $(ALL_LIBS)
35 hlp2sgml: hlp2sgml.o hlpfile.o
36 $(CC) -o hlp2sgml hlp2sgml.o hlpfile.o
39 $(INSTALL_PROGRAM) winhelp $(bindir)/winhelp
40 $(INSTALL_PROGRAM) hlp2sgml $(bindir)/hlp2sgml
43 $(RM) $(bindir)/winhelp $(bindir)/hlp2sgml
45 y.tab.c y.tab.h: macro.yacc.y
46 $(YACC) -d -t $(SRCDIR)/macro.yacc.y
49 $(LEX) -8 -i $(SRCDIR)/macro.lex.l