Release 20030408.
[wine/gsoc-2012-control.git] / tools / wrc / Makefile.in
blobe7b9f4eee68775abf6b39bcf7c1b0e27e82ed432
1 DEFS = -DDINCLUDEDIR="\"$(includedir)\""
2 TOPSRCDIR = @top_srcdir@
3 TOPOBJDIR = ../..
4 SRCDIR = @srcdir@
5 VPATH = @srcdir@
6 LEXOPT = -Cf #-w -b
7 YACCOPT = #-v
8 EXEEXT = @EXEEXT@
9 EXTRALIBS = -L$(TOPOBJDIR)/tools/wpp -lwpp
11 PROGRAMS = wrc$(EXEEXT)
12 MODULE = none
14 C_SRCS = \
15 dumpres.c \
16 genres.c \
17 newstruc.c \
18 readres.c \
19 utils.c \
20 wrc.c \
21 writeres.c
23 EXTRA_SRCS = parser.y parser.l
24 EXTRA_OBJS = y.tab.o @LEX_OUTPUT_ROOT@.o
26 all: $(PROGRAMS)
28 @MAKE_RULES@
30 wrc$(EXEEXT): $(OBJS) $(TOPOBJDIR)/tools/wpp/libwpp.a
31 $(CC) $(CFLAGS) -o $@ $(OBJS) $(EXTRALIBS) $(LIBUNICODE) $(LIBPORT) $(LEXLIB) $(LDFLAGS)
33 y.tab.c y.tab.h: parser.y
34 $(YACC) $(YACCOPT) -d -t $(SRCDIR)/parser.y
36 # hack to allow parallel make
37 y.tab.h: y.tab.c
38 y.tab.o: y.tab.h
40 @LEX_OUTPUT_ROOT@.c: parser.l
41 $(LEX) $(LEXOPT) -d -8 $(SRCDIR)/parser.l
43 @LEX_OUTPUT_ROOT@.o: y.tab.h
45 install:: $(PROGRAMS)
46 $(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext)
47 $(INSTALL_DATA) $(SRCDIR)/wrc.man $(mandir)/man$(prog_manext)/wrc.$(prog_manext)
48 $(INSTALL_PROGRAM) wrc$(EXEEXT) $(bindir)/wrc$(EXEEXT)
50 uninstall::
51 $(RM) $(bindir)/wrc$(EXEEXT) $(mandir)/man$(prog_manext)/wrc.$(prog_manext)
53 ### Dependencies: