Release 970928
[wine.git] / programs / winhelp / Makefile.in
blob22b605add851c1912d7e21f031d7470441d9dfb4
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ../..
3 SRCDIR = @srcdir@
4 VPATH = @srcdir@
5 MODULE = none
6 PROGRAMS = winhelp hlp2sgml
7 ALL_LIBS = $(WINELIB) $(X_LIBS) $(XPM_LIB) $(XLIB) $(LDLIBS)
8 RCFLAGS = -w32 -h
10 LANGUAGES = En Da De Fr Fi Ko Hu It Va
12 # Installation infos
14 INSTALL = @INSTALL@
15 INSTALL_PROGRAM = @INSTALL_PROGRAM@
16 INSTALL_DATA = @INSTALL_DATA@
17 prefix = @prefix@
18 exec_prefix = @exec_prefix@
19 bindir = @bindir@
20 libdir = @libdir@
21 sysconfdir = @sysconfdir@
22 mandir = @mandir@/man1
23 manext = .1
25 MOSTSRCS = \
26 winhelp.c \
27 hlpfile.c \
28 macro.c
30 # Some strings need addresses >= 0x10000
31 STRINGSRCS = string.c
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
47 @MAKE_RULES@
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
56 install: dummy
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
63 lex.yy.c: macro.lex.l
64 $(LEX) -8 -i $(SRCDIR)/macro.lex.l
66 $(RC_SRCS:.rc=.c) $(RC_SRCS:.rc=.h): $(WINERC)
68 dummy:
70 ### Dependencies: