| version 1.27, 2002/06/15 15:36:26 |
version 1.28, 2002/07/01 10:41:46 |
|
|
| |
|
| PACKAGE = @PACKAGE@ |
PACKAGE = @PACKAGE@ |
| VERSION = @VERSION@ |
VERSION = @VERSION@ |
| |
|
| CVSTAG = $(PACKAGE)-$(subst .,_,$(VERSION)) |
CVSTAG = $(PACKAGE)-$(subst .,_,$(VERSION)) |
| |
|
| |
|
|
|
| CPP = @CPP@ |
CPP = @CPP@ |
| CXX = @CXX@ |
CXX = @CXX@ |
| CFLAGS = -O2 -Wall -Wshadow -pedantic |
CFLAGS = -O2 -Wall -Wshadow -pedantic |
| CPPFLAGS = |
CPPFLAGS = @CPPFLAGS@ |
| LDFLAGS = |
LDFLAGS = @LDFLAGS@ |
| DEFS = |
DEFS = @DEFS@ |
| INCLUDES = -I$(srcdir) -I$(top_builddir) |
INCLUDES = -I$(srcdir) -I$(top_builddir) |
| |
|
| |
|
| Line 166 HEADERS = $(include_HEADERS) $(noinst_H |
|
| Line 167 HEADERS = $(include_HEADERS) $(noinst_H |
|
| |
|
| # }}} Targets |
# }}} Targets |
| |
|
| all: makefiles configure-scripts $(MANS) lib |
all: configure-scripts makefiles $(MANS) lib |
| |
|
| # create str/ subdir if doesn't exists |
# create str/ subdir if doesn't exists |
| SUBDIR_STR_MAGIC := $(shell mkdir str > /dev/null 2>&1 || :) |
SUBDIR_STR_MAGIC := $(shell mkdir str > /dev/null 2>&1 || :) |
| Line 219 $(top_builddir)/config.status: $(top_src |
|
| Line 220 $(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 265 $(LIBDYNAMICV): $(OBJECTS) |
|
| Line 267 $(LIBDYNAMICV): $(OBJECTS) |
|
| |
|
| .SUFFIXES: |
.SUFFIXES: |
| |
|
| |
|
| mostlyclean-hdr: |
|
| |
|
| clean-hdr: |
|
| |
|
| distclean-hdr: |
|
| cd $(top_builddir) && make $@ |
|
| |
|
| maintainer-clean-hdr: |
|
| |
|
| %.o: %.c $(CONFIG_HEADER) |
%.o: %.c $(CONFIG_HEADER) |
| @echo '$(COMPILE) -c $<'; \ |
@echo '$(COMPILE) -c $<'; \ |
| $(COMPILE) -Wp,-MD,.deps/$(*F).pp -o $@ -c $< |
$(COMPILE) -Wp,-MD,.deps/$(*F).pp -o $@ -c $< |
| Line 284 maintainer-clean-hdr: |
|
| Line 276 maintainer-clean-hdr: |
|
| >> .deps/$(*F).P; \ |
>> .deps/$(*F).P; \ |
| rm .deps/$(*F).pp |
rm .deps/$(*F).pp |
| |
|
| clean-str: |
|
| -cd $(top_builddir)/src/str && rm -f *.o |
|
| |
|
| test: |
test: |
| $(CC) $(INCLUDES) -Wall -g -ggdb -DSELF_CFG -DDEBUG=1 -o test-libcfg+ $(SOURCES) |
$(CC) $(INCLUDES) -Wall -g -ggdb -DSELF_CFG -DDEBUG=1 -o test-libcfg+ $(SOURCES) |
| |
|
|
|
| TAGS: $(HEADERS) $(SOURCES) config.h.in |
TAGS: $(HEADERS) $(SOURCES) config.h.in |
| ctags --output=$@ $(HEADERS) $(SOURCES) |
ctags --output=$@ $(HEADERS) $(SOURCES) |
| |
|
| |
|
| mostlyclean-tags: |
|
| |
|
| clean-tags: |
|
| |
|
| distclean-tags: |
|
| -rm -f TAGS ID |
|
| |
|
| maintainer-clean-tags: |
|
| |
|
| # }}} Section: TAGS |
# }}} Section: TAGS |
| |
|
| # Section: distribution {{{ |
# Section: distribution {{{ |
| Line 458 maintainer-clean-tags: |
|
| Line 437 maintainer-clean-tags: |
|
| # it guarantees that the distribution is self-contained by making another |
# it guarantees that the distribution is self-contained by making another |
| # tarfile. |
# tarfile. |
| distcheck: |
distcheck: |
| cd $(top_builddir) && make $@ |
cd $(top_builddir) && $(MAKE)$@ |
| dist-all: |
dist-all: |
| cd $(top_builddir) && make $@ |
cd $(top_builddir) && $(MAKE) $@ |
| dist: |
dist: |
| cd $(top_builddir) && make $@ |
cd $(top_builddir) && $(MAKE) $@ |
| distdir: |
distdir: |
| cd $(top_builddir) && make $@ |
cd $(top_builddir) && $(MAKE) $@ |
| distdir-permisions: |
distdir-permisions: |
| cd $(top_builddir) && make $@ |
cd $(top_builddir) && $(MAKE) $@ |
| distclean-generic: |
|
| cd $(top_builddir) && make $@ |
|
| distclean: |
|
| cd $(top_builddir) && make $@ |
|
| |
|
| # }}} Section: distribution |
# }}} Section: distribution |
| |
|
|
|
| check: all |
check: all |
| |
|
| |
|
| mostlyclean-generic: |
# Section clean {{{ |
| |
clean: clean-str clean-hdr clean-tags clean-generic clean-lib |
| |
-rm -rf *.o core *.core .deps |
| |
|
| clean-generic: |
clean-str: |
| |
-cd $(top_builddir)/src/str && rm -f *.o |
| |
|
| maintainer-clean-generic: |
clean-hdr: |
| mostlyclean: mostlyclean-hdr mostlyclean-tags mostlyclean-generic |
-rm -f $(top_builddir)/config.h |
| |
|
| clean: clean-str clean-hdr clean-tags clean-generic mostlyclean clean-lib |
clean-tags: |
| -cd $(top_builddir)/src/ && \ |
-rm -f TAGS ID |
| rm -f *.o core *.core ; \ |
|
| rm -rf .deps |
clean-generic: |
| |
|
| clean-lib: |
clean-lib: |
| -rm -f lib* |
-rm -f lib* |
| |
|
| |
|
| |
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: maintainer-clean-hdr maintainer-clean-tags \ |
| maintainer-clean-generic distclean |
maintainer-clean-generic distclean |
| |
@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." |
| -rm -f config.status |
@echo "-----------------------------------------------------------" |
| -rm -f $(PACKAGE)-*.tar.gz |
@echo |
| |
|
| |
maintainer-clean-generic: |
| |
-rm -f $(top_builddir)/config.status $(top_srcdir)/configure |
| |
-rm -f $(top_builddir)/lib$(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 {{{ |
| .PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \ |
.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \ |
|
|
| @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) |