[NUT-devel] [nut]: r174 - in trunk: config.mak libnut/Makefile

ods15 subversion at mplayerhq.hu
Sat Nov 4 11:12:36 CET 2006


Author: ods15
Date: Sat Nov  4 11:12:35 2006
New Revision: 174

Modified:
   trunk/config.mak
   trunk/libnut/Makefile

Log:
Add install routine
Please comment on this, I've never written a "politically correct" makefile install.


Modified: trunk/config.mak
==============================================================================
--- trunk/config.mak	(original)
+++ trunk/config.mak	Sat Nov  4 11:12:35 2006
@@ -1,3 +1,6 @@
+PREFIX = /usr/local
+prefix = $(DESTDIR)$(PREFIX)
+
 CFLAGS = -Os -Wall -g
 #CFLAGS = -fomit-frame-pointer -g -Wall
 

Modified: trunk/libnut/Makefile
==============================================================================
--- trunk/libnut/Makefile	(original)
+++ trunk/libnut/Makefile	Sat Nov  4 11:12:35 2006
@@ -2,6 +2,16 @@
 
 all: libnut.a
 
+install:
+	install -d $(prefix)/lib
+	install libnut.so $(prefix)/lib
+	install -d $(prefix)/include
+	install nut.h $(prefix)/include
+
+uninstall:
+	rm -f $(prefix)/lib/libnut.so
+	rm -f $(prefix)/include/nut.h
+
 libnut.a: muxer.o demuxer.o reorder.o
 	rm -f $@
 	${AR} rc $@ $^



More information about the NUT-devel mailing list