CVS: libraries makefile,1.1,1.2

Chris Liechti <[email protected]>
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/libraries
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11929/libraries

Modified Files:
	makefile 
Log Message:
add spi lib
add install target (override PREFIX for install target directory)

Index: makefile
===================================================================
RCS file: /cvsroot/mspgcc/libraries/makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -d -r1.1 -r1.2
--- makefile	22 Aug 2005 11:27:34 -0000	1.1
+++ makefile	23 Aug 2005 18:22:49 -0000	1.2
@@ -1,15 +1,11 @@
-.PHONY: all FORCE clean
+.PHONY: all install clean
 
-#all should be the first target. it's built when make is runwithout args
-all: libmspgcc libcommandline
+PREFIX := /usr/local/msp430
 
-libmspgcc: FORCE
+#all should be the first target. it's built when make is runwithout args
+all:
 	cd mspgcc; make all
-
-libcommandline: FORCE
 	cd commandline; make all
-
-libspi: FORCE
 	cd spi; make all
 
 clean:
@@ -18,6 +14,14 @@
 	cd spi; make clean
 	rm -f dependencies.d
 
+install: all
+	cp mspgcc/libmspgcc.a $(PREFIX)/msp430/lib
+	cp commandline/libcommandline.a $(PREFIX)/msp430/lib
+	cp spi/libspi.a $(PREFIX)/msp430/lib
+	mkdir -p $(PREFIX)/msp430/include/mspgcc
+	cp include/mspgcc/*.h $(PREFIX)/msp430/include/mspgcc
+	cp include/commandline.h $(PREFIX)/msp430/include
+	cp include/spi.h $(PREFIX)/msp430/include
 
 #dummy target as dependecy if something has to be build everytime
 FORCE:



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.