| version 1.10, 2002/04/26 09:12:12 |
version 1.11, 2002/04/27 20:33:19 |
| Line 36 infodir = @infodir@ |
|
| Line 36 infodir = @infodir@ |
|
| mandir = @mandir@ |
mandir = @mandir@ |
| man3dir = $(mandir)/man3 |
man3dir = $(mandir)/man3 |
| includedir = @includedir@ |
includedir = @includedir@ |
| |
includedir_platon = $(includedir)/platon |
| oldincludedir = /usr/include |
oldincludedir = /usr/include |
| |
|
| DESTDIR = |
DESTDIR = |
| Line 44 pkgdatadir = $(datadir)/@PACKAGE@ |
|
| Line 45 pkgdatadir = $(datadir)/@PACKAGE@ |
|
| pkglibdir = $(libdir)/@PACKAGE@ |
pkglibdir = $(libdir)/@PACKAGE@ |
| pkgincludedir = $(includedir)/@PACKAGE@ |
pkgincludedir = $(includedir)/@PACKAGE@ |
| |
|
| # libraries are usually distributed in packages prefixed by 'lib' |
|
| # Nepto [21/4/2002|2:12] |
|
| distdir = lib$(PACKAGE)-$(VERSION) |
distdir = lib$(PACKAGE)-$(VERSION) |
| top_distdir = $(distdir) |
top_distdir = $(distdir) |
| |
|
| Line 108 SOURCES = $(srcdir)/src/cfg+.c \ |
|
| Line 107 SOURCES = $(srcdir)/src/cfg+.c \ |
|
| $(srcdir)/src/str/strdyn.c \ |
$(srcdir)/src/str/strdyn.c \ |
| $(srcdir)/src/str/dynfgets.c |
$(srcdir)/src/str/dynfgets.c |
| |
|
| OBJECTS = src/cfg+.o \ |
OBJECTS = $(srcdir)/src/cfg+.o \ |
| src/parse.o \ |
$(srcdir)/src/parse.o \ |
| src/props.o \ |
$(srcdir)/src/props.o \ |
| src/cmdline.o \ |
$(srcdir)/src/cmdline.o \ |
| src/cfgfile.o \ |
$(srcdir)/src/cfgfile.o \ |
| src/shared.o \ |
$(srcdir)/src/shared.o \ |
| src/str/strplus.o \ |
$(srcdir)/src/str/strplus.o \ |
| src/str/strctype.o \ |
$(srcdir)/src/str/strctype.o \ |
| src/str/strdyn.o \ |
$(srcdir)/src/str/strdyn.o \ |
| src/str/dynfgets.o |
$(srcdir)/src/str/dynfgets.o |
| |
|
| DEP_FILES = $(srcdir)/src/.deps/cfg+.P \ |
DEP_FILES = $(srcdir)/src/.deps/cfg+.P \ |
| $(srcdir)/src/.deps/parse.P \ |
$(srcdir)/src/.deps/parse.P \ |
| Line 127 DEP_FILES = $(srcdir)/src/.deps/cfg+.P \ |
|
| Line 126 DEP_FILES = $(srcdir)/src/.deps/cfg+.P \ |
|
| $(srcdir)/src/.deps/shared.P |
$(srcdir)/src/.deps/shared.P |
| |
|
| |
|
| CONFIG_HEADER = config.h |
CONFIG_HEADER = $(top_srcdir)/config.h |
| include_HEADERS = src/cfg+.h |
include_HEADERS = src/cfg+.h |
| noinst_HEADERS = src/cfgfile.h \ |
noinst_HEADERS = src/cfgfile.h \ |
| src/cmdline.h \ |
src/cmdline.h \ |
| src/props.h \ |
src/props.h \ |
| src/shared.h \ |
src/shared.h \ |
| src/str/charsets.h \ |
|
| src/str/dynfgets.h \ |
src/str/dynfgets.h \ |
| src/str/strconv.h \ |
src/str/strconv.h \ |
| src/str/strctype.h \ |
src/str/strctype.h \ |
| Line 162 DISTFILES = AUTHOR COPYING TODO \ |
|
| Line 160 DISTFILES = AUTHOR COPYING TODO \ |
|
| config.guess config.sub configure \ |
config.guess config.sub configure \ |
| install-sh missing mkinstalldirs rebuild \ |
install-sh missing mkinstalldirs rebuild \ |
| src/ \ |
src/ \ |
| |
src/Makefile.in \ |
| src/cfg+.c src/cfgfile.c src/cmdline.c src/parse.c src/props.c src/shared.c \ |
src/cfg+.c src/cfgfile.c src/cmdline.c src/parse.c src/props.c src/shared.c \ |
| src/str \ |
src/str \ |
| src/str/strplus.c \ |
src/str/strplus.c \ |
| src/str/strctype.c \ |
src/str/strctype.c \ |
| src/str/strdyn.c \ |
src/str/strdyn.c \ |
| src/str/dynfgets.c \ |
src/str/dynfgets.c \ |
| $(include_HEADERS) $(noinst_HEADERS) |
$(include_HEADERS) $(noinst_HEADERS) \ |
| |
doc/ \ |
| |
doc/Makefile.in \ |
| |
doc/libcfg+.sgml |
| |
|
| # }}} Targets |
# }}} Targets |
| |
|
| CVSTAG = $(PACKAGE)-$(subst .,_,$(VERSION)) |
CVSTAG = $(PACKAGE)-$(subst .,_,$(VERSION)) |
| |
|
| all: Makefile $(MANS) lib Doxyfile |
all: makefiles $(MANS) Doxyfile all-subdirs |
| |
|
| |
makefiles: $(top_builddir)/Makefile $(top_builddir)/src/Makefile |
| |
|
| |
all-subdirs: all-src all-doc |
| |
|
| |
all-src: |
| |
cd $(top_builddir)/src && $(MAKE) |
| |
|
| |
all-doc: |
| |
cd $(top_builddir)/doc && $(MAKE) |
| |
|
| DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) |
DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) |
| |
|
| Line 194 $(LIBDYNAMICV): $(OBJECTS) |
|
| Line 206 $(LIBDYNAMICV): $(OBJECTS) |
|
| |
|
| .SUFFIXES: |
.SUFFIXES: |
| |
|
| Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(SOURCES) |
$(top_builddir)/Makefile: $(top_builddir)/Makefile.in $(top_builddir)/config.status $(SOURCES) |
| |
cd $(top_builddir) \ |
| |
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status |
| |
|
| |
$(top_builddir)/src/Makefile: $(top_builddir)/src/Makefile.in $(top_builddir)/config.status $(SOURCES) |
| cd $(top_builddir) \ |
cd $(top_builddir) \ |
| && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status |
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status |
| |
|
| config.status: $(srcdir)/configure.in $(CONFIG_STATUS_DEPENDENCIES) |
$(top_builddir)/config.status: $(top_builddir)/configure.in $(CONFIG_STATUS_DEPENDENCIES) |
| $(SHELL) ./config.status --recheck |
$(SHELL) ./config.status --recheck |
| |
|
| $(srcdir)/configure: $(srcdir)/configure.in $(CONFIGURE_DEPENDENCIES) |
$(srcdir)/configure: $(srcdir)/configure.in $(CONFIGURE_DEPENDENCIES) |
| Line 216 $(srcdir)/stamp-h.in: $(top_srcdir)/conf |
|
| Line 232 $(srcdir)/stamp-h.in: $(top_srcdir)/conf |
|
| cd $(top_srcdir) && $(AUTOHEADER) |
cd $(top_srcdir) && $(AUTOHEADER) |
| @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null |
@echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null |
| |
|
| |
$(top_builddir)/Doxyfile: $(top_builddir)/config.status $(top_builddir)/Doxyfile.in |
| |
cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status |
| |
|
| mostlyclean-hdr: |
mostlyclean-hdr: |
| |
|
| clean-hdr: |
clean-hdr: |
|
|
| -rm -f config.h |
-rm -f config.h |
| |
|
| maintainer-clean-hdr: |
maintainer-clean-hdr: |
| Doxyfile: $(top_builddir)/config.status Doxyfile.in |
|
| cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status |
|
| |
|
| $(srcdir)/strplus.o: $(srcdir)/str/strplus.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 |
|
| |
|
| $(srcdir)/strdyn.o: $(srcdir)/str/strdyn.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 |
|
| |
|
| $(srcdir)/dynfgets.o: $(srcdir)/str/dynfgets.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 |
|
| |
|
| $(srcdir)/strctype.o: $(srcdir)/str/strctype.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 |
|
| |
|
| %.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 |
|
| |
|
| clean-str: |
clean-str: |
| cd src/str && $(MAKE) clean |
cd $(top_srcdir)/src/str && $(MAKE) clean |
| |
|
| test: |
test: |
| $(CC) $(CFLAGS) -g -ggdb -DSELF_CFG -DDEBUG=1 -o cfg+ $(SOURCES) |
$(CC) $(CFLAGS) -g -ggdb -DSELF_CFG -DDEBUG=1 -o cfg+ $(SOURCES) |
| |
|
| |
|
| # Section: Install {{{ |
# Section: Install {{{ |
| install: all install-exec install-data |
install: all |
| uninstall: uninstall-man uninstall-includeHEADERS uninstall-exec |
cd $(top_builddir)/src && $(MAKE) $@ |
| |
uninstall: |
| |
cd $(top_builddir)/src && $(MAKE) $@ |
| |
|
| installcheck: |
installcheck: |
| |
cd $(top_builddir)/src && $(MAKE) $@ |
| |
|
| install-exec: install-lib |
install-exec: |
| uninstall-exec: uninstall-lib |
cd $(top_builddir)/src && $(MAKE) $@ |
| |
uninstall-exec: |
| install-lib: $(install_LIB) |
cd $(top_builddir)/src && $(MAKE) $@ |
| @$(NORMAL_INSTALL) |
|
| $(mkinstalldirs) $(DESTDIR)$(libdir) |
|
| @list='$(install_LIB)'; for p in $$list; do \ |
|
| if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \ |
|
| echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(libdir)/$$p"; \ |
|
| $(INSTALL_DATA) $$d$$p $(DESTDIR)$(libdir)/$$p; \ |
|
| done |
|
| |
|
| |
install-lib: |
| |
cd $(top_builddir)/src && $(MAKE) $@ |
| uninstall-lib: |
uninstall-lib: |
| @$(NORMAL_UNINSTALL) |
cd $(top_builddir)/src && $(MAKE) $@ |
| list='$(install_LIB)'; for p in $$list; do \ |
|
| rm -f $(DESTDIR)$(libdir)/$$p; \ |
|
| done |
|
| |
|
| |
|
| install-data: install-man install-includeHEADERS |
install-data: |
| |
cd $(top_builddir)/src && $(MAKE) $@ |
| |
|
| install-strip: |
install-strip: |
| $(MAKE) AM_INSTALL_PROGRAM_FLAGS=-s install |
cd $(top_builddir)/src && $(MAKE) $@ |
| installdirs: |
|
| $(mkinstalldirs) $(DESTDIR)$(mandir)/man3 $(DESTDIR)$(includedir) |
|
| |
|
| |
installdirs: |
| |
cd $(top_builddir)/src && $(MAKE) $@ |
| |
|
| install-man3: |
install-man3: |
| $(mkinstalldirs) $(DESTDIR)$(man3dir) |
cd $(top_builddir)/src && $(MAKE) $@ |
| @list='$(man3_MANS)'; \ |
|
| l2='$(man_MANS)'; for i in $$l2; do \ |
|
| case "$$i" in \ |
|
| *.3*) list="$$list $$i" ;; \ |
|
| esac; \ |
|
| done; \ |
|
| for i in $$list; do \ |
|
| if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ |
|
| else file=$$i; fi; \ |
|
| ext=`echo $$i | sed -e 's/^.*\\.//'`; \ |
|
| inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ |
|
| inst=`echo $$inst | sed '$(transform)'`.$$ext; \ |
|
| echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man3dir)/$$inst"; \ |
|
| $(INSTALL_DATA) $$file $(DESTDIR)$(man3dir)/$$inst; \ |
|
| done |
|
| uninstall-man3: |
uninstall-man3: |
| @list='$(man3_MANS)'; \ |
cd $(top_builddir)/src && $(MAKE) $@ |
| l2='$(man_MANS)'; for i in $$l2; do \ |
|
| case "$$i" in \ |
|
| *.3*) list="$$list $$i" ;; \ |
|
| esac; \ |
|
| done; \ |
|
| for i in $$list; do \ |
|
| ext=`echo $$i | sed -e 's/^.*\\.//'`; \ |
|
| inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ |
|
| inst=`echo $$inst | sed '$(transform)'`.$$ext; \ |
|
| echo " rm -f $(DESTDIR)$(man3dir)/$$inst"; \ |
|
| rm -f $(DESTDIR)$(man3dir)/$$inst; \ |
|
| done |
|
| install-man: $(MANS) |
install-man: $(MANS) |
| @$(NORMAL_INSTALL) |
cd $(top_builddir)/src && $(MAKE) $@ |
| $(MAKE) install-man3 |
|
| uninstall-man: |
uninstall-man: |
| @$(NORMAL_UNINSTALL) |
cd $(top_builddir)/src && $(MAKE) $@ |
| $(MAKE) uninstall-man3 |
|
| |
|
| install-includeHEADERS: $(include_HEADERS) |
install-includeHEADERS: $(include_HEADERS) |
| @$(NORMAL_INSTALL) |
cd $(top_builddir)/src && $(MAKE) $@ |
| $(mkinstalldirs) $(DESTDIR)$(includedir) |
|
| @list='$(include_HEADERS)'; for p in $$list; do \ |
|
| if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \ |
|
| echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \ |
|
| $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \ |
|
| done |
|
| |
|
| uninstall-includeHEADERS: |
uninstall-includeHEADERS: |
| @$(NORMAL_UNINSTALL) |
cd $(top_builddir)/src && $(MAKE) $@ |
| list='$(include_HEADERS)'; for p in $$list; do \ |
|
| rm -f $(DESTDIR)$(includedir)/$$p; \ |
install-symlinks: |
| done |
cd $(top_builddir)/src && $(MAKE) $@ |
| |
uninstall-symlinks: |
| |
cd $(top_builddir)/src && $(MAKE) $@ |
| |
|
| # }}} Section: Install |
# }}} Section: Install |
| |
|
| Line 489 clean: clean-str clean-hdr clean-tags cl |
|
| Line 423 clean: clean-str clean-hdr clean-tags cl |
|
| rm -rf *.o core *.core .deps/ |
rm -rf *.o core *.core .deps/ |
| |
|
| clean-lib: |
clean-lib: |
| -rm -f lib* |
-rm -f $(LIBSTATIC) $(LIBDYNAMIC) $(LIBDYNAMICV) |
| |
|
| maintainer-clean: maintainer-clean-hdr maintainer-clean-tags \ |
maintainer-clean: maintainer-clean-hdr maintainer-clean-tags \ |
| maintainer-clean-generic distclean |
maintainer-clean-generic distclean |