source: trunk/tools/wrc/Makefile.in@ 10366

Last change on this file since 10366 was 5522, checked in by sandervl, 24 years ago

updates

File size: 1.3 KB
Line 
1DEFS = -D__WINE__
2TOPSRCDIR = @top_srcdir@
3TOPOBJDIR = ../..
4SRCDIR = @srcdir@
5VPATH = @srcdir@
6LEXOPT = -Cf #-w -b
7YACCOPT = #-v
8
9PROGRAMS = wrc
10MODULE = none
11
12C_SRCS = \
13 dumpres.c \
14 genres.c \
15 newstruc.c \
16 preproc.c \
17 readres.c \
18 utils.c \
19 wrc.c \
20 writeres.c
21
22GEN_C_SRCS = ppy.tab.c lex.ppl.c
23EXTRA_SRCS = parser.y parser.l
24EXTRA_OBJS = y.tab.o lex.yy.o
25
26all: $(PROGRAMS)
27
28@MAKE_RULES@
29
30wrc: $(OBJS) $(TOPOBJDIR)/unicode/libwine_unicode.$(LIBEXT)
31 $(CC) $(CFLAGS) -o wrc $(OBJS) $(LIBUNICODE) $(LEXLIB) $(LDFLAGS)
32
33$(TOPOBJDIR)/unicode/libwine_unicode.$(LIBEXT):
34 cd `dirname $@` && $(MAKE) `basename $@`
35
36y.tab.c y.tab.h: parser.y
37 $(YACC) $(YACCOPT) -d -t $(SRCDIR)/parser.y
38
39ppy.tab.c ppy.tab.h: ppy.y
40 $(YACC) $(YACCOPT) -bppy -ppp -d -t $(SRCDIR)/ppy.y
41
42lex.yy.c: parser.l
43 $(LEX) $(LEXOPT) -d -8 $(SRCDIR)/parser.l
44
45lex.ppl.c: ppl.l
46 $(LEX) $(LEXOPT) -d -Ppp -8 -olex.ppl.c $(SRCDIR)/ppl.l
47
48clean::
49 $(RM) ppy.tab.h ppy.output parser.output parser.tab.h lex.backup y.output
50
51install:: $(PROGRAMS)
52 [ -d $(bindir) ] || $(MKDIR) $(bindir)
53 [ -d $(mandir)/man$(prog_manext) ] || $(MKDIR) $(mandir)/man$(prog_manext)
54 $(INSTALL_DATA) $(SRCDIR)/wrc.man $(mandir)/man$(prog_manext)/wrc.$(prog_manext)
55 $(INSTALL_PROGRAM) wrc $(bindir)/wrc
56
57uninstall::
58 $(RM) $(bindir)/wrc $(mandir)/man$(prog_manext)/wrc.$(prog_manext)
59
60### Dependencies:
Note: See TracBrowser for help on using the repository browser.