Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, March 29, 2024

File: [Platon] / libplaton / utils / Makefile.in (download)

Revision 1.1, Tue Oct 1 18:32:16 2002 UTC (21 years, 6 months ago) by rajo

New building stuff. Many new features, many new bugs. ;)

# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

# Makefile for libcfg+ library.
# $Id: Makefile.in,v 1.1 2002/10/01 18:32:16 rajo Exp $ 

PACKAGE = @PACKAGE@
VERSION = @VERSION@

CVSTAG  = $(PACKAGE)-$(subst .,_,$(VERSION))


SHELL = @SHELL@

# Directories {{{
top_builddir      = ..
srcdir            = @srcdir@
top_srcdir        = @top_srcdir@
VPATH             = @srcdir@
prefix            = @prefix@
exec_prefix       = @exec_prefix@
                  
bindir            = @bindir@
sbindir           = @sbindir@
libexecdir        = @libexecdir@
datadir           = @datadir@
sysconfdir        = @sysconfdir@
sharedstatedir    = @sharedstatedir@
localstatedir     = @localstatedir@
libdir            = @libdir@
infodir           = @infodir@
mandir            = @mandir@
man3dir           = $(mandir)/man3
includedir        = @includedir@
includedir_platon = $(includedir)/platon
oldincludedir     = /usr/include
                  
DESTDIR           =
                  
pkgdatadir        = $(datadir)/@PACKAGE@
pkglibdir         = $(libdir)/@PACKAGE@
pkgincludedir     = $(includedir)/@PACKAGE@

# }}} Directories

# top_builddir will be absolute path
top_builddir := $(shell cd $(top_builddir) > /dev/null 3>&1 && pwd || :)

# Programs {{{
#ACLOCAL    = @ACLOCAL@
#AUTOCONF   = @AUTOCONF@
#AUTOMAKE   = @AUTOMAKE@
#AUTOHEADER = @AUTOHEADER@
ACLOCAL    = aclocal
AUTOCONF   = autoconf
AUTOMAKE   = automake
AUTOHEADER = autoheader


INSTALL         = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
INSTALL_DATA    = @INSTALL_DATA@
INSTALL_SCRIPT  = @INSTALL_SCRIPT@
transform       = @program_transform_name@
mkinstalldirs   = $(SHELL) $(top_srcdir)/mkinstalldirs
LN_S            = @LN_S@
MAKEINFO        = @MAKEINFO@
RANLIB          = @RANLIB@
STRIP           = @STRIP@
AWK             = @AWK@
JADEWRAP        = @JADEWRAP@
DOXYGEN         = @DOXYGEN@
TAR             = tar
GZIP_ENV        = --best
NROFF           = nroff
DEPEND          = makedepend 

NORMAL_INSTALL   = :
PRE_INSTALL      = :
POST_INSTALL     = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL    = :
POST_UNINSTALL   = :

CC       = @CC@
CPP      = @CPP@
CXX      = @CXX@
CFLAGS   = -O2 -Wall -Wshadow -pedantic
CPPFLAGS = @CPPFLAGS@
LDFLAGS  = @LDFLAGS@
DEFS     = @DEFS@
INCLUDES = -I. -I$(srcdir) -I$(top_builddir)


COMPILE  = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
CCLD     = $(CC)
LINK     = $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@

# }}} Programs

# Targets {{{

#SUBDIRS = crypt getmails makelynx strconv
SUBDIRS =

SOURCES =

OBJECTS =

# SunOS 4 make does not allow multiple makefiles to be specified in one ­include directive.
DEP_FILES =

CONFIG_HEADER   = $(top_builddir)/config.h
include_HEADERS =
include_SYMLINK =
noinst_HEADERS  =

LIBSTATIC   = $(PACKAGE).a
LIBDYNAMIC  = $(PACKAGE).so
LIBDYNAMICV = $(PACKAGE).so.$(VERSION)

install_LIB     = $(LIBSTATIC) $(LIBDYNAMICV)

CONFIG_CLEAN_FILES = Makefile
SCRIPTS            =

HEADERS =  $(include_HEADERS) $(noinst_HEADERS) $(CONFIG_HEADER)

# }}} Targets

all: configure-scripts makefiles all-subdirs

all-subdirs:
    @here=`pwd`; \
    if [ -n "$(SUBDIRS)" ]; then \
        for i in $(SUBDIRS); do \
            echo "Making all in $$i" && cd $$i; \
            make; \
            cd $$here; \
        done; \
    fi

# create str/ subdir if doesn't exists
#SUBDIR_STR_MAGIC := $(shell mkdir str > /dev/null 2>&1 || :)

# files in str/ subdirectory requeries includation of <platon/str/*.h>
# header files, therefore create symlink "platon" --> "./"
#SYMLINK_MAGIC := $(shell ln -s $(srcdir) platon > /dev/null 2>&1 || :)

# Makefiles, configure scripts dependencies {{{
makefiles: $(top_builddir)/Makefile \
    $(top_builddir)/doc/Makefile \
    $(top_builddir)/platon/html/Makefile \
    $(top_builddir)/platon/misc/Makefile \
    $(top_builddir)/platon/net/atlantis/Makefile \
    $(top_builddir)/platon/net/smtp/Makefile \
    $(top_builddir)/platon/net/Makefile \
    $(top_builddir)/platon/str/Makefile \
    $(top_builddir)/platon/Makefile \
    $(top_builddir)/utils/Makefile
configure-scripts: $(top_builddir)/config.status \
    $(top_srcdir)/configure \
    $(top_builddir)/config.h  \
    $(top_srcdir)/config.h.in

# Main Makefile
$(top_builddir)/%/Makefile: $(top_srcdir)/%/Makefile.in  $(top_builddir)/config.status
    @cd $(top_builddir) \
      && CONFIG_FILES=$@ CONFIG_HEADERS= \
        $(SHELL) ./config.status

Makefile: Makefile.in  $(top_builddir)/config.status
    @cd $(top_builddir) \
      && CONFIG_FILES=platon/Makefile CONFIG_HEADERS= \
        $(SHELL) ./config.status

$(top_builddir)/config.status: $(top_srcdir)/configure.in
    @cd $(top_builddir) \
      && $(SHELL) ./config.status --recheck

$(top_srcdir)/configure: $(top_srcdir)/configure.in
    @cd $(top_builddir) \
      $(SHELL) ./config.status --recheck \
        && cd $(top_srcdir) \
        && $(AUTOCONF)

$(top_builddir)/config.h: $(top_srcdir)/config.h.in $(top_builddir)/config.status
    @cd $(top_builddir) \
      && CONFIG_FILES= CONFIG_HEADERS=config.h \
        $(SHELL) ./config.status \
          && touch config.h

$(top_srcdir)/config.h.in: $(top_srcdir)/configure.in
    @cd $(top_srcdir) \
      && $(AUTOHEADER) \
        && touch config.h.in
# Makefiles, configure scripts dependencies }}}

#DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)

# SunOS 4 make does not allow multiple makefiles to be specified in one ­include directive.
#-include $(DEP_FILES)
#-include $(top_builddir)/src/.deps/cfg+.P


.SUFFIXES:

%.o: %.c $(CONFIG_HEADER)
    @echo '$(COMPILE) -c $<'; \
    $(COMPILE) -Wp,-MD,.deps/$(*F).pp -o $@ -c $<
    @-cp .deps/$(*F).pp .deps/$(*F).P; \
    tr ' ' '\012' < .deps/$(*F).pp \
      | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
        >> .deps/$(*F).P; \
    rm .deps/$(*F).pp

test: $(top_builddir)/config.h
    $(CC) $(INCLUDES) -Wall -g -ggdb -DSELF_CFG -DDEBUG=1 -o test-libcfg+ $(SOURCES)


# Section: Install {{{
install: all installdirs install-exec install-data install-symlinks
uninstall: uninstall-includeHEADERS uninstall-exec uninstall-symlinks uninstall-dirs

installcheck:
    @echo; echo; \
    echo "These files was installed to: "; \
    echo "    $(DESTDIR)$(libdir)"; \
    echo "    $(DESTDIR)$(includedir)"; \
    echo "    $(DESTDIR)$(includedir_platon)"; \
    echo "    $(DESTDIR)$(mandir)/man3"; \
    dashes="---------------------------------------------------------------"; \
    echo "$$dashes"; \
    find \
        $(DESTDIR)$(libdir) \
        $(DESTDIR)$(includedir) \
        $(DESTDIR)$(includedir_platon) \
        $(DESTDIR)$(mandir)/man3          -print ;\
    echo "$$dashes";

install-exec: install-lib
uninstall-exec: uninstall-lib

install-lib: $(install_LIB)
    @$(NORMAL_INSTALL)
    @$(mkinstalldirs) $(DESTDIR)$(libdir)
    @list='$(install_LIB)'; for p in $$list; do \
      if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
      echo "    Installing file $(DESTDIR)$(libdir)/$$p"; \
      $(INSTALL_DATA) $$d$$p $(DESTDIR)$(libdir)/$$p; \
    done
uninstall-lib:
    @$(NORMAL_UNINSTALL)
    @list='$(install_LIB)'; for p in $$list; do \
      echo "    rm -f $(DESTDIR)$(libdir)/$$p"; \
      rm -f $(DESTDIR)$(libdir)/$$p; \
    done


install-data: install-includeHEADERS

install-strip:
    $(MAKE) AM_INSTALL_PROGRAM_FLAGS=-s install

installdirs:
    @$(mkinstalldirs) \
        $(DESTDIR)$(mandir)/man3 \
        $(DESTDIR)$(includedir_platon) \
        $(DESTDIR)$(libdir)

install-includeHEADERS: $(include_HEADERS)
    @$(NORMAL_INSTALL)
    @$(mkinstalldirs) $(DESTDIR)$(includedir_platon)
    @list='$(include_HEADERS)'; for p in $$list; do \
      if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
      echo "    Installing file $(DESTDIR)$(includedir_platon)/$$p"; \
      $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir_platon)/$$p; \
    done
uninstall-includeHEADERS:
    @$(NORMAL_UNINSTALL)
    @list='$(include_HEADERS)'; for p in $$list; do \
      echo "    rm -f $(DESTDIR)$(includedir)/$$p"; \
      rm -f $(DESTDIR)$(includedir)/$$p; \
      echo "    rm -f $(DESTDIR)$(includedir_platon)/$$p"; \
      rm -f $(DESTDIR)$(includedir_platon)/$$p; \
    done

install-symlinks:
    @$(NORMAL_INSTALL)
    @$(mkinstalldirs) $(DESTDIR)$(libdir)
    @$(mkinstalldirs) $(DESTDIR)$(includedir_platon)
    @list='$(include_HEADERS)'; for p in $$list; do \
      echo "    Creating symlink $(DESTDIR)$(includedir)/$$p"; \
      here=`pwd`; \
      cd  $(DESTDIR)$(includedir) && ( \
          $(LN_S) platon/$$p $$p; \
        $(LN_S) platon/$(include_SYMLINK) $(include_SYMLINK); \
        cd platon && $(LN_S) $$p $(include_SYMLINK); \
      ); \
      cd $$here; \
    done; \
    cd $(DESTDIR)$(libdir) && ( \
        echo "    Creating symlink $(DESTDIR)$(libdir)/$(LIBDYNAMIC)"; \
        $(LN_S) $(LIBDYNAMICV) $(LIBDYNAMIC); \
     );
uninstall-symlinks:
    @$(NORMAL_UNINSTALL)
    -@list='$(include_SYMLINK)'; for p in $$list; do \
      echo "    rm -f $(DESTDIR)$(includedir)/$$p"; \
      rm -f $(DESTDIR)$(includedir)/$$p; \
      echo "    rm -f $(DESTDIR)$(includedir_platon)/$$p"; \
      rm -f $(DESTDIR)$(includedir_platon)/$$p; \
    done; \
    cd $(DESTDIR)$(libdir) && ( \
        echo "    rm -f $(DESTDIR)$(libdir)/$(LIBDYNAMIC)"; \
        rm -f $(LIBDYNAMIC); \
     );

uninstall-dirs:
    @$(NORMAL_UNINSTALL)
    -rmdir --ignore-fail-on-non-empty $(DESTDIR)$(includedir_platon)

# }}} Section: Install

# Section: TAGS {{{

tags: TAGS
TAGS:  $(HEADERS) $(SOURCES)
    ctags --output=$@ $(HEADERS) $(SOURCES)

# }}}  Section: TAGS

# Section: distribution {{{
# This target untars the dist file and tries a VPATH configuration.  Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck:
    cd $(top_builddir) && $(MAKE)$@
dist-all:
    cd $(top_builddir) && $(MAKE) $@
dist:
    cd $(top_builddir) && $(MAKE) $@
distdir:
    cd $(top_builddir) && $(MAKE) $@
distdir-permisions:
    cd $(top_builddir) && $(MAKE) $@

# }}} Section: distribution

info:
dvi:
check: all

.PHONY: doc
doc:
    cd ../doc && $(MAKE) clean all

# Section clean {{{
clean: clean-subdirs clean-hdr clean-tags clean-generic
    -rm -rf  *.o core *.core .deps lib*

clean-subdirs:
    @here=`pwd`; \
    if [ -n "$(SUBDIRS)" ]; then \
        for i in $(SUBDIRS); do \
            echo "Making all in $$i" && cd $$i; \
            make clean; \
            cd $$here; \
        done; \
    fi

clean-hdr:
    -rm -f $(top_builddir)/config.h

clean-tags:
    -rm -f TAGS ID

clean-generic:


mostlyclean: mostlyclean-hdr mostlyclean-tags mostlyclean-generic
    -rm -rf  *.o core *.core
    
mostlyclean-hdr:
    -rm -f $(top_builddir)/config.h

mostlyclean-tags:
    -rm -f TAGS ID

mostlyclean-generic:


maintainer-clean:  maintainer-clean-hdr maintainer-clean-tags \
        maintainer-clean-generic distclean
    @echo
    @echo "-----------------------------------------------------------"
    @echo "This command is intended for maintainers to use;"
    @echo "it deletes files that may require special tools to rebuild."
    @echo "-----------------------------------------------------------"
    @echo

maintainer-clean-generic:
    -rm -f $(top_builddir)/config.status $(top_srcdir)/configure
    -rm -f $(top_builddir)/$(PACKAGE)-*.tar.gz

maintainer-clean-tags:
    -rm -f TAGS ID

maintainer-clean-hdr:
    -rm -f $(top_builddir)/config.h


distclean: clean
    -rm -f Makefile

distclean-generic:

distclean-hdr:
    cd $(top_builddir) && $(MAKE) $@

# }}} Section clean

# PHONY {{{
.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
install uninstall installdirs \
install-exec install-data \
install-man3 uninstall-man3 \
install-man  uninstall-man \
install-lib  uninstall-lib \
install-includeHEADERS uninstall-includeHEADERS \
tags mostlyclean-tags \
distclean-tags clean-tags maintainer-clean-tags distdir info \
dvi check installcheck \
mostlyclean-generic distclean-generic clean-generic \
maintainer-clean-generic clean mostlyclean distclean maintainer-clean \
tags TAGS
# }}} PHONY

.PHONY:    sources
sources:
    @echo $(SOURCES:%=cfg/%)

.PHONY: lclint
lclint:
    lclint ${DEFS} ${INCLUDES} ${SOURCES}

.PHONY: archive
archive: 
    @echo "This is $(PACKAGE)-$(VERSION)."
    @sleep 5
    @cvs -Q tag -F $(CVSTAG) .
    @rm -rf /tmp/$(PACKAGE)-$(VERSION) /tmp/$(PACKAGE)
    @cd /tmp; cvs -Q -d $(CVSROOT) export -r$(CVSTAG) $(PACKAGE) || :
    @mv /tmp/$(PACKAGE) /tmp/$(PACKAGE)-$(VERSION)
    @cd /tmp/$(PACKAGE)-$(VERSION); ./autogen.sh ; $(MAKE) depend; $(MAKE) distclean
    @cd /tmp/$(PACKAGE)-$(VERSION); ./autogen.sh --noconfigure
    @cd /tmp; tar czSpf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
    @rm -rf /tmp/$(PACKAGE)-$(VERSION)
    @cp /tmp/$(PACKAGE)-$(VERSION).tar.gz .
    @rm -f /tmp/$(PACKAGE)-$(VERSION).tar.gz 
    @echo " "
    @echo "The final archive is ./$(PACKAGE)-$(VERSION).tar.gz."

# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

# vim600: fdm=marker fdc=3


Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top