2 TOPSRCDIR
= @top_srcdir@
7 PROGRAMS
= winhelp hlp2sgml
8 ALL_LIBS
= $(WINELIB
) $(X_LIBS
) $(XPM_LIB
) $(XLIB
) $(LIBS
)
11 LANGUAGES
= En Da De Fr Fi Ko Hu It Va Sw
18 # Some strings need addresses >= 0x10000
21 EXTRA_SRCS
= macro.
yacc.y macro.
lex.l
22 EXTRA_OBJS
= y.tab.o
lex.yy.o
24 RC_SRCS
= $(LANGUAGES
:%=%.rc
)
26 C_SRCS
= $(MOSTSRCS
) $(STRINGSRCS
)
28 MOSTOBJS
= $(MOSTSRCS
:.c
=.o
) $(EXTRA_OBJS
)
29 STRINGOBJS
= $(STRINGSRCS
:.c
=.o
) $(RC_SRCS
:.rc
=.o
)
31 all: check_winerc
$(PROGRAMS
)
33 depend
:: $(RC_SRCS
:.rc
=.h
) y.tab.h
37 # Rules for using old resource compiler
39 echo
"#include \"windows.h\"" >$*-tmp.c
40 echo WINDOWS_H_ENDS_HERE
>>$*-tmp.c
42 $(CPP
) $(DEFS
) $(OPTIONS
) $(DIVINCL
) -DRC_INVOKED
-P
$*-tmp.c | sed
-e
'1,/^WINDOWS_H_ENDS_HERE/d' |
$(WINERC
) $(RCFLAGS
) -c
-o
$* -p
$*
45 echo
"#include \"windows.h\"" >$*-tmp.c
46 echo WINDOWS_H_ENDS_HERE
>>$*-tmp.c
48 $(CPP
) $(DEFS
) $(OPTIONS
) $(DIVINCL
) -DRC_INVOKED
-P
$*-tmp.c | sed
-e
'1,/^WINDOWS_H_ENDS_HERE/d' |
$(WINERC
) $(RCFLAGS
) -c
-o
$* -p
$*
51 $(RM
) $(RC_SRCS
:.rc
=.c
)
53 # Some strings need addresses >= 0x10000
54 winhelp
: $(MOSTOBJS
) $(STRINGOBJS
)
55 $(CC
) -o winhelp
$(MOSTOBJS
) $(LDOPTIONS
) $(ALL_LIBS
) $(STRINGOBJS
)
57 hlp2sgml
: hlp2sgml.o hlpfile.o
58 $(CC
) -o hlp2sgml hlp2sgml.o hlpfile.o
61 $(INSTALL_PROGRAM
) winhelp
$(bindir)/winhelp
62 $(INSTALL_PROGRAM
) hlp2sgml
$(bindir)/hlp2sgml
64 y.tab.c y.tab.h
: macro.
yacc.y
65 $(YACC
) -d
-t
$(SRCDIR
)/macro.
yacc.y
68 $(LEX
) -8 -i
$(SRCDIR
)/macro.
lex.l
70 $(RC_SRCS
:.rc
=.c
) $(RC_SRCS
:.rc
=.h
): $(WINERC
)