[NUT-devel] [nut]: r566 - in src/trunk: Makefile libnut/Makefile

diego subversion at mplayerhq.hu
Sat Feb 2 14:55:28 CET 2008


Author: diego
Date: Sat Feb  2 14:55:27 2008
New Revision: 566

Log:
Make libnut compilation nonrecursive.


Removed:
   src/trunk/libnut/Makefile
Modified:
   src/trunk/Makefile

Modified: src/trunk/Makefile
==============================================================================
--- src/trunk/Makefile	(original)
+++ src/trunk/Makefile	Sat Feb  2 14:55:27 2008
@@ -1,10 +1,21 @@
 include config.mak
 
+LIBNUT_OBJS = libnut/muxer.o libnut/demuxer.o libnut/reorder.o libnut/framecode.o
 NUTUTILS_PROGS = nututils/nutmerge nututils/nutindex nututils/nutparse
+
 all: libnut nututils
 
-libnut:
-	$(MAKE) -C libnut
+libnut: libnut/libnut.a libnut/libnut.so
+
+libnut/libnut.a: $(LIBNUT_OBJS)
+	rm -f $@
+	$(AR) rc $@ $^
+	$(RANLIB) $@
+
+libnut/libnut.so: $(LIBNUT_OBJS)
+	$(CC) $(CFLAGS) -shared $^ -o $@
+
+$(LIBNUT_OBJS): libnut/priv.h libnut/libnut.h
 
 nututils: libnut $(NUTUTILS_PROGS)
 



More information about the NUT-devel mailing list