File:  [CSRG BSD Unix] / 43BSDReno / contrib / isode-beta / dsap / Makefile
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:56 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno

###############################################################################
#   Instructions to Make, for compilation of ISODE DSAP processes
###############################################################################

###############################################################################
#
# $Header: /var/lib/cvsd/repos/CSRG/43BSDReno/contrib/isode-beta/dsap/Makefile,v 1.1.1.1 2018/04/24 16:12:56 root Exp $
#
#
# $Log: Makefile,v $
# Revision 1.1.1.1  2018/04/24 16:12:56  root
# BSD 4.3reno
#
# Revision 7.0  89/11/23  21:31:23  mrose
# Release 6.0
# 
###############################################################################

###############################################################################
#
#                                NOTICE
#
#    Acquisition, use, and distribution of this module and related
#    materials are subject to the restrictions of a license agreement.
#    Consult the Preface in the User's Manual for the full terms of
#    this agreement.
#
###############################################################################

DIRS	=	x500as common net
LIBES   =       libcommon.a libnet.a libx500as.a
LLIBS   =       llib-lcommon llib-lx500as llib-lnet 

##################################################################
# Here it is...
##################################################################

all:		sub-all libdsap
inst-all:       inst-libdsap inst-dsaptailor inst-oidtable

parallel:	sub-para libdsap

sub-para:;	@for i in $(DIRS); do (cd $$i; $(MAKE) PARALLEL=par- all) & done; wait

install:        inst-all clean

clean:		sub-clean
	        rm -f lib*.a llib-l* _* *.tmp *.orig *.o z* dsapvrsn.c

sub-all:
		@for i in $(DIRS); \
		    do (echo "cd $$i; $(MAKE) all"; \
			      cd $$i; $(MAKE) all); \
		    done

sub-inst-all:
		@for i in $(DIRS); \
		    do (echo "cd $$i; $(MAKE) inst-all"; \
			      cd $$i; $(MAKE) inst-all); \
		    done

sub-clean:
		@for i in $(DIRS); \
		    do (echo "cd $$i; $(MAKE) clean"; \
			      cd $$i; $(MAKE) clean); \
		    done

lint grind:
		@for i in $(DIRS); \
		    do (echo "cd $$i; $(MAKE) $@"; \
			      cd $$i; $(MAKE) $@); \
		    done

###################################################################
# libdsap
###################################################################

inst-libdsap:   $(LIBDIR)libdsap.a $(LINTDIR)llib-ldsap

$(LIBDIR)libdsap.a:     libdsap.a
		-rm -f $@
		cp libdsap.a $@
		@$(UTILDIR)make-lib.sh $(SYSTEM) $@ -ranlib
		-@ls -gls $@
		-@echo ""

$(LINTDIR)llib-ldsap:   llib-ldsap
		-cp $@ zllib-ldsap
		-rm -f $@
		sed -e 's%#include "\(.*\)"%#include "$(INCDIR)\1"%' \
			< llib-ldsap | \
			sed -e 's%#include "/usr/include/\(.*\)"%#include <\1>%' > $@
		@$(UTILDIR)inst-lint.sh $(SYSTEM) $(OPTIONS) $@
		-@ls -gls $@ [email protected]
		-@echo ""

libdsap:        libdsap.a llib-ldsap

libdsap.a:      dsapvrsn.o
		-rm -f $@ $(TOPDIR)libdsap.a
		-rm -rf tmp
		-mkdir tmp
		$(LN) dsapvrsn.o tmp
		for i in $(LIBES); do (cd tmp; ar x ../$$i; \
		    ../$(UTILDIR)make-lib.sh -quick $(SYSTEM) $(ARFLAGS) ../$@ *.o; \
		    rm -f *); done
		$(UTILDIR)make-lib.sh $(SYSTEM) $@ -ranlib
		-rm -rf tmp
		-@rm -f $(TOPDIR)libdsap.a
		-@$(LN) $@ $(TOPDIR)libdsap.a
		-@ls -l $@
		-@echo "DSAP library built normally"

llib-ldsap:     $(LLIBS)
		-@echo '/* llib-ldsap - lint library for -ldsap */' > $@
		-@echo '' >> $@
		cat $(LLIBS) >> $@
		-@rm -f $(TOPDIR)llib-ldsap
		-@$(LN) llib-ldsap $(TOPDIR)llib-ldsap

dsapvrsn.c:     $(LIBES)
		@$(UTILDIR)version.sh dsap > $@


###################################################################
# dsaptailor/oidtable
###################################################################

inst-dsaptailor:    $(ETCDIR)dsaptailor

$(ETCDIR)dsaptailor:    dsaptailor
		-cp $@ zdsaptailor
		cp dsaptailor $@
		-@ls -gls $@
		-@echo ""

inst-oidtable:  $(ETCDIR)oidtable.at $(ETCDIR)oidtable.gen $(ETCDIR)oidtable.oc

$(ETCDIR)oidtable.at: oidtable.at oidtable.at.local 
		-cp $@ zoidtable.at
		cat oidtable.at oidtable.at.local > $@
		-@ls -gls $@
		-@echo ""

$(ETCDIR)oidtable.gen: oidtable.gen oidtable.gen.local
		-cp $@ zoidtable.gen
		cat oidtable.gen oidtable.gen.local > $@
		-@ls -gls $@
		-@echo ""

$(ETCDIR)oidtable.oc: oidtable.oc oidtable.oc.local
		-cp $@ zoidtable.oc
		cat oidtable.oc oidtable.oc.local > $@
		-@ls -gls $@
		-@echo ""



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.