File:  [CSRG BSD Unix] / 43BSDReno / contrib / isode-beta / others / quipu / uips / manage / 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 Management dish
###############################################################################

###############################################################################
#
# $Header: /var/lib/cvsd/repos/CSRG/43BSDReno/contrib/isode-beta/others/quipu/uips/manage/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.1  90/07/09  14:42:37  mrose
# sync
# 
# Revision 7.0  90/06/26  14:52:30  mrose
# *** empty log message ***
# 
###############################################################################

###############################################################################
#
#                                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.
#
###############################################################################

LIBES   =       libmanage.a $(TOPDIR)libdish.a $(TOPDIR)libquipu.a $(TOPDIR)libdsap.a $(TOPDIR)libisode.a
LLIBS   =       $(TOPDIR)llib-lquipu $(TOPDIR)llib-ldsap $(TOPDIR)llib-lisode

CFILES  =       add_alias.c del_alias.c 
OFILES  =       add_alias.o del_alias.o schema.o attribute.o

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

all:            dish 
inst-all:       inst-dish inst-aliaschk manuals
install:        inst-all clean
lint:           l-dish


###################################################################
# dish
###################################################################

inst-dish:      $(BINDIR)dish_manage

$(BINDIR)dish_manage:	xdish
		-cp $@ zxdish_manage
		-rm -f $@
		cp xdish $@
		-@ls -gls $@
		-@echo ""

dish:		xdish

xdish:		$(LIBES) dish.o 
		$(LDCC) $(LDFLAGS) -o $@ dish.o $(LIBES) $(LSOCKET) 

l-dish:         $(CFILES) true
		$(LINT) $(LFLAGS) $(LLIBS) $(CFILES)

dish.o:		$(TOPDIR)quipu/dish/dish.c
		$(CC) -g $(CFLAGS) -DMANAGE -c $(TOPDIR)quipu/dish/dish.c

schema.o:	$(TOPDIR)/quipu/schema.c
		$(CC) $(CFLAGS) -c $(TOPDIR)quipu/schema.c

attribute.o:	$(TOPDIR)/quipu/attribute.c
		$(CC) $(CFLAGS) -c $(TOPDIR)quipu/attribute.c


###################################################################
# libmanage
###################################################################

inst-libmanage:	$(LIBDIR)libmanage.a

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

libmanage:       libmanage.a

libmanage.a:     managevrsn.o
		-rm -f $@
		@$(UTILDIR)make-lib.sh $(SYSTEM) $(ARFLAGS) $@ $(OFILES) \
			managevrsn.o
#		-@rm -f $(TOPDIR)libmanage.a $(TOPDIR)llib-lmanage
#		-@$(LN) libmanage.a $(TOPDIR)libmanage.a
#		-@$(LN) llib-lmanage $(TOPDIR)llib-lmanage
		-@echo "QUIPU-MANAGE library built normally"

managevrsn.c:    $(OFILES)
		@$(UTILDIR)version.sh manage > $@

l-libmanage:     $(CFILES) true
		$(LINT) $(LFLAGS) $(CFILES) managevrsn.c $(LLIBS)

################################################################
# inst-aliaschk
################################################################

inst-aliaschk: $(BINDIR)alias_chk

$(BINDIR)alias_chk:	alias_chk
		-cp $@ zalias_chk
		-rm -f $@
		cp alias_chk $@
		-@ls -gls $@
		-@echo ""

###################################################################
# shell version of dish...
###################################################################

inst-shelldish:	$(BINDIR)add_alias $(BINDIR)del_alias $(BINDIR)dish

$(BINDIR)add_alias:
		ln $(BINDIR)list $@

$(BINDIR)del_alias:
		ln $(BINDIR)list $@
		
$(BINDIR)dish:	$(BINDIR)dish_manage
		-cp $@ zxdish
		-rm -f $@
		cp xdish $@
		-@ls -gls $@
		-@echo ""

##############################################################
# manuals
##############################################################

manuals:;       echo
		@$(UTILDIR)inst-man.sh $(MANOPTS) add_alias.1c

##############################################################
# clean
##############################################################

clean:;         rm -f *.ph *.o *.a a.out _* x* z* *.orig \
			core managevrsn.c

grind:;         iprint Makefile
		tgrind -lc $(CFILES)
		@echo $(MANUALS) | \
			tr " " "\012" | \
			sed -e "s%.*%itroff -man &%" | \
			sh -ve

true:;

unix.superglobalmegacorp.com

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