New target is added. It can be used to produce a static library with the root-ificati...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Aug 2006 13:08:41 +0000 (13:08 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Aug 2006 13:08:41 +0000 (13:08 +0000)
Makefile

index f301fac..783de41 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -236,6 +236,11 @@ endif
 
 aliroot: alilibs $(BINPATH) $(ALLEXECS) 
 
+alimdc-static: $(LIBPATH) $(RAWDatabaseALIB) $(MDCALIB) $(ESDALIB)
+        $(MUTE)rm -rf $(LIBPATH)/libAliMDC.a
+        $(MUTE)rm -rf junk
+        mkdir junk && cd junk && ar x ../$(RAWDatabaseALIB) && ar x ../$(MDCALIB) && ar x ../$(ESDALIB) && ar r ../$(LIBPATH)/libAliMDC.a *.o && cd .. && rm -rf junk
+
 #-------------------------------------------------------------------------------
 # Single Makefile "distribution": Makefile + modules + mkdepend scripts
 makedistr: $(MODULES)