# Copyright (C) 1994, Index Data I/S # All rights reserved. # Sebastian Hammer, Adam Dickmeiss # $Id: Makefile,v 1.9 1995-04-28 14:15:36 quinn Exp $ # Define -DUSE_XTIMOSI to enable the xtimosi functionality. Remeber to # also modify the makefiles under yazlib/ and server/ (according the # comments found there). Uncomment RFC1006. DEFS=-DUSE_XTIMOSI RFC1006=rfc1006 #CC= SHELL=/bin/sh MAKE=make SUBDIR=util odr asn $(RFC1006) ccl yazlib server makelib all: for i in $(SUBDIR); do cd $$i; if $(MAKE) CFLAGS="$(CFLAGS) $(DEFS)"; then cd ..; else exit 1; fi; done dep depend: for i in $(SUBDIR); do cd $$i; if $(MAKE) depend; then cd ..; else exit 1; fi; done clean: for i in $(SUBDIR); do (cd $$i; $(MAKE) clean); done cleanup: rm -f `find $(SUBDIR) -name "*.[oa]" -print` rm -f `find $(SUBDIR) -name "core" -print` rm -f `find $(SUBDIR) -name "errlist" -print` rm -f `find $(SUBDIR) -name "a.out" -print` distclean: cleanup clean for i in $(SUBDIR); do (cd $$i; \ mv Makefile Makefile.old; \ sed '/^#Depend/q' Makefile; \ rm Makefile.old); done usedepend1: for i in $(SUBDIR); do (cd $$i; \ mv Makefile Makefile.tmp; \ sed 's/^if/#if/' Makefile; \ rm Makefile.tmp); done usedepend2: for i in $(SUBDIR); do (cd $$i; \ mv Makefile Makefile.tmp; \ sed '/^#Depend/q' Makefile; \ rm Makefile.tmp); done wc: wc `find . -name '*.[ch]'`