makefiles: Add a standard header for all makefiles to replace the common variable...
[wine] / tools / widl / Makefile.in
1 DEFS      = -D__WINESRC__ $(EXTRADEFS)
2
3 PROGRAMS = widl$(EXEEXT)
4 MANPAGES = widl.man
5
6 C_SRCS = \
7         client.c \
8         expr.c \
9         hash.c \
10         header.c \
11         proxy.c \
12         server.c \
13         typegen.c \
14         typelib.c \
15         typetree.c \
16         utils.c \
17         widl.c \
18         write_msft.c
19
20 LEX_SRCS   = parser.l
21 BISON_SRCS = parser.y
22
23 INSTALLDIRS = $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
24
25 all: $(PROGRAMS) $(MANPAGES)
26
27 @MAKE_RULES@
28
29 widl$(EXEEXT): $(OBJS) $(LIBWPP)
30         $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBWPP) $(LIBPORT) $(LDFLAGS)
31
32 install install-dev:: $(PROGRAMS) $(MANPAGES) $(INSTALLDIRS)
33         $(INSTALL_PROGRAM) widl$(EXEEXT) $(DESTDIR)$(bindir)/widl$(EXEEXT)
34         $(INSTALL_DATA) widl.man $(DESTDIR)$(mandir)/man$(prog_manext)/widl.$(prog_manext)
35
36 uninstall::
37         $(RM) $(DESTDIR)$(bindir)/widl$(EXEEXT) $(DESTDIR)$(mandir)/man$(prog_manext)/widl.$(prog_manext)