]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/Makefile
patch::: 0.1.48: Re: lily 0.1.59
[lilypond.git] / flower / Makefile
index 46fb7b5ab41f0a8805218a92dccc198bff680eba..c46fed65ebf02e981188f26ae75d7cbe7462d6ce 100644 (file)
@@ -1,43 +1,81 @@
-MAJVER=1
-MINVER=0
-PATCHLEVEL=11
+#
+# project  FlowerSoft C++ library
+# title           top level makefile for FlowerLib
+# file    flower/Makefile
+#
+# Copyright (c) 1997 by    
+#      Jan Nieuwenhuizen <jan@digicash.com>
+#      Han-Wen Nienhuys <hanwen@stack.nl>
+#              ...your sort order here, or how to comment-out a comment
 
-PACKAGENAME=flower
-VERSION=$(MAJVER).$(MINVER).$(PATCHLEVEL)
-DNAME=$(PACKAGENAME)-$(VERSION)
-DEFINES=-DNDEBUG -O2
-#DEFINES=-g
-CXXFLAGS+=$(DEFINES)  -Wall -W -pedantic
+# subdir level:
+#
+depth = ..
+#
 
-include Sources.make
+# identify module:
+#
+NAME = flower
+MODULE_NAME = flower
+#
+# edit VERSION only
+include ./$(depth)/VERSION
+include ./$(depth)/flower/VERSION
 
-obs=$(cc:.cc=.o)
-staticlib=libflower.a
+# generic variables:
+#
+include ./$(depth)/make/Variables.make
+include ./$(depth)/make/Files.make 
 
-$(staticlib): $(obs)
-       $(AR) cr libflower.a $(obs)
+include $(flowerout)/Flower-flags.make
 
-include depend
 
-depend: Sources.make
-       $(CXX) -MM $(cc) > depend
+#
+# descent order into subdirectories:
+#
+SUBDIRS = include test 
+#
 
+# list of distribution files:
+#
+SCRIPTS = 
+README_FILES = ONEWS NEWS README TODO
+EXTRA_DISTFILES= aclocal.m4 configure config.hh.in configure.in VERSION $(README_FILES) $(SCRIPTS) Flower-flags.make.in
+#
 
-clean:
-       rm -f $(obs) $(staticlib)
 
-realclean: clean
-       rm -f depend
+# generic targets and rules:
+#
+include ./$(depth)/make/Targets.make
+include ./$(depth)/make/Rules.make
+#
 
-DFILES=$(hh) $(cc) $(inl) $(templatecc) Makefile Sources.make TODO README
-DDIR=$(DNAME)
+default: the-lib
 
-dist:
-       -mkdir $(DDIR)
-       ln $(DFILES) $(DDIR)/
-       tar cfz $(DNAME).tar.gz $(DDIR)/*
-       rm -rf $(DDIR)/
+THE_LIB=$(outdir)/$(LIB_PREFIX)flower$(LIB_SUFFIX)
+the-lib: $(THE_LIB) 
 
-TAGS:
-       etags -CT $(inl) $(cc) $(hh)
+# version:
+#
 
+localdist: configure
+
+-include /dev/null $(DEPFILES)
+#
+
+localdistclean:
+       rm -f config.cache config.status config.log
+
+localinstall: $(LIBFLOWER)
+ifeq ($(LIB_SUFFIX),.so)
+       $(INSTALL) -d $(libdir)
+       $(INSTALL) $(LIBFLOWER).$(VERSION) $(libdir)
+       ln -sf $(LIB_PREFIX)flower$(LIB_SUFFIX).$(VERSION) $(libdir)/$(LIB_PREFIX)flower$(LIB_SUFFIX).$(MAJOR_VERSION)
+       ln -sf $(LIB_PREFIX)flower$(LIB_SUFFIX).$(VERSION) $(libdir)/$(LIB_PREFIX)flower$(LIB_SUFFIX)
+endif
+
+localuninstall:
+       rm -f $(libdir)/libflower.{so*,a}
+
+
+$(outdir)/flower-version.o: $(outdir)/version.hh