blob: 24f62e1e4103566fb7e6df2524e9e5c5947f03a6 [file] [log] [blame]
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001DEFS = -DWINELIB
Alexandre Julliardbf9130a1996-10-13 17:45:47 +00002TOPSRCDIR = @top_srcdir@
3TOPOBJDIR = ../..
4SRCDIR = @srcdir@
5VPATH = @srcdir@
6MODULE = none
7PROGRAMS = winhelp hlp2sgml
Patrik Stridvallea584721998-11-01 16:22:07 +00008ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS)
Alexandre Julliard3db94ef1997-09-28 17:43:24 +00009RCFLAGS = -w32 -h
Bertho Stultiensd1895a71999-04-25 18:31:35 +000010WRCEXTRA = -t -A -p $*
Alexandre Julliard1285c2f1996-05-06 16:06:24 +000011
Pablo Saratxaga66f53a81999-06-18 17:05:55 +000012LANGUAGES = En Da De Fr Fi Ko Hu It Va Sw Es Wa
Alexandre Julliard1285c2f1996-05-06 16:06:24 +000013
Alexandre Julliardbf9130a1996-10-13 17:45:47 +000014MOSTSRCS = \
15 winhelp.c \
16 hlpfile.c \
17 macro.c
Alexandre Julliard1285c2f1996-05-06 16:06:24 +000018
Alexandre Julliardbf9130a1996-10-13 17:45:47 +000019# Some strings need addresses >= 0x10000
Alexandre Julliard3db94ef1997-09-28 17:43:24 +000020STRINGSRCS = string.c
Alexandre Julliard1285c2f1996-05-06 16:06:24 +000021
Alexandre Julliard3db94ef1997-09-28 17:43:24 +000022EXTRA_SRCS = macro.yacc.y macro.lex.l
23EXTRA_OBJS = y.tab.o lex.yy.o
24
25RC_SRCS = $(LANGUAGES:%=%.rc)
Alexandre Julliardbf9130a1996-10-13 17:45:47 +000026
27C_SRCS = $(MOSTSRCS) $(STRINGSRCS)
28
Alexandre Julliard02e90081998-01-04 17:49:09 +000029MOSTOBJS = $(MOSTSRCS:.c=.o) $(EXTRA_OBJS)
Alexandre Julliard3db94ef1997-09-28 17:43:24 +000030STRINGOBJS = $(STRINGSRCS:.c=.o) $(RC_SRCS:.rc=.o)
Alexandre Julliard1285c2f1996-05-06 16:06:24 +000031
Alexandre Julliardf90efa91998-06-14 15:24:15 +000032all: check_wrc $(PROGRAMS)
Alexandre Julliard1285c2f1996-05-06 16:06:24 +000033
Alexandre Julliard3db94ef1997-09-28 17:43:24 +000034depend:: $(RC_SRCS:.rc=.h) y.tab.h
35
Alexandre Julliard1285c2f1996-05-06 16:06:24 +000036@MAKE_RULES@
37
Alexandre Julliardf90efa91998-06-14 15:24:15 +000038# Override resource compiler rules
39.rc.s:
40 $(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P -x c $< | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -o $*.s
41
Alexandre Julliarda845b881998-06-01 10:44:35 +000042.rc.h:
Alexandre Julliardf90efa91998-06-14 15:24:15 +000043 $(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P -x c $< | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -nH $*.h
Alexandre Julliarda845b881998-06-01 10:44:35 +000044
Alexandre Julliard1285c2f1996-05-06 16:06:24 +000045# Some strings need addresses >= 0x10000
Alexandre Julliard96af9aa1999-10-25 02:50:08 +000046winhelp: $(MOSTOBJS) $(STRINGOBJS) $(WINESTUB)
Alexandre Julliard1285c2f1996-05-06 16:06:24 +000047 $(CC) -o winhelp $(MOSTOBJS) $(LDOPTIONS) $(ALL_LIBS) $(STRINGOBJS)
48
49hlp2sgml: hlp2sgml.o hlpfile.o
50 $(CC) -o hlp2sgml hlp2sgml.o hlpfile.o
51
52install: dummy
53 $(INSTALL_PROGRAM) winhelp $(bindir)/winhelp
54 $(INSTALL_PROGRAM) hlp2sgml $(bindir)/hlp2sgml
55
Alexandre Julliard85ed45e1998-08-22 19:03:56 +000056uninstall: dummy
57 $(RM) $(bindir)/winhelp $(bindir)/hlp2sgml
58
Alexandre Julliard1285c2f1996-05-06 16:06:24 +000059y.tab.c y.tab.h: macro.yacc.y
Alexandre Julliardbf9130a1996-10-13 17:45:47 +000060 $(YACC) -d -t $(SRCDIR)/macro.yacc.y
Alexandre Julliard1285c2f1996-05-06 16:06:24 +000061
62lex.yy.c: macro.lex.l
Alexandre Julliardbf9130a1996-10-13 17:45:47 +000063 $(LEX) -8 -i $(SRCDIR)/macro.lex.l
Alexandre Julliard1285c2f1996-05-06 16:06:24 +000064
Alexandre Julliardf90efa91998-06-14 15:24:15 +000065$(RC_SRCS:.rc=.s): $(WRC)
Alexandre Julliard1285c2f1996-05-06 16:06:24 +000066
67dummy:
68
69### Dependencies: