2013-10-05 18:58:24 +00:00
|
|
|
EXTRADEFS = \
|
2004-03-02 02:23:26 +00:00
|
|
|
-DINCLUDEDIR="\"$(includedir)\"" \
|
|
|
|
-DDLLDIR="\"$(dlldir)\"" \
|
|
|
|
-DLIBDIR="\"$(libdir)\"" \
|
|
|
|
-DCC="\"$(CC)\"" \
|
2004-03-03 20:30:46 +00:00
|
|
|
-DCPP="\"@CPPBIN@\"" \
|
2007-08-01 10:13:41 +00:00
|
|
|
-DCXX="\"@CXX@\"" \
|
2005-08-09 11:12:29 +00:00
|
|
|
-DPRELINK="\"$(PRELINK)\""
|
2004-03-02 02:23:26 +00:00
|
|
|
|
2005-03-05 11:21:50 +00:00
|
|
|
PROGRAMS = \
|
|
|
|
winecpp$(EXEEXT) \
|
|
|
|
winegcc$(EXEEXT) \
|
|
|
|
wineg++$(EXEEXT)
|
2003-09-11 21:27:58 +00:00
|
|
|
|
2010-12-05 15:17:42 +00:00
|
|
|
MANPAGE = winegcc.man
|
2005-10-06 16:10:01 +00:00
|
|
|
|
2003-09-11 21:27:58 +00:00
|
|
|
C_SRCS = \
|
2003-09-11 22:16:33 +00:00
|
|
|
utils.c \
|
2004-02-24 01:00:53 +00:00
|
|
|
winegcc.c
|
2003-09-11 21:27:58 +00:00
|
|
|
|
2006-08-07 15:48:18 +00:00
|
|
|
INSTALLDIRS = $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
|
|
|
|
|
2010-12-05 15:17:42 +00:00
|
|
|
all: $(PROGRAMS)
|
2003-09-11 21:27:58 +00:00
|
|
|
|
|
|
|
@MAKE_RULES@
|
|
|
|
|
2004-03-25 00:13:21 +00:00
|
|
|
winegcc$(EXEEXT): winegcc.o utils.o
|
2006-04-04 11:45:34 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ winegcc.o utils.o $(LIBPORT) $(LDFLAGS)
|
2003-09-11 21:27:58 +00:00
|
|
|
|
2005-03-05 11:21:50 +00:00
|
|
|
winecpp$(EXEEXT) wineg++$(EXEEXT): winegcc$(EXEEXT)
|
|
|
|
$(RM) $@ && $(LN_S) winegcc$(EXEEXT) $@
|
|
|
|
|
2011-06-12 10:13:17 +00:00
|
|
|
install install-dev:: $(PROGRAMS) $(DESTDIR)$(bindir) install-man-pages
|
2006-02-14 12:51:38 +00:00
|
|
|
$(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)
|
|
|
|
cd $(DESTDIR)$(mandir)/man$(prog_manext) && $(RM) wineg++.$(prog_manext) && $(LN_S) winegcc.$(prog_manext) wineg++.$(prog_manext)
|
2010-11-25 19:00:47 +00:00
|
|
|
cd $(DESTDIR)$(mandir)/man$(prog_manext) && $(RM) winecpp.$(prog_manext) && $(LN_S) winegcc.$(prog_manext) winecpp.$(prog_manext)
|
2003-09-11 21:27:58 +00:00
|
|
|
|
|
|
|
uninstall::
|
2010-12-05 15:17:42 +00:00
|
|
|
$(RM) $(DESTDIR)$(bindir)/winegcc$(EXEEXT) $(DESTDIR)$(bindir)/wineg++$(EXEEXT) $(DESTDIR)$(bindir)/winecpp$(EXEEXT)
|
|
|
|
$(RM) $(DESTDIR)$(mandir)/man$(prog_manext)/wineg++.$(prog_manext) $(DESTDIR)$(mandir)/man$(prog_manext)/winecpp.$(prog_manext)
|