makefiles: Add a standard header for all makefiles to replace the common variable...
[wine] / tools / wrc / Makefile.in
1 DEFS      = -D__WINESRC__ -DINCLUDEDIR="\"$(includedir)\"" $(EXTRADEFS)
2 PROGRAMS = wrc$(EXEEXT) wrc-installed
3 MANPAGES = wrc.man
4
5 C_SRCS = \
6         dumpres.c \
7         genres.c \
8         newstruc.c \
9         readres.c \
10         translation.c \
11         utils.c \
12         wrc.c \
13         writeres.c
14
15 LEX_SRCS   = parser.l
16 BISON_SRCS = parser.y
17
18 INSTALLDIRS = $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
19
20 all: $(PROGRAMS) $(MANPAGES)
21
22 @MAKE_RULES@
23
24 wrc$(EXEEXT): $(OBJS) $(LIBWPP)
25         $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBWPP) $(LIBWINE) $(LIBPORT) $(LDFLAGS) $(LDRPATH_LOCAL)
26
27 wrc-installed: $(OBJS) $(LIBWPP)
28         $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBWPP) $(LIBWINE) $(LIBPORT) $(LDFLAGS) $(LDRPATH_INSTALL)
29
30 install install-dev:: wrc-installed $(MANPAGES) $(INSTALLDIRS)
31         $(INSTALL_DATA) wrc.man $(DESTDIR)$(mandir)/man$(prog_manext)/wrc.$(prog_manext)
32         $(INSTALL_PROGRAM) wrc-installed $(DESTDIR)$(bindir)/wrc$(EXEEXT)
33
34 uninstall::
35         $(RM) $(DESTDIR)$(bindir)/wrc$(EXEEXT) $(DESTDIR)$(mandir)/man$(prog_manext)/wrc.$(prog_manext)