2005-03-05 11:21:50 +00:00
|
|
|
PROGRAMS = \
|
|
|
|
winecpp$(EXEEXT) \
|
|
|
|
winegcc$(EXEEXT) \
|
|
|
|
wineg++$(EXEEXT)
|
2003-09-11 21:27:58 +00:00
|
|
|
|
2013-11-18 10:34:03 +00:00
|
|
|
MANPAGES = winegcc.man.in
|
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
|
|
|
|
2014-01-07 11:20:25 +00:00
|
|
|
winegcc_EXTRADEFS = \
|
|
|
|
-DINCLUDEDIR="\"${includedir}\"" \
|
|
|
|
-DDLLDIR="\"${dlldir}\"" \
|
|
|
|
-DLIBDIR="\"${libdir}\"" \
|
|
|
|
-DCC="\"$(CC)\"" \
|
|
|
|
-DCPP="\"@CPPBIN@\"" \
|
|
|
|
-DCXX="\"@CXX@\"" \
|
|
|
|
-DPRELINK="\"$(PRELINK)\""
|
|
|
|
|
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) $@
|
|
|
|
|
2014-01-14 10:59:25 +00:00
|
|
|
.PHONY: install install-dev uninstall
|
|
|
|
|
2013-12-26 12:24:26 +00:00
|
|
|
install install-dev:: $(PROGRAMS) 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)
|