[NUT-devel] [nut]: r575 - src/trunk/Makefile

diego subversion at mplayerhq.hu
Sun Feb 3 20:04:03 CET 2008


Author: diego
Date: Sun Feb  3 20:04:02 2008
New Revision: 575

Log:
Do not build shared lib by default and install shared lib only if they exist.


Modified:
   src/trunk/Makefile

Modified: src/trunk/Makefile
==============================================================================
--- src/trunk/Makefile	(original)
+++ src/trunk/Makefile	Sun Feb  3 20:04:02 2008
@@ -5,7 +5,7 @@ NUTUTILS_PROGS = nututils/nutmerge nutut
 
 all: libnut nututils
 
-libnut: libnut/libnut.a libnut/libnut.so
+libnut: libnut/libnut.a
 
 libnut/libnut.a: $(LIBNUT_OBJS)
 	rm -f $@
@@ -27,7 +27,8 @@ install: install-libnut install-nututils
 
 install-libnut: libnut
 	install -d $(prefix)/lib
-	install -m 644 libnut/libnut.a libnut/libnut.so $(prefix)/lib
+	install -m 644 libnut/libnut.a $(prefix)/lib
+	test -e libnut/libnut.so && install -m 644 libnut/libnut.so $(prefix)/lib
 	install -d $(prefix)/include
 	install -m 644 libnut/libnut.h $(prefix)/include
 



More information about the NUT-devel mailing list