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