makefiles: Generate the dependencies line to avoid some code duplication.
[wine] / tools / winedump / Makefile.in
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ../..
3 SRCDIR    = @srcdir@
4 VPATH     = @srcdir@
5 EXEEXT    = @EXEEXT@
6
7 PROGRAMS = winedump$(EXEEXT)
8 MANPAGES = winedump.man
9 MODULE   = none
10
11 C_SRCS = \
12         debug.c \
13         dump.c \
14         emf.c \
15         le.c \
16         lnk.c \
17         main.c \
18         minidump.c \
19         misc.c \
20         msmangle.c \
21         ne.c \
22         output.c \
23         pe.c \
24         search.c \
25         symbol.c
26
27 INSTALLDIRS = $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
28
29 all: $(PROGRAMS) $(MANPAGES)
30
31 @MAKE_RULES@
32
33 winedump$(EXEEXT): $(OBJS)
34         $(CC) $(CFLAGS) -o winedump$(EXEEXT) $(OBJS) $(LIBPORT) $(LDFLAGS)
35
36 install:: $(PROGRAMS) $(MANPAGES) $(INSTALLDIRS)
37         $(INSTALL_PROGRAM) winedump$(EXEEXT) $(DESTDIR)$(bindir)/winedump$(EXEEXT)
38         $(INSTALL_DATA) winedump.man $(DESTDIR)$(mandir)/man$(prog_manext)/winedump.$(prog_manext)
39         $(INSTALL_SCRIPT) $(SRCDIR)/function_grep.pl $(DESTDIR)$(bindir)/function_grep.pl
40
41 uninstall::
42         $(RM) $(DESTDIR)$(bindir)/function_grep.pl $(DESTDIR)$(bindir)/winedump$(EXEEXT) $(DESTDIR)$(mandir)/man$(prog_manext)/winedump.$(prog_manext)
43
44 @DEPENDENCIES@  # everything below this line is overwritten by make depend