3 PROGRAMS = winhelp hlp2sgml
4 ALL_LIBS = $(WINELIB) $(X_LIBS) $(XPM_LIB) $(XLIB) $(LDLIBS)
11 INSTALL_PROGRAM = @INSTALL_PROGRAM@
12 INSTALL_DATA = @INSTALL_DATA@
14 exec_prefix = @exec_prefix@
17 sysconfdir = @sysconfdir@
18 mandir = @mandir@/man1
32 C_SRCS = $(MOSTOBJS:.o=.c) $(STRINGOBJS:.o=.c) hlp2sgml.c
34 all: check_winerc $(PROGRAMS)
38 # Some strings need addresses >= 0x10000
39 winhelp: $(MOSTOBJS) $(STRINGOBJS) $(WINELIB)
40 $(CC) -o winhelp $(MOSTOBJS) $(LDOPTIONS) $(ALL_LIBS) $(STRINGOBJS)
42 hlp2sgml: hlp2sgml.o hlpfile.o
43 $(CC) -o hlp2sgml hlp2sgml.o hlpfile.o
46 $(INSTALL_PROGRAM) winhelp $(bindir)/winhelp
47 $(INSTALL_PROGRAM) hlp2sgml $(bindir)/hlp2sgml
50 $(RM) $(PROGRAMS) lex.yy.c y.tab.c y.tab.h
51 $(RM) $(LANGUAGES:%=%.c) $(LANGUAGES:%=%.h)
53 y.tab.c y.tab.h: macro.yacc.y
54 $(YACC) -d -t macro.yacc.y
57 $(LEX) -8 -i macro.lex.l
59 $(LANGUAGES:%=%.c) $(LANGUAGES:%=%.h): $(WINERC) Xx.rc