makefiles: Add a standard header for all makefiles to replace the common variable...
[wine] / tools / winegcc / Makefile.in
1 DEFS = \
2         -DINCLUDEDIR="\"$(includedir)\"" \
3         -DDLLDIR="\"$(dlldir)\"" \
4         -DLIBDIR="\"$(libdir)\"" \
5         -DDLLFLAGS="\"@DLLFLAGS@\"" \
6         -DLDDLLFLAGS="\"@LDDLLFLAGS@\"" \
7         -DCC="\"$(CC)\"" \
8         -DCPP="\"@CPPBIN@\"" \
9         -DCXX="\"@CXX@\"" \
10         -DPRELINK="\"$(PRELINK)\""
11
12 PROGRAMS = \
13         winecpp$(EXEEXT) \
14         winegcc$(EXEEXT) \
15         wineg++$(EXEEXT)
16
17 MANPAGES = winegcc.man
18
19 C_SRCS = \
20         utils.c \
21         winegcc.c
22
23 INSTALLDIRS = $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
24
25 all: $(PROGRAMS) $(MANPAGES)
26
27 @MAKE_RULES@
28
29 winegcc$(EXEEXT): winegcc.o utils.o
30         $(CC) $(CFLAGS) -o $@ winegcc.o utils.o $(LIBPORT) $(LDFLAGS)
31
32 winecpp$(EXEEXT) wineg++$(EXEEXT): winegcc$(EXEEXT)
33         $(RM) $@ && $(LN_S) winegcc$(EXEEXT) $@
34
35 install install-dev:: $(PROGRAMS) $(MANPAGES) $(INSTALLDIRS)
36         $(INSTALL_PROGRAM) winegcc$(EXEEXT) $(DESTDIR)$(bindir)/winegcc$(EXEEXT)
37         cd $(DESTDIR)$(bindir) && $(RM) wineg++$(EXEEXT) && $(LN_S) winegcc$(EXEEXT) wineg++$(EXEEXT)
38         cd $(DESTDIR)$(bindir) && $(RM) winecpp$(EXEEXT) && $(LN_S) winegcc$(EXEEXT) winecpp$(EXEEXT)
39         $(INSTALL_DATA) winegcc.man $(DESTDIR)$(mandir)/man$(prog_manext)/winegcc.$(prog_manext)
40         cd $(DESTDIR)$(mandir)/man$(prog_manext) && $(RM) wineg++.$(prog_manext) && $(LN_S) winegcc.$(prog_manext) wineg++.$(prog_manext)
41
42 uninstall::
43         $(RM) $(DESTDIR)$(bindir)/winegcc$(EXEEXT) $(DESTDIR)$(bindir)/wineg++$(EXEEXT) $(DESTDIR)$(bindir)/winecpp$(EXEEXT) \
44               $(DESTDIR)$(mandir)/man$(prog_manext)/winegcc.$(prog_manext) $(DESTDIR)$(mandir)/man$(prog_manext)/wineg++.$(prog_manext)