1 TOPSRCDIR
= @top_srcdir@
6 PROGRAMS
= winhelp hlp2sgml
7 ALL_LIBS
= $(WINELIB
) $(X_LIBS
) $(XPM_LIB
) $(XLIB
) $(LDLIBS
)
10 LANGUAGES
= En Da De Fr Fi Ko Hu It Va
15 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
16 INSTALL_DATA
= @INSTALL_DATA@
18 exec_prefix = @
exec_prefix@
21 sysconfdir
= @sysconfdir@
22 mandir = @
mandir@
/man1
30 # Some strings need addresses >= 0x10000
33 EXTRA_SRCS
= macro.
yacc.y macro.
lex.l
34 EXTRA_OBJS
= y.tab.o
lex.yy.o
36 RC_SRCS
= $(LANGUAGES
:%=%.rc
)
38 C_SRCS
= $(MOSTSRCS
) $(STRINGSRCS
)
40 MOSTOBJS
= $(MOSTSRCS
:.c
=.o
)
41 STRINGOBJS
= $(STRINGSRCS
:.c
=.o
) $(RC_SRCS
:.rc
=.o
)
43 all: check_winerc
$(PROGRAMS
)
45 depend
:: $(RC_SRCS
:.rc
=.h
) y.tab.h
49 # Some strings need addresses >= 0x10000
50 winhelp
: $(MOSTOBJS
) $(STRINGOBJS
)
51 $(CC
) -o winhelp
$(MOSTOBJS
) $(LDOPTIONS
) $(ALL_LIBS
) $(STRINGOBJS
)
53 hlp2sgml
: hlp2sgml.o hlpfile.o
54 $(CC
) -o hlp2sgml hlp2sgml.o hlpfile.o
57 $(INSTALL_PROGRAM
) winhelp
$(bindir)/winhelp
58 $(INSTALL_PROGRAM
) hlp2sgml
$(bindir)/hlp2sgml
60 y.tab.c y.tab.h
: macro.
yacc.y
61 $(YACC
) -d
-t
$(SRCDIR
)/macro.
yacc.y
64 $(LEX
) -8 -i
$(SRCDIR
)/macro.
lex.l
66 $(RC_SRCS
:.rc
=.c
) $(RC_SRCS
:.rc
=.h
): $(WINERC
)