Makefile.in 1.67 KB
Newer Older
1 2 3 4 5
DEFS = \
	-DINCLUDEDIR="\"$(includedir)\"" \
	-DDLLDIR="\"$(dlldir)\"" \
	-DLIBDIR="\"$(libdir)\"" \
	-DDLLFLAGS="\"@DLLFLAGS@\"" \
6
	-DLDDLLFLAGS="\"@LDDLLFLAGS@\"" \
7
	-DCC="\"$(CC)\"" \
8
	-DCPP="\"@CPPBIN@\"" \
9
	-DCXX="\"@CXX@\"" \
10
	-DPRELINK="\"$(PRELINK)\""
11

12 13 14 15
TOPSRCDIR = @top_srcdir@
TOPOBJDIR = ../..
SRCDIR    = @srcdir@
VPATH     = @srcdir@
16
EXEEXT    = @EXEEXT@
17 18
MODULE    = none

19 20 21 22
PROGRAMS = \
	winecpp$(EXEEXT) \
	winegcc$(EXEEXT) \
	wineg++$(EXEEXT)
23

24 25
MANPAGES = winegcc.man

26
C_SRCS = \
27
	utils.c \
28
	winegcc.c
29

30 31
INSTALLDIRS = $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)

32
all: $(PROGRAMS) $(MANPAGES)
33 34 35

@MAKE_RULES@

36
winegcc$(EXEEXT): winegcc.o utils.o
37
	$(CC) $(CFLAGS) -o $@ winegcc.o utils.o $(LIBPORT) $(LDFLAGS)
38

39 40 41
winecpp$(EXEEXT) wineg++$(EXEEXT): winegcc$(EXEEXT)
	$(RM) $@ && $(LN_S) winegcc$(EXEEXT) $@

42
install install-dev:: $(PROGRAMS) $(MANPAGES) $(INSTALLDIRS)
43 44 45 46 47
	$(INSTALL_PROGRAM) winegcc$(EXEEXT) $(DESTDIR)$(bindir)/winegcc$(EXEEXT)
	cd $(DESTDIR)$(bindir) && $(RM) wineg++$(EXEEXT) && $(LN_S) winegcc$(EXEEXT) wineg++$(EXEEXT)
	cd $(DESTDIR)$(bindir) && $(RM) winecpp$(EXEEXT) && $(LN_S) winegcc$(EXEEXT) winecpp$(EXEEXT)
	$(INSTALL_DATA) winegcc.man $(DESTDIR)$(mandir)/man$(prog_manext)/winegcc.$(prog_manext)
	cd $(DESTDIR)$(mandir)/man$(prog_manext) && $(RM) wineg++.$(prog_manext) && $(LN_S) winegcc.$(prog_manext) wineg++.$(prog_manext)
48 49

uninstall::
50 51
	$(RM) $(DESTDIR)$(bindir)/winegcc$(EXEEXT) $(DESTDIR)$(bindir)/wineg++$(EXEEXT) $(DESTDIR)$(bindir)/winecpp$(EXEEXT) \
	      $(DESTDIR)$(mandir)/man$(prog_manext)/winegcc.$(prog_manext) $(DESTDIR)$(mandir)/man$(prog_manext)/wineg++.$(prog_manext)
52

53
@DEPENDENCIES@  # everything below this line is overwritten by make depend