2 TOPSRCDIR = @top_srcdir@
7 PROGRAMS = winhelp hlp2sgml
8 ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS)
10 WRCEXTRA = -t -A -p $*
12 LANGUAGES = En Da De Fr Fi Ko Hu It Va Sw Es Wa Pt
19 # Some strings need addresses >= 0x10000
22 EXTRA_SRCS = macro.yacc.y macro.lex.l
23 EXTRA_OBJS = y.tab.o lex.yy.o
25 RC_SRCS = $(LANGUAGES:%=%.rc)
27 C_SRCS = $(MOSTSRCS) $(STRINGSRCS)
29 MOSTOBJS = $(MOSTSRCS:.c=.o) $(EXTRA_OBJS)
30 STRINGOBJS = $(STRINGSRCS:.c=.o) $(RC_SRCS:.rc=.o)
32 all: check_wrc $(PROGRAMS)
34 depend:: $(RC_SRCS:.rc=.h) y.tab.h
38 # Override resource compiler rules
40 $(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P -x c $< | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -o $*.s
43 $(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P -x c $< | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -nH $*.h
45 # Some strings need addresses >= 0x10000
46 winhelp: $(MOSTOBJS) $(STRINGOBJS) $(WINESTUB)
47 $(CC) -o winhelp $(MOSTOBJS) $(LDOPTIONS) $(ALL_LIBS) $(STRINGOBJS)
49 hlp2sgml: hlp2sgml.o hlpfile.o
50 $(CC) -o hlp2sgml hlp2sgml.o hlpfile.o
53 $(INSTALL_PROGRAM) winhelp $(bindir)/winhelp
54 $(INSTALL_PROGRAM) hlp2sgml $(bindir)/hlp2sgml
57 $(RM) $(bindir)/winhelp $(bindir)/hlp2sgml
59 y.tab.c y.tab.h: macro.yacc.y
60 $(YACC) -d -t $(SRCDIR)/macro.yacc.y
63 $(LEX) -8 -i $(SRCDIR)/macro.lex.l
65 $(RC_SRCS:.rc=.s): $(WRC)