Link only a single .rc file with application.
[wine] / programs / winhelp / Makefile.in
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) $(XLIB) $(LIBS)
9 WRCEXTRA  = -t -A -p winhelp
10
11 C_SRCS = \
12         winhelp.c \
13         hlpfile.c \
14         macro.c \
15         string.c
16
17 EXTRA_SRCS = macro.yacc.y macro.lex.l
18 EXTRA_OBJS = y.tab.o lex.yy.o
19
20 RC_SRCS = rsrc.rc
21
22 all: check_wrc $(PROGRAMS)
23
24 depend:: y.tab.h
25
26 @MAKE_RULES@
27
28 # Override resource compiler rules
29 .rc.s:
30         $(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P -x c $< | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -o $*.s
31
32 winhelp: $(OBJS) $(WINESTUB)
33         $(CC) -o winhelp $(OBJS) $(LDOPTIONS) $(ALL_LIBS)
34
35 hlp2sgml: hlp2sgml.o hlpfile.o
36         $(CC) -o hlp2sgml hlp2sgml.o hlpfile.o
37
38 install:: dummy
39         $(INSTALL_PROGRAM) winhelp $(bindir)/winhelp
40         $(INSTALL_PROGRAM) hlp2sgml $(bindir)/hlp2sgml
41
42 uninstall:: dummy
43         $(RM) $(bindir)/winhelp $(bindir)/hlp2sgml
44
45 y.tab.c y.tab.h: macro.yacc.y
46         $(YACC) -d -t $(SRCDIR)/macro.yacc.y
47
48 lex.yy.c: macro.lex.l
49         $(LEX) -8 -i $(SRCDIR)/macro.lex.l
50
51 ### Dependencies: