version 1.5, 2002/01/21 19:34:55 |
version 1.14, 2006/09/09 06:59:51 |
|
|
# Makefile.in generated automatically by automake 1.4 from Makefile.am; |
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. |
# modified ! |
# This Makefile.in is free software; the Free Software Foundation |
# (by rajo) |
# gives unlimited permission to copy and/or distribute it, |
|
# with or without modifications, as long as this notice is preserved. |
# |
|
# Author: rajo <host8@kepler.fmph.uniba.sk> |
# This program is distributed in the hope that it will be useful, |
# |
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
# Copyright (c) rajo |
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
# |
# PARTICULAR PURPOSE. |
|
|
# $Id$ |
# Main Makefile for libplaton library. |
|
# $Platon: libplaton/Makefile.in,v 1.13 2002-12-09 14:53:31 rajo Exp $ |
|
|
PACKAGE = libplaton |
PACKAGE = @PACKAGE@ |
VERSION = 1.0 |
VERSION = @VERSION@ |
|
|
# Directories {{{ |
# Directories {{{ |
srcdir = @srcdir@ |
top_builddir = . |
top_srcdir = @top_srcdir@ |
srcdir = @srcdir@ |
VPATH = @srcdir@ |
top_srcdir = @top_srcdir@ |
prefix = @prefix@ |
VPATH = @srcdir@ |
exec_prefix = @exec_prefix@ |
prefix = @prefix@ |
|
exec_prefix = @exec_prefix@ |
bindir = @bindir@ |
|
sbindir = @sbindir@ |
bindir = @bindir@ |
libexecdir = @libexecdir@ |
sbindir = @sbindir@ |
sysconfdir = @sysconfdir@ |
libexecdir = @libexecdir@ |
sharedstatedir = @sharedstatedir@ |
datadir = @datadir@ |
localstatedir = @localstatedir@ |
sysconfdir = @sysconfdir@ |
libdir = @libdir@ |
sharedstatedir = @sharedstatedir@ |
infodir = @infodir@ |
localstatedir = @localstatedir@ |
mandir = @mandir@ |
libdir = @libdir@ |
includedir = @includedir@ |
infodir = @infodir@ |
oldincludedir = /usr/include |
mandir = @mandir@ |
datadir = $(prefix)/@DATADIRNAME@ |
man3dir = $(mandir)/man3 |
|
includedir = @includedir@ |
|
includedir_platon = $(includedir)/platon |
|
oldincludedir = /usr/include |
|
|
|
DESTDIR = |
|
|
|
pkgdatadir = $(datadir)/@PACKAGE@ |
|
pkglibdir = $(libdir)/@PACKAGE@ |
|
pkgincludedir = $(includedir)/@PACKAGE@ |
|
|
DESTDIR = |
# }}} Directories |
|
|
top_builddir = . |
# top_builddir will be absolute path |
|
top_builddir := $(shell cd $(top_builddir) > /dev/null 3>&1 && pwd || :) |
|
|
# }}} Directories |
# Targets {{{ |
|
|
|
# SUBDIRS = platon utils |
|
SUBDIRS = platon |
|
|
|
include_HEADERS = |
|
noinst_HEADERS = platon/cfgfile.h \ |
|
platon/cmdline.h \ |
|
platon/shared.h \ |
|
platon/str/dynfgets.h \ |
|
platon/str/strctype.h \ |
|
platon/str/strdyn.h \ |
|
platon/str/strplus.h |
|
|
|
noinst_SCRIPTS = |
|
SCRIPTS = $(noinst_SCRIPTS) |
|
|
|
DISTFILES = AUTHORS COPYING README INSTALL TODO VERSION \ |
|
Makefile.in configure.in \ |
|
config.h.in \ |
|
config.guess config.sub configure \ |
|
install-sh mkinstalldirs rebuild \ |
|
platon/ \ |
|
$(include_HEADERS) $(noinst_HEADERS) \ |
|
doc/ |
|
|
|
# }}} Targets |
|
|
|
all: configure-scripts makefiles $(MANS) all-subdirs |
|
|
|
include $(top_builddir)/Rules.make |
|
|
|
HEADERS = $(include_HEADERS) $(noinst_HEADERS) $(CONFIG_HEADER) |
|
|
|
# needed! |
|
platon.o: |
|
|
|
VERSION: $(top_builddir)/Makefile |
|
echo $(VERSION) > $@ |
|
|
|
$(top_builddir)/Makefile: $(top_srcdir)/Makefile.in $(top_builddir)/config.status |
|
@cd $(top_builddir) \ |
|
&& CONFIG_FILES=Makefile CONFIG_HEADERS= \ |
|
$(SHELL) ./config.status |
|
|
|
# Section: Install {{{ |
|
install: all install-subdirs |
|
|
|
uninstall: uninstall-subdirs |
|
|
|
installcheck: |
|
|
|
install-exec: |
|
|
|
uninstall-exec: |
|
|
|
|
|
install-lib: |
|
|
|
uninstall-lib: |
|
|
|
|
|
install-data: |
|
|
|
|
|
install-strip: |
|
|
|
|
|
installdirs: |
|
|
|
|
|
install-man: $(MANS) |
|
|
|
uninstall-man: |
|
|
|
|
|
# }}} Section: Install |
|
|
# Flags {{{ |
# vim600: fdm=marker fdc=3 |
LIBS = @LIBS@ |
|
DEFS = @DEFS@ |
|
CPPFLAGS = @CPPFLAGS@ |
|
LDFLAGS = @LDFLAGS@ |
|
CFLAGS = @CFLAGS@ @DEBUG@ |
|
|
|
libplaton_LDADD = $(LDADD) |
|
libplaton_DEPENDENCIES = |
|
libplaton_LDFLAGS = |
|
# }}} Flags |
|
|
|
# Enviroment {{{ |
|
GZIP_ENV = --best |
|
# }}} Enviroment |
|
|
|
# Programs {{{ |
|
CC = @CC@ |
|
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) |
|
CCLD = $(CC) |
|
LINK = $(CCLD) $(CFLAGS) $(LDFLAGS) -o $@ |
|
|
|
SHELL = @SHELL@ |
|
LN_S = @LN_S@ |
|
STRIP = @STRIP@ |
|
TAR = tar |
|
NROFF = nroff |
|
MAKE = make |
|
INSTALL = @INSTALL@ |
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
|
INSTALL_DATA = @INSTALL_DATA@ |
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
|
transform = @program_transform_name@ |
|
|
|
AR = ar |
|
RANLIB = ranlib |
|
LD = ld |
|
|
|
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs |
|
|
|
# }}} Programs |
|
|
|
# Target names, objects {{{ |
|
libplaton_DIRS = @libplaton_DIRS@ |
|
libplaton_SOURCES = @libplaton_SOURCES@ |
|
libplaton_HEADERS = @libplaton_HEADERS@ |
|
libplaton_OBJECTS = @libplaton_OBJECTS@ |
|
|
|
libplaton_SOURCES_html = @libplaton_SOURCES_html@ |
|
libplaton_HEADERS_html = @libplaton_HEADERS_html@ |
|
libplaton_OBJECTS_html = @libplaton_OBJECTS_html@ |
|
|
|
libplaton_SOURCES_str = @libplaton_SOURCES_str@ |
|
libplaton_HEADERS_str = @libplaton_HEADERS_str@ |
|
libplaton_OBJECTS_str = @libplaton_OBJECTS_str@ |
|
|
|
libplaton_SOURCES_telnet = @libplaton_SOURCES_telnet@ |
|
libplaton_HEADERS_telnet = @libplaton_HEADERS_telnet@ |
|
libplaton_OBJECTS_telnet = @libplaton_OBJECTS_telnet@ |
|
|
|
libplaton_SOURCES_utils = @libplaton_SOURCES_utils@ |
|
libplaton_HEADERS_utils = @libplaton_HEADERS_utils@ |
|
libplaton_OBJECTS_utils = @libplaton_OBJECTS_utils@ |
|
|
|
libplaton_LIB = libplaton |
|
libplaton_html_LIB = libplaton_html |
|
libplaton_str_LIB = libplaton_str |
|
libplaton_telnet_LIB = libplaton_telnet |
|
libplaton_utils_LIB = libplaton_utils |
|
|
|
SOURCES = $(libplaton_SOURCES) |
|
HEADERS = $(libplaton_HEADERS) |
|
OBJECTS = $(libplaton_OBJECTS) |
|
libplaton_STATIC_LIB = $(libplaton_LIB).a |
|
libplaton_DYNAMIC_LIB = $(libplaton_LIB).so |
|
libplaton_DYNAMICV_LIB = $(libplaton_LIB)-$(VERSION).so |
|
|
|
EXTRA_DIST = BUGS CREDITS ChangeLog TODO |
|
DIST_COMMON = README AUTHORS COPYING INSTALL \ |
|
configure install-sh mkinstalldirs \ |
|
Makefile.in html/Makefile str/Makefile \ |
|
telnet/Makefile utils/Makefile |
|
DISTFILES = $(libplaton_DIRS) $(SOURCES) $(HEADERS) \ |
|
$(DIST_COMMON) $(TEXINFOS) $(EXTRA_DIST) |
|
# }}} Target names, objects |
|
|
|
|
|
all: all-subdirs static dynamic |
|
|
|
all-subdirs: |
|
for i in $(libplaton_DIRS) ; do \ |
|
back=`pwd`; \ |
|
cd $(srcdir)/$$i && $(MAKE) && cd $$back ; \ |
|
done |
|
|
|
static: $(libplaton_STATIC_LIB) |
|
|
|
dynamic: $(libplaton_DYNAMIC_LIB) |
|
|
|
$(libplaton_STATIC_LIB): $(OBJECTS) |
|
cd $(srcdir) && $(AR) r $@ $(OBJECTS) |
|
|
|
$(libplaton_DYNAMIC_LIB): $(OBJECTS) |
|
cd $(srcdir) && $(LD) $(LDFLAGS) -shared -o $@ $(OBJECTS) |
|
|
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) |
|
cd $(top_builddir) \ |
|
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status |
|
|
|
config.status: $(srcdir)/configure |
|
$(SHELL) ./config.status --recheck |
|
|
|
.s.o: |
|
$(COMPILE) -c $< |
|
|
|
.S.o: |
|
$(COMPILE) -c $< |
|
|
|
clean: clean-subdirs |
|
rm -f $(libplaton_STATIC_LIB) $(libplaton_DYNAMIC_LIB) $(libplaton_DYNAMICV_LIB) core |
|
|
|
clean-subdirs: |
|
for i in $(libplaton_DIRS) ; do \ |
|
back=`pwd`; \ |
|
cd $(srcdir)/$$i && $(MAKE) clean && cd $$back ; \ |
|
done |
|
|
|
# ID & tags {{{ |
|
ID: $(HEADERS) $(SOURCES) $(LISP) |
|
list='$(SOURCES) $(HEADERS)'; \ |
|
unique=`for i in $$list; do echo $$i; done | \ |
|
awk ' { files[$$0] = 1; } \ |
|
END { for (i in files) print i; }'`; \ |
|
here=`pwd` && cd $(srcdir) \ |
|
&& mkid -f$$here/ID $$unique $(LISP) |
|
|
|
tags: |
|
ctags -o TAGS $(HEADERS) $(SOURCES) |
|
|
|
clean-tags: |
|
-rm -f TAGS ID |
|
|
|
distclean-tags: |
|
-rm -f TAGS ID |
|
|
|
maintainer-clean-tags: |
|
# }}} ID & tags |
|
|
|
# Distribution {{{ |
|
distdir = $(PACKAGE)-$(VERSION) |
|
top_distdir = $(distdir) |
|
|
|
# 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: dist |
|
-rm -rf $(distdir) |
|
GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz |
|
mkdir $(distdir)/=build |
|
mkdir $(distdir)/=inst |
|
dc_install_base=`cd $(distdir)/=inst && pwd`; \ |
|
cd $(distdir)/=build \ |
|
&& ../configure --srcdir=.. --prefix=$$dc_install_base \ |
|
&& $(MAKE) $(AM_MAKEFLAGS) \ |
|
# && $(MAKE) $(AM_MAKEFLAGS) check \ |
|
# && $(MAKE) $(AM_MAKEFLAGS) install \ |
|
# && $(MAKE) $(AM_MAKEFLAGS) installcheck \ |
|
&& $(MAKE) $(AM_MAKEFLAGS) dist |
|
-rm -rf $(distdir) |
|
@banner="$(distdir).tar.gz is ready for distribution"; \ |
|
dashes=`echo "$$banner" | sed s/./=/g`; \ |
|
echo "$$dashes"; \ |
|
echo "$$banner"; \ |
|
echo "$$dashes" |
|
dist: distdir |
|
-chmod -R a+r $(distdir) |
|
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) |
|
-rm -rf $(distdir) |
|
dist-all: distdir |
|
-chmod -R a+r $(distdir) |
|
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) |
|
-rm -rf $(distdir) |
|
distdir: $(DISTFILES) |
|
-rm -rf $(distdir) |
|
mkdir $(distdir) |
|
-chmod 777 $(distdir) |
|
here=`cd $(top_builddir) && pwd`; \ |
|
top_distdir=`cd $(distdir) && pwd`; \ |
|
distdir=`cd $(distdir) && pwd`; |
|
@for file in $(DISTFILES); do \ |
|
d=$(srcdir); \ |
|
if test -d $$d/$$file; then \ |
|
$(mkinstalldirs) $(distdir)/$$file; \ |
|
else \ |
|
test -f $(distdir)/$$file \ |
|
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \ |
|
|| cp -p $$d/$$file $(distdir)/$$file || :; \ |
|
fi; \ |
|
done |
|
# }}} Distribution |
|
|
|
# Libs: {{{ |
|
|
|
$(libplaton_LIB): |
|
LIBOBJS=`find $(libplaton_DIRS) -name \*.o -print`; \ |
|
cd $(srcdir) && $(AR) $@ $$LIBOBJS |
|
$(RANLIB) $@ |
|
|
|
# }}} Libs: |
|
|
|
# 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: |
|
|
|
# vim:set ts=4: |
|
# vim600:fdm=marker fdl=0 fdc=3: |
|