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
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
all: $(PROGRAMS)
|
|
|
|
|
|
|
|
@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) $@
|
|
|
|
|
2003-09-11 23:27:58 +02:00
|
|
|
install:: $(PROGRAMS)
|
2005-01-28 12:32:01 +01:00
|
|
|
$(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext)
|
2004-03-25 01:13:21 +01:00
|
|
|
$(INSTALL_PROGRAM) winegcc$(EXEEXT) $(bindir)/winegcc$(EXEEXT)
|
|
|
|
cd $(bindir) && $(RM) wineg++$(EXEEXT) && $(LN_S) winegcc$(EXEEXT) wineg++$(EXEEXT)
|
|
|
|
cd $(bindir) && $(RM) winecpp$(EXEEXT) && $(LN_S) winegcc$(EXEEXT) winecpp$(EXEEXT)
|
2005-01-28 12:32:01 +01:00
|
|
|
$(INSTALL_DATA) $(SRCDIR)/winegcc.man $(mandir)/man$(prog_manext)/winegcc.$(prog_manext)
|
|
|
|
cd $(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::
|
2005-01-28 12:32:01 +01:00
|
|
|
$(RM) $(bindir)/winegcc$(EXEEXT) $(bindir)/wineg++$(EXEEXT) $(bindir)/winecpp$(EXEEXT) \
|
|
|
|
$(mandir)/man$(prog_manext)/winegcc.$(prog_manext) $(mandir)/man$(prog_manext)/wineg++.$(prog_manext)
|
2003-09-11 23:27:58 +02:00
|
|
|
|
|
|
|
### Dependencies:
|