Release 960521
[wine] / programs / winhelp / Makefile.in
1 TOPSRC   = @top_srcdir@
2 MODULE   = none
3 PROGRAMS = winhelp hlp2sgml
4 ALL_LIBS = $(WINELIB) $(X_LIBS) $(XPM_LIB) $(XLIB) $(LDLIBS)
5
6 LANGUAGES   = En De Fr
7
8 # Installation infos
9
10 INSTALL         = @INSTALL@
11 INSTALL_PROGRAM = @INSTALL_PROGRAM@
12 INSTALL_DATA    = @INSTALL_DATA@
13 prefix          = @prefix@
14 exec_prefix     = @exec_prefix@
15 bindir          = @bindir@
16 libdir          = @libdir@
17 sysconfdir      = @sysconfdir@
18 mandir          = @mandir@/man1
19 manext          = .1
20
21 MOSTOBJS = \
22         winhelp.o \
23         hlpfile.o \
24         macro.o \
25         y.tab.o \
26         lex.yy.o
27
28 STRINGOBJS = \
29         string.o \
30         $(LANGUAGES:%=%.o)
31
32 C_SRCS = $(MOSTOBJS:.o=.c) $(STRINGOBJS:.o=.c) hlp2sgml.c
33
34 all: check_winerc $(PROGRAMS)
35
36 @MAKE_RULES@
37
38 # Some strings need addresses >= 0x10000
39 winhelp: $(MOSTOBJS) $(STRINGOBJS) $(WINELIB)
40         $(CC) -o winhelp $(MOSTOBJS) $(LDOPTIONS) $(ALL_LIBS) $(STRINGOBJS)
41
42 hlp2sgml: hlp2sgml.o hlpfile.o
43         $(CC) -o hlp2sgml hlp2sgml.o hlpfile.o
44
45 install: dummy
46         $(INSTALL_PROGRAM) winhelp $(bindir)/winhelp
47         $(INSTALL_PROGRAM) hlp2sgml $(bindir)/hlp2sgml
48
49 clean::
50         $(RM) $(PROGRAMS) lex.yy.c y.tab.c y.tab.h
51         $(RM) $(LANGUAGES:%=%.c) $(LANGUAGES:%=%.h)
52
53 y.tab.c y.tab.h: macro.yacc.y
54         $(YACC) -d -t macro.yacc.y
55
56 lex.yy.c: macro.lex.l
57         $(LEX) -8 -i macro.lex.l
58
59 $(LANGUAGES:%=%.c) $(LANGUAGES:%=%.h): $(WINERC) Xx.rc
60
61 dummy:
62
63 ### Dependencies: