-include Variables.make
-
-$(staticlib): $(obs) fversion.hh
- $(AR) cr libflower.a $(obs)
-
-include deps/*.dep
-
-deps/*.dep:
- touch deps/dummy.dep
-
-depend: Sources.make
- $(CXX) $(CXXFLAGS) -MM $(cc) > depend
-
-
-$(OBJECTDIR)/%.o: $(CCDIR)/%.cc
- $(DODEP)\
- $(CXX) -c $(CXXFLAGS) $(OUTPUT_OPTION)
-
-
-clean:
- rm -f $(obs) $(staticlib) fversion.hh
-
-realclean: clean
- rm -f depend
-
-fversion.hh: Variables.make make_version
- make_version $(MAJVER) $(MINVER) $(PATCHLEVEL) "$(CXX) `$(CXXVER)`" > $@
-
-.PHONY: docxx
-docxx: $(hh) $(cc) $(templatecc) $(inl)
- doc++ -p -d docxx $(hh) $(cc) $(templatecc) $(inl)
-
-dist:
- -mkdir $(DDIR)
- ln $(DFILES) $(DDIR)/
- -for SUBDIR in $(SUBDIRS); \
- do mkdir $(DDIR)/$$SUBDIR; \
- $(MAKE) SUBDIR=$$SUBDIR -C $$SUBDIR dist;\
- done
- tar cfz $(DNAME).tar.gz $(DNAME)/
- rm -rf $(DDIR)/
-
-TAGS: $(ALLSOURCES)
- etags -CT $(inl) $(cc) $(hh)
-
-
-
-test: stringtest
-
-stringtest: $(OBJECTDIR)/stringtest.o
- g++ -o $@ $< -L. -lflower
\ No newline at end of file
+#
+# 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
+
+# subdir level:
+#
+depth = ..
+#
+
+# identify module:
+#
+NAME = flower
+MODULE_NAME = flower
+#
+# edit VERSION only
+include ./$(depth)/VERSION
+include ./$(depth)/flower/VERSION
+
+# generic variables:
+#
+include ./$(depth)/make/Variables.make
+include ./$(depth)/make/Files.make
+
+include $(flowerout)/Flower-flags.make
+
+
+#
+# descent order into subdirectories:
+#
+SUBDIRS = include test
+#
+
+# list of distribution files:
+#
+SCRIPTS =
+README_FILES = NEWS README TODO
+EXTRA_DISTFILES= configure config.hh.in configure.in VERSION $(README_FILES) $(SCRIPTS) Flower-flags.make.in
+#
+
+
+# generic targets and rules:
+#
+include ./$(depth)/make/Targets.make
+include ./$(depth)/make/Rules.make
+#
+
+default: the-lib
+
+THE_LIB=$(outdir)/$(LIB_PREFIX)flower$(LIB_SUFFIX)
+the-lib: $(THE_LIB)
+
+# version:
+#
+
+localdist: configure
+
+-include /dev/null $(DEPFILES)
+#
+
+localdistclean:
+ rm -f config.cache config.status
+
+localinstall: $(LIBFLOWER)
+ifeq ($(LIB_SUFFIX),.so)
+ $(INSTALL) -d $(libdir)
+ $(INSTALL) $(LIBFLOWER) $(libdir)
+endif
+
+localuninstall:
+ rm -f $(libdir)/libflower.{so,a}