2004-03-02 03:23:26 +01:00
|
|
|
DEFS = \
|
|
|
|
-DINCLUDEDIR="\"$(includedir)\"" \
|
|
|
|
-DDLLDIR="\"$(dlldir)\"" \
|
|
|
|
-DLIBDIR="\"$(libdir)\"" \
|
|
|
|
-DCC="\"$(CC)\"" \
|
2004-03-03 21:30:46 +01:00
|
|
|
-DCPP="\"@CPPBIN@\"" \
|
2007-08-01 12:13:41 +02:00
|
|
|
-DCXX="\"@CXX@\"" \
|
2005-08-09 13:12:29 +02:00
|
|
|
-DPRELINK="\"$(PRELINK)\""
|
2004-03-02 03:23:26 +01:00
|
|
|
|
2005-03-05 12:21:50 +01:00
|
|
|
PROGRAMS = \
|
|
|
|
winecpp$(EXEEXT) \
|
|
|
|
winegcc$(EXEEXT) \
|
|
|
|
wineg++$(EXEEXT)
|
2003-09-11 23:27:58 +02:00
|
|
|
|
2010-12-05 16:17:42 +01:00
|
|
|
MANPAGE = winegcc.man
|
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
|
|
|
|
2006-08-07 17:48:18 +02:00
|
|
|
INSTALLDIRS = $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
|
|
|
|
|
2010-12-05 16:17:42 +01:00
|
|
|
all: $(PROGRAMS)
|
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) $@
|
|
|
|
|
2011-06-12 12:13:17 +02:00
|
|
|
install install-dev:: $(PROGRAMS) $(DESTDIR)$(bindir) 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)
|