2004-03-02 03:23:26 +01:00
|
|
|
DEFS = \
|
|
|
|
-DINCLUDEDIR="\"$(includedir)\"" \
|
|
|
|
-DDLLDIR="\"$(dlldir)\"" \
|
|
|
|
-DLIBDIR="\"$(libdir)\"" \
|
|
|
|
-DDLLFLAGS="\"@DLLFLAGS@\"" \
|
2004-03-24 04:34:00 +01:00
|
|
|
-DLDDLLFLAGS="\"@LDDLLFLAGS@\"" \
|
2005-09-15 17:01:30 +02:00
|
|
|
-DAS="\"$(AS)\"" \
|
2004-03-02 03:23:26 +01:00
|
|
|
-DCC="\"$(CC)\"" \
|
2004-03-03 21:30:46 +01:00
|
|
|
-DCPP="\"@CPPBIN@\"" \
|
2004-10-08 23:11:18 +02:00
|
|
|
-DCXX="\"$(CXX)\"" \
|
2005-08-09 13:12:29 +02:00
|
|
|
-DLD="\"$(LD)\"" \
|
|
|
|
-DPRELINK="\"$(PRELINK)\""
|
2004-03-02 03:23:26 +01:00
|
|
|
|
2003-09-11 23:27:58 +02:00
|
|
|
TOPSRCDIR = @top_srcdir@
|
|
|
|
TOPOBJDIR = ../..
|
|
|
|
SRCDIR = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
2004-03-25 01:13:21 +01:00
|
|
|
EXEEXT = @EXEEXT@
|
2003-09-11 23:27:58 +02:00
|
|
|
MODULE = none
|
|
|
|
|
2005-03-05 12:21:50 +01:00
|
|
|
PROGRAMS = \
|
|
|
|
winecpp$(EXEEXT) \
|
|
|
|
winegcc$(EXEEXT) \
|
|
|
|
wineg++$(EXEEXT)
|
2003-09-11 23:27:58 +02:00
|
|
|
|
2005-10-06 18:10:01 +02:00
|
|
|
MANPAGES = winegcc.man
|
|
|
|
|
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
|
|
|
|
2005-10-06 18:10:01 +02:00
|
|
|
all: $(PROGRAMS) $(MANPAGES)
|
2003-09-11 23:27:58 +02:00
|
|
|
|
|
|
|
@MAKE_RULES@
|
|
|
|
|
2004-03-25 01:13:21 +01:00
|
|
|
winegcc$(EXEEXT): winegcc.o utils.o
|
2003-09-12 00:16:33 +02:00
|
|
|
$(CC) $(CFLAGS) -o $@ winegcc.o utils.o $(LIBPORT)
|
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) $@
|
|
|
|
|
2005-10-06 18:10:01 +02:00
|
|
|
install:: $(PROGRAMS) $(MANPAGES)
|
2006-02-14 13:51:38 +01:00
|
|
|
$(MKINSTALLDIRS) $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man$(prog_manext)
|
|
|
|
$(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)
|
2003-09-11 23:27:58 +02:00
|
|
|
|
|
|
|
uninstall::
|
2006-02-14 13:51:38 +01:00
|
|
|
$(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)
|
2003-09-11 23:27:58 +02:00
|
|
|
|
|
|
|
### Dependencies:
|