[Redbutton-devel] SF.net SVN: redbutton:[504] redbutton-download/trunk/Makefile
Brought to you by:
skilvington
|
From: <ski...@us...> - 2008-11-19 13:04:34
|
Revision: 504
http://redbutton.svn.sourceforge.net/redbutton/?rev=504&view=rev
Author: skilvington
Date: 2008-11-19 13:04:27 +0000 (Wed, 19 Nov 2008)
Log Message:
-----------
cross platform patch from Andreas Oberritter
Modified Paths:
--------------
redbutton-download/trunk/Makefile
Modified: redbutton-download/trunk/Makefile
===================================================================
--- redbutton-download/trunk/Makefile 2008-11-05 17:23:04 UTC (rev 503)
+++ redbutton-download/trunk/Makefile 2008-11-19 13:04:27 UTC (rev 504)
@@ -1,5 +1,5 @@
-CC=gcc
-CFLAGS=-Wall -O
+CC?=gcc
+CFLAGS?=-Wall -O
DESTDIR=/usr/local
@@ -20,23 +20,22 @@
cache.o \
utils.o
-LIBS=-lz
+CPPFLAGS+=-MD
+LDFLAGS+=-lz
-TARDIR=`basename ${PWD}`
+TARDIR=${basename ${PWD}}
rb-download: ${OBJS}
- ${CC} ${CFLAGS} -o rb-download ${OBJS} ${LIBS}
-.c.o:
- ${CC} ${CFLAGS} -c $<
-
install: rb-download
+ install -d ${DESTDIR}/bin
install -m 755 rb-download ${DESTDIR}/bin
clean:
- rm -f rb-download *.o core
+ ${RM} rb-download *.d *.o core
tar:
- make clean
- (cd ..; tar zcvf ${TARDIR}.tar.gz --exclude .svn ${TARDIR})
+ ${MAKE} clean
+ (cd ..; tar -zcvf ${TARDIR}.tar.gz --exclude .svn ${TARDIR})
+-include ${OBJS:.o=.d}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|