| version 1.45, 2002/06/16 11:58:48 |
version 1.46, 2002/07/01 10:41:42 |
|
|
| PACKAGE = @PACKAGE@ |
PACKAGE = @PACKAGE@ |
| VERSION = @VERSION@ |
VERSION = @VERSION@ |
| |
|
| |
CVSTAG = $(PACKAGE)-$(subst .,_,$(VERSION)) |
| |
|
| SHELL = @SHELL@ |
SHELL = @SHELL@ |
| |
|
| # Directories {{{ |
# Directories {{{ |
| Line 89 POST_UNINSTALL = : |
|
| Line 91 POST_UNINSTALL = : |
|
| CC = @CC@ |
CC = @CC@ |
| CPP = @CPP@ |
CPP = @CPP@ |
| CXX = @CXX@ |
CXX = @CXX@ |
| CFLAGS = -O2 -Wall -pedantic -I$(srcdir) -I$(top_builddir) |
CFLAGS = -O2 -Wall -pedantic |
| CPPFLAGS = |
CPPFLAGS = @CPPFLAGS@ |
| LDFLAGS = |
LDFLAGS = @LDFLAGS@ |
| DEFS = |
DEFS = @DEFS@ |
| INCLUDES = |
INCLUDES = -I$(srcdir) -I$(top_builddir) |
| |
|
| COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) |
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) |
| CCLD = $(CC) |
CCLD = $(CC) |
| Line 102 LINK = $(CCLD) $(CFLAGS) $(LDFLAGS) |
|
| Line 104 LINK = $(CCLD) $(CFLAGS) $(LDFLAGS) |
|
| # }}} Programs |
# }}} Programs |
| |
|
| # Targets {{{ |
# Targets {{{ |
| SOURCES = $(srcdir)/src/cfg+.c \ |
|
| $(srcdir)/src/parse.c \ |
|
| $(srcdir)/src/props.c \ |
|
| $(srcdir)/src/cmdline.c \ |
|
| $(srcdir)/src/cfgfile.c \ |
|
| $(srcdir)/src/shared.c \ |
|
| $(srcdir)/src/str/strplus.c \ |
|
| $(srcdir)/src/str/strctype.c \ |
|
| $(srcdir)/src/str/strdyn.c \ |
|
| $(srcdir)/src/str/dynfgets.c |
|
| |
|
| OBJECTS = $(srcdir)/src/cfg+.o \ |
|
| $(srcdir)/src/parse.o \ |
|
| $(srcdir)/src/props.o \ |
|
| $(srcdir)/src/cmdline.o \ |
|
| $(srcdir)/src/cfgfile.o \ |
|
| $(srcdir)/src/shared.o \ |
|
| $(srcdir)/src/str/strplus.o \ |
|
| $(srcdir)/src/str/strctype.o \ |
|
| $(srcdir)/src/str/strdyn.o \ |
|
| $(srcdir)/src/str/dynfgets.o |
|
| |
|
| # SunOS 4 make does not allow multiple makefiles to be specified in one include directive. |
|
| DEP_FILES = $(top_builddir)/src/.deps/cfg+.P \ |
|
| $(top_builddir)/src/.deps/parse.P \ |
|
| $(top_builddir)/src/.deps/props.P \ |
|
| $(top_builddir)/src/.deps/cmdline.P \ |
|
| $(top_builddir)/src/.deps/cfgfile.P \ |
|
| $(top_builddir)/src/.deps/shared.P \ |
|
| $(top_builddir)/src/.deps/strplus.P \ |
|
| $(top_builddir)/src/.deps/strctype.P \ |
|
| $(top_builddir)/src/.deps/strdyn.P \ |
|
| $(top_builddir)/src/.deps/dynfgets.P |
|
| |
|
| |
CONFIG_HEADER = $(top_builddir)/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 \ |
|
|
| man3_MANS = |
man3_MANS = |
| MANS = $(man_MANS) $(man3_MANS) |
MANS = $(man_MANS) $(man3_MANS) |
| |
|
| CONFIG_CLEAN_FILES = Doxyfile doc/sgml/defs.sgml |
CONFIG_CLEAN_FILES = doc/Doxyfile doc/sgml/defs.sgml |
| SCRIPTS = $(noinst_SCRIPTS) |
SCRIPTS = $(noinst_SCRIPTS) |
| |
|
| HEADERS = $(include_HEADERS) $(noinst_HEADERS) $(CONFIG_HEADER) |
HEADERS = $(include_HEADERS) $(noinst_HEADERS) $(CONFIG_HEADER) |
| Line 181 DISTFILES = AUTHOR COPYING README INSTAL |
|
| Line 149 DISTFILES = AUTHOR COPYING README INSTAL |
|
| |
|
| # }}} Targets |
# }}} Targets |
| |
|
| CVSTAG = $(PACKAGE)-$(subst .,_,$(VERSION)) |
all: configure-scripts makefiles $(MANS) all-subdirs |
| |
|
| all: makefiles configure-scripts $(MANS) all-subdirs |
|
| |
|
| makefiles: $(top_builddir)/Makefile \ |
makefiles: $(top_builddir)/Makefile \ |
| $(top_builddir)/src/Makefile \ |
$(top_builddir)/src/Makefile \ |
|
|
| cd $(top_builddir)/doc && $(MAKE) |
cd $(top_builddir)/doc && $(MAKE) |
| |
|
| |
|
| # 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 |
|
| -include $(top_builddir)/src/.deps/parse.P |
|
| -include $(top_builddir)/src/.deps/props.P |
|
| -include $(top_builddir)/src/.deps/cmdline.P |
|
| -include $(top_builddir)/src/.deps/cfgfile.P |
|
| -include $(top_builddir)/src/.deps/shared.P |
|
| -include $(top_builddir)/src/.deps/strplus.P |
|
| -include $(top_builddir)/src/.deps/strctype.P |
|
| -include $(top_builddir)/src/.deps/strdyn.P |
|
| -include $(top_builddir)/src/.deps/dynfgets.P |
|
| |
|
| |
|
| static: |
static: |
| cd $(top_builddir)/src && $(MAKE) $@ |
cd $(top_builddir)/src && $(MAKE) $@ |
| |
|
| Line 263 $(top_builddir)/config.status: $(top_src |
|
| Line 215 $(top_builddir)/config.status: $(top_src |
|
| @cd $(top_builddir) \ |
@cd $(top_builddir) \ |
| && $(SHELL) ./config.status --recheck |
&& $(SHELL) ./config.status --recheck |
| |
|
| $(top_builddir)/configure: $(top_srcdir)/configure.in |
$(top_srcdir)/configure: $(top_srcdir)/configure.in |
| @cd $(top_builddir) \ |
@cd $(top_builddir) \ |
| $(SHELL) ./config.status --recheck \ |
$(SHELL) ./config.status --recheck \ |
| |
&& cd $(top_srcdir) \ |
| && $(AUTOCONF) |
&& $(AUTOCONF) |
| |
|
| $(top_builddir)/config.h: $(top_srcdir)/config.h.in $(top_builddir)/config.status |
$(top_builddir)/config.h: $(top_srcdir)/config.h.in $(top_builddir)/config.status |
| Line 280 $(top_srcdir)/config.h.in: $(top_srcdir) |
|
| Line 233 $(top_srcdir)/config.h.in: $(top_srcdir) |
|
| && touch config.h.in |
&& touch config.h.in |
| # Makefiles, configure scripts dependencies }}} |
# Makefiles, configure scripts dependencies }}} |
| |
|
| |
|
| clean-hdr: |
|
| distclean-hdr: |
|
| -rm -f config.h |
|
| |
|
| |
|
| test: |
test: |
| @make dist \ |
@$(MAKE) dist \ |
| && tar xzf $(distdir).tar.gz \ |
&& tar xzf $(distdir).tar.gz \ |
| && here=`pwd` \ |
&& here=`pwd` \ |
| && cd $(distdir) \ |
&& cd $(distdir) \ |
| && ./configure --prefix=install_dir \ |
&& ./configure --prefix=install_dir \ |
| && make \ |
&& $(MAKE) --warn-undefined-variables \ |
| && make install \ |
&& $(MAKE) --warn-undefined-variables install \ |
| && make uninstall \ |
&& $(MAKE) --warn-undefined-variables uninstall \ |
| && make dist \ |
&& $(MAKE) --warn-undefined-variables dist \ |
| && make distcheck \ |
&& $(MAKE) --warn-undefined-variables distcheck \ |
| && banner="Test of compilation ended without errors, super! :-)"; echo; \ |
&& banner="Test of compilation ended without errors, super! :-)"; echo; \ |
| dashes=`echo "$$banner" | sed s/./=/g`; \ |
dashes=`echo "$$banner" | sed s/./=/g`; \ |
| echo "$$dashes"; \ |
echo "$$dashes"; \ |
|
|
| cd $$here; \ |
cd $$here; \ |
| rm -rf $(distdir) |
rm -rf $(distdir) |
| |
|
| |
|
| |
|
| # Section: Install {{{ |
# Section: Install {{{ |
| install: all |
install: all |
| Line 360 uninstall-includeHEADERS: |
|
| Line 306 uninstall-includeHEADERS: |
|
| # Section: TAGS {{{ |
# Section: TAGS {{{ |
| tags: TAGS |
tags: TAGS |
| |
|
| ID: $(HEADERS) $(SOURCES) |
ID: |
| cd $(top_builddir)/src && $(MAKE) $@ |
cd $(top_builddir)/src && $(MAKE) $@ |
| TAGS: $(HEADERS) $(SOURCES) config.h.in |
TAGS: |
| cd $(top_builddir)/src && $(MAKE) $@ |
cd $(top_builddir)/src && $(MAKE) $@ |
| |
|
| clean-tags: |
|
| distclean-tags: |
|
| -rm -f TAGS ID |
|
| |
|
| # }}} Section: TAGS |
# }}} Section: TAGS |
| |
|
| # Section: distribution {{{ |
# Section: distribution {{{ |
|
|
| cd $(distdir)/=build \ |
cd $(distdir)/=build \ |
| && ../configure --srcdir=.. --prefix=$$dc_install_base \ |
&& ../configure --srcdir=.. --prefix=$$dc_install_base \ |
| && $(MAKE) --warn-undefined-variables \ |
&& $(MAKE) --warn-undefined-variables \ |
| && $(MAKE) dvi \ |
&& $(MAKE) --warn-undefined-variables dvi \ |
| && $(MAKE) check \ |
&& $(MAKE) --warn-undefined-variables check \ |
| && $(MAKE) install \ |
&& $(MAKE) --warn-undefined-variables install \ |
| && $(MAKE) installcheck \ |
&& $(MAKE) --warn-undefined-variables installcheck \ |
| && $(MAKE) dist |
&& $(MAKE) --warn-undefined-variables dist |
| -rm -rf $(distdir) |
-rm -rf $(distdir) |
| @banner="$(distdir).tar.gz is ready for distribution"; \ |
@banner="$(distdir).tar.gz is ready for distribution"; \ |
| dashes=`echo "$$banner" | sed s/./=/g`; \ |
dashes=`echo "$$banner" | sed s/./=/g`; \ |
| Line 444 distdir-permisions: |
|
| Line 386 distdir-permisions: |
|
| fi; \ |
fi; \ |
| done |
done |
| |
|
| distclean-generic: |
|
| -rm -f Makefile $(CONFIG_CLEAN_FILES) |
|
| -rm -f config.cache config.log stamp-h stamp-h[0-9]* |
|
| |
|
| distclean: distclean-hdr distclean-tags distclean-generic clean |
|
| -rm -f config.status |
|
| |
|
| # }}} Section: distribution |
# }}} Section: distribution |
| |
|
| info: |
info: |
| dvi: |
dvi: |
| check: all |
check: all |
| |
|
| clean: clean-src clean-doc clean-hdr clean-tags mostlyclean |
# Section clean {{{ |
| |
|
| |
clean: clean-src clean-doc clean-hdr |
| -rm -rf *.o core *.core .deps/ |
-rm -rf *.o core *.core .deps/ |
| -rm -f md5sum* |
-rm -f md5sum* |
| |
|
| |
|
| clean-src: |
clean-src: |
| cd $(top_builddir)/src && $(MAKE) clean |
cd $(top_builddir)/src && $(MAKE) clean |
| |
|
| clean-doc: |
clean-doc: |
| cd $(top_builddir)/doc && $(MAKE) clean |
cd $(top_builddir)/doc && $(MAKE) clean |
| |
|
| |
clean-tags: |
| |
cd $(top_builddir)/src && $(MAKE) $@ |
| |
|
| |
clean-hdr: |
| |
-rm -f config.h |
| |
|
| mostlyclean: |
|
| |
|
| maintainer-clean: distclean |
mostlyclean: mostlyclean-src mostlyclean-hdr clean-tags |
| |
-rm -rf *.o core *.core .deps/ |
| |
-rm -f md5sum* |
| |
|
| |
mostlyclean-src: |
| |
cd $(top_builddir)/src && $(MAKE) mostlyclean |
| |
mostlyclean-hdr: |
| |
cd $(top_builddir)/src && $(MAKE) mostlyclean |
| |
|
| |
maintainer-clean: distclean maintainer-clean-generic |
| |
@echo |
| |
@echo "-----------------------------------------------------------" |
| @echo "This command is intended for maintainers to use;" |
@echo "This command is intended for maintainers to use;" |
| @echo "it deletes files that may require special tools to rebuild." |
@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_srcdir)/config.h.in |
| |
-rm -f $(top_builddir)/lib$(PACKAGE)-*.tar.gz |
| |
|
| |
|
| |
distclean: distclean-src distclean-doc distclean-hdr \ |
| |
distclean-tags distclean-generic |
| -rm -f config.status |
-rm -f config.status |
| -rm -f $(PACKAGE)-*.tar.gz |
-rm -rf *.o core *.core .deps/ |
| |
-rm -f md5sum* |
| |
|
| |
distclean-src: |
| |
cd $(top_builddir)/src && $(MAKE) distclean |
| |
|
| |
distclean-doc: |
| |
cd $(top_builddir)/doc && $(MAKE) distclean |
| |
|
| |
distclean-hdr: |
| |
-rm -f config.h |
| |
|
| |
distclean-tags: |
| |
-rm -f TAGS ID |
| |
|
| |
distclean-generic: |
| |
-rm -f Makefile $(CONFIG_CLEAN_FILES) |
| |
-rm -f config.cache config.log stamp-h stamp-h[0-9]* |
| |
|
| |
# }}} Section clean |
| |
|
| # PHONY {{{ |
# PHONY {{{ |
| .PHONY: distclean-hdr clean-hdr \ |
.PHONY: distclean-hdr clean-hdr \ |
| Line 495 maintainer-clean-generic clean mostlycle |
|
| Line 475 maintainer-clean-generic clean mostlycle |
|
| |
|
| .PHONY: sources |
.PHONY: sources |
| sources: |
sources: |
| @echo $(SOURCES:%=libcfg+/%) |
cd $(top_builddir)/src && $(MAKE) $@ |
| |
|
| .PHONY: lclint |
.PHONY: lclint |
| lclint: |
lclint: |
| lclint ${DEFS} ${INCLUDES} ${SOURCES} |
cd $(top_builddir)/src && $(MAKE) $@ |
| |
|
| .PHONY: archive |
.PHONY: archive |
| archive: |
archive: |
|
|
| @rm -rf /tmp/$(PACKAGE)-$(VERSION) /tmp/$(PACKAGE) |
@rm -rf /tmp/$(PACKAGE)-$(VERSION) /tmp/$(PACKAGE) |
| @cd /tmp; cvs -Q -d $(CVSROOT) export -r$(CVSTAG) $(PACKAGE) || : |
@cd /tmp; cvs -Q -d $(CVSROOT) export -r$(CVSTAG) $(PACKAGE) || : |
| @mv /tmp/$(PACKAGE) /tmp/$(PACKAGE)-$(VERSION) |
@mv /tmp/$(PACKAGE) /tmp/$(PACKAGE)-$(VERSION) |
| @cd /tmp/$(PACKAGE)-$(VERSION); ./autogen.sh ; make depend; make distclean |
@cd /tmp/$(PACKAGE)-$(VERSION); ./autogen.sh ; $(MAKE) depend; $(MAKE) distclean |
| @cd /tmp/$(PACKAGE)-$(VERSION); ./autogen.sh --noconfigure |
@cd /tmp/$(PACKAGE)-$(VERSION); ./autogen.sh --noconfigure |
| @cd /tmp; tar czSpf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION) |
@cd /tmp; tar czSpf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION) |
| @rm -rf /tmp/$(PACKAGE)-$(VERSION) |
@rm -rf /tmp/$(PACKAGE)-$(VERSION) |