Net2/usr/src/contrib/isode/others/quipu/image/Makefile

###############################################################################
#   Instructions to Make, for compilation of ISODE image programs
###############################################################################

###############################################################################
#
# $Header: /f/osi/others/quipu/image/RCS/Makefile,v 7.5 91/02/22 09:33:17 mrose Interim $
#
#
# $Log:	Makefile,v $
# Revision 7.5  91/02/22  09:33:17  mrose
# Interim 6.8
# 
# Revision 7.4  91/01/24  14:52:05  mrose
# update
# 
# Revision 7.3  90/12/23  23:42:24  mrose
# one-more-time
# 
# Revision 7.2  90/12/23  18:46:20  mrose
# update
# 
# Revision 7.1  90/11/20  15:33:36  mrose
# update
# 
# Revision 7.0  89/11/23  21:59:56  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.
#
###############################################################################


.c.o:;		$(CC) $(CFLAGS) -c $*.c


###############################################################################
# Programs and Libraries
###############################################################################

LIBES	=	$(TOPDIR)others/quipu/photo/libphoto.a $(TOPDIR)libdsap.a \
			$(TOPDIR)libisode.a -lX11
LLIBS   =	$(TOPDIR)llib-ldsap $(TOPDIR)llib-lisode # -lX11


###############################################################################
# Files
###############################################################################

HFILES	=	imagesbr.h
CFILES	=	xface.c xwho.c imagesbr.c


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

all:		xface xwho
inst-all:	inst-xface inst-xwho manuals
install:	inst-all clean
lint:		l-xface l-xwho


##################################################################
# xface
##################################################################

inst-xface:	$(BINDIR)xface

$(BINDIR)xface:	xface
		-cp $@ zxface
		-rm -f $@
		cp xface $@
		-@ls -gls $@
		-@echo ""

xface:		xface.o imagesbr.o \
			$(TOPDIR)others/quipu/photo/libphoto.a \
			$(LIBDSAP) $(LIBISODE)
		$(LDCC) $(LDFLAGS) -o $@ xface.o imagesbr.o \
			$(TOPDIR)others/quipu/photo/libphoto.a \
			$(LIBDSAP) $(LIBISODE) $(LSOCKET) -lX11 $(LIBGDBM)

l-xface:;	$(LINT) $(LFLAGS) xface.c imagesbr.c $(LLIBS) \
			| grep -v "warning: possible pointer alignment problem"

xface.o:	imagesbr.h
imagesbr.o:	imagesbr.h


##################################################################
# xwho
##################################################################

inst-xwho:	$(BINDIR)xwho

$(BINDIR)xwho:	xwho
		-cp $@ zxwho
		-rm -f $@
		cp xwho $@
		-@ls -gls $@
		-@echo ""

xwho:		xwho.o imagesbr.o \
			$(TOPDIR)others/quipu/photo/libphoto.a \
			$(LIBDSAP) $(LIBISODE)
		$(LDCC) $(LDFLAGS) -o $@ xwho.o imagesbr.o \
			$(TOPDIR)others/quipu/photo/libphoto.a \
			$(LIBDSAP) $(LIBISODE) $(LSOCKET) -lX11 $(LIBGDBM)

l-xwho:;	$(LINT) $(LFLAGS) xwho.c imagesbr.c $(LLIBS) \
			| grep -v "warning: possible pointer alignment problem"

xwho.o:		imagesbr.h


################################################################
# manual pages
################################################################

MANUALS	=	xface.1c xwho.1c

manuals:;	@$(UTILDIR)inst-man.sh $(MANOPTS) $(MANUALS)
		-@echo ""


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

clean:;		rm -f *.o *.a xface xwho z* _* core

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

true:;