Release 980601
[wine.git] / programs / winhelp / Makefile.in
blob2b71249cbde0c34eb4168c96856d2af9dd73e62e
1 DEFS = -DWINELIB
2 TOPSRCDIR = @top_srcdir@
3 TOPOBJDIR = ../..
4 SRCDIR = @srcdir@
5 VPATH = @srcdir@
6 MODULE = none
7 PROGRAMS = winhelp hlp2sgml
8 ALL_LIBS = $(WINELIB) $(X_LIBS) $(XPM_LIB) $(XLIB) $(LIBS)
9 RCFLAGS = -w32 -h
11 LANGUAGES = En Da De Fr Fi Ko Hu It Va Sw
13 MOSTSRCS = \
14 winhelp.c \
15 hlpfile.c \
16 macro.c
18 # Some strings need addresses >= 0x10000
19 STRINGSRCS = string.c
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
35 @MAKE_RULES@
37 # Rules for using old resource compiler
38 .rc.c:
39 echo "#include \"windows.h\"" >$*-tmp.c
40 echo WINDOWS_H_ENDS_HERE >>$*-tmp.c
41 cat $< >>$*-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 $*
43 $(RM) $*-tmp.c
44 .rc.h:
45 echo "#include \"windows.h\"" >$*-tmp.c
46 echo WINDOWS_H_ENDS_HERE >>$*-tmp.c
47 cat $< >>$*-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 $*
49 $(RM) $*-tmp.c
50 clean::
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
60 install: dummy
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
67 lex.yy.c: macro.lex.l
68 $(LEX) -8 -i $(SRCDIR)/macro.lex.l
70 $(RC_SRCS:.rc=.c) $(RC_SRCS:.rc=.h): $(WINERC)
72 dummy:
74 ### Dependencies: