Alexandre Julliard | a0b2b1d | 1997-11-16 17:38:29 +0000 | [diff] [blame] | 1 | DEFS = -DWINELIB |
Alexandre Julliard | bf9130a | 1996-10-13 17:45:47 +0000 | [diff] [blame] | 2 | TOPSRCDIR = @top_srcdir@ |
| 3 | TOPOBJDIR = ../.. |
| 4 | SRCDIR = @srcdir@ |
| 5 | VPATH = @srcdir@ |
| 6 | MODULE = none |
| 7 | PROGRAMS = winhelp hlp2sgml |
Patrik Stridvall | ea58472 | 1998-11-01 16:22:07 +0000 | [diff] [blame] | 8 | ALL_LIBS = $(WINELIB) $(X_LIBS) $(XLIB) $(LIBS) |
Alexandre Julliard | 3db94ef | 1997-09-28 17:43:24 +0000 | [diff] [blame] | 9 | RCFLAGS = -w32 -h |
Bertho Stultiens | d1895a7 | 1999-04-25 18:31:35 +0000 | [diff] [blame] | 10 | WRCEXTRA = -t -A -p $* |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 11 | |
Pablo Saratxaga | 66f53a8 | 1999-06-18 17:05:55 +0000 | [diff] [blame] | 12 | LANGUAGES = En Da De Fr Fi Ko Hu It Va Sw Es Wa |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 13 | |
Alexandre Julliard | bf9130a | 1996-10-13 17:45:47 +0000 | [diff] [blame] | 14 | MOSTSRCS = \ |
| 15 | winhelp.c \ |
| 16 | hlpfile.c \ |
| 17 | macro.c |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 18 | |
Alexandre Julliard | bf9130a | 1996-10-13 17:45:47 +0000 | [diff] [blame] | 19 | # Some strings need addresses >= 0x10000 |
Alexandre Julliard | 3db94ef | 1997-09-28 17:43:24 +0000 | [diff] [blame] | 20 | STRINGSRCS = string.c |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 21 | |
Alexandre Julliard | 3db94ef | 1997-09-28 17:43:24 +0000 | [diff] [blame] | 22 | EXTRA_SRCS = macro.yacc.y macro.lex.l |
| 23 | EXTRA_OBJS = y.tab.o lex.yy.o |
| 24 | |
| 25 | RC_SRCS = $(LANGUAGES:%=%.rc) |
Alexandre Julliard | bf9130a | 1996-10-13 17:45:47 +0000 | [diff] [blame] | 26 | |
| 27 | C_SRCS = $(MOSTSRCS) $(STRINGSRCS) |
| 28 | |
Alexandre Julliard | 02e9008 | 1998-01-04 17:49:09 +0000 | [diff] [blame] | 29 | MOSTOBJS = $(MOSTSRCS:.c=.o) $(EXTRA_OBJS) |
Alexandre Julliard | 3db94ef | 1997-09-28 17:43:24 +0000 | [diff] [blame] | 30 | STRINGOBJS = $(STRINGSRCS:.c=.o) $(RC_SRCS:.rc=.o) |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 31 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 32 | all: check_wrc $(PROGRAMS) |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 33 | |
Alexandre Julliard | 3db94ef | 1997-09-28 17:43:24 +0000 | [diff] [blame] | 34 | depend:: $(RC_SRCS:.rc=.h) y.tab.h |
| 35 | |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 36 | @MAKE_RULES@ |
| 37 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 38 | # Override resource compiler rules |
| 39 | .rc.s: |
| 40 | $(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P -x c $< | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -o $*.s |
| 41 | |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 42 | .rc.h: |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 43 | $(CPP) $(DEFS) $(OPTIONS) $(DIVINCL) -DRC_INVOKED -P -x c $< | $(WRC) $(WRCFLAGS) $(WRCEXTRA) -nH $*.h |
Alexandre Julliard | a845b88 | 1998-06-01 10:44:35 +0000 | [diff] [blame] | 44 | |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 45 | # Some strings need addresses >= 0x10000 |
Alexandre Julliard | 96af9aa | 1999-10-25 02:50:08 +0000 | [diff] [blame^] | 46 | winhelp: $(MOSTOBJS) $(STRINGOBJS) $(WINESTUB) |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 47 | $(CC) -o winhelp $(MOSTOBJS) $(LDOPTIONS) $(ALL_LIBS) $(STRINGOBJS) |
| 48 | |
| 49 | hlp2sgml: hlp2sgml.o hlpfile.o |
| 50 | $(CC) -o hlp2sgml hlp2sgml.o hlpfile.o |
| 51 | |
| 52 | install: dummy |
| 53 | $(INSTALL_PROGRAM) winhelp $(bindir)/winhelp |
| 54 | $(INSTALL_PROGRAM) hlp2sgml $(bindir)/hlp2sgml |
| 55 | |
Alexandre Julliard | 85ed45e | 1998-08-22 19:03:56 +0000 | [diff] [blame] | 56 | uninstall: dummy |
| 57 | $(RM) $(bindir)/winhelp $(bindir)/hlp2sgml |
| 58 | |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 59 | y.tab.c y.tab.h: macro.yacc.y |
Alexandre Julliard | bf9130a | 1996-10-13 17:45:47 +0000 | [diff] [blame] | 60 | $(YACC) -d -t $(SRCDIR)/macro.yacc.y |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 61 | |
| 62 | lex.yy.c: macro.lex.l |
Alexandre Julliard | bf9130a | 1996-10-13 17:45:47 +0000 | [diff] [blame] | 63 | $(LEX) -8 -i $(SRCDIR)/macro.lex.l |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 64 | |
Alexandre Julliard | f90efa9 | 1998-06-14 15:24:15 +0000 | [diff] [blame] | 65 | $(RC_SRCS:.rc=.s): $(WRC) |
Alexandre Julliard | 1285c2f | 1996-05-06 16:06:24 +0000 | [diff] [blame] | 66 | |
| 67 | dummy: |
| 68 | |
| 69 | ### Dependencies: |