File:  [CSRG BSD Unix] / 43BSDReno / contrib / isode-beta / others / rtf / Makefile
Revision 1.1: download - view: text, annotated - select for diffs
Tue Apr 24 16:12:56 2018 UTC (8 years, 1 month ago) by root
CVS tags: MAIN, HEAD
Initial revision

###############################################################################
#   Instructions to Make, for compilation of the ISODE RT-file transfer utility
###############################################################################

###############################################################################
#
# $Header: /var/lib/cvsd/repos/CSRG/43BSDReno/contrib/isode-beta/others/rtf/Makefile,v 1.1 2018/04/24 16:12:56 root Exp $
#
#
# $Log: Makefile,v $
# Revision 1.1  2018/04/24 16:12:56  root
# Initial revision
#
# Revision 7.1  90/07/01  21:04:43  mrose
# pepsy
# 
# Revision 7.0  89/11/23  22:10:43  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.
#
###############################################################################


###############################################################################
# Generation Rules for program modules
###############################################################################

PEPYPATH=	-DPEPYPATH

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


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

LIBES	=	$(TOPDIR)libisode.a
LLIBS   =	$(TOPDIR)llib-lisode


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

HFILES	=	rtf.h
CFILES	=	rtf.c rtfd.c rtfsbr.c
PYFILES	=	rtf.py


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

all:		rtfd rtf
inst-all:	inst-rtfd inst-rtf manuals
install:	inst-all clean
lint:		l-rtfd l-rtf


##################################################################
# rtfd
##################################################################

inst-rtfd:	$(SBINDIR)iso.rtf

$(SBINDIR)iso.rtf:	xrtfd
		-cp $@ ziso.rtf
		-rm -f $@
		cp xrtfd $@
		-@ls -gls $@
		-@echo ""

rtfd:		xrtfd

xrtfd:		rtfd.o rtfsbr.o RTF_tables.o
		$(LDCC) $(LDFLAGS)  -o $@ rtfd.o rtfsbr.o RTF_tables.o \
			$(LIBES) $(LSOCKET)

l-rtfd:		RTF_tables.c true
		$(LINT) $(LFLAGS) rtfd.c rtfsbr.c RTF_tables.c $(LLIBS)

rtfd.o:		$(HFILES) RTF-types.h


##################################################################
# rtf
##################################################################

inst-rtf:	$(BINDIR)rtf

$(BINDIR)rtf:	xrtf
		-cp $@ zrtf
		-rm -f $@
		cp xrtf $@
		-@ls -gls $@
		-@echo ""

rtf:		xrtf

xrtf:		rtf.o rtfsbr.o RTF_tables.o
		$(LDCC) $(LDFLAGS) -o $@ rtf.o rtfsbr.o RTF_tables.o \
			$(LIBES) $(LSOCKET)

l-rtf:		RTF_tables.c true
		$(LINT) $(LFLAGS) rtf.c rtfsbr.c RTF_tables.c $(LLIBS)

rtf.o:		$(HFILES) RTF-types.h


################################################################
# librtf
################################################################

RTF_tables.o:	RTF_tables.c RTF-types.h

RTF_tables.c RTF-types.h: rtf.py $(TOPDIR)pepsy/xpepsy
		$(TOPDIR)pepsy/xpepsy -A -f -h -m rtf.py

rtfsbr.o:	$(HFILES)


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

MANUALS	=	rtfd.8c rtf.1c

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


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

clean:;		rm -f *.o *.a RTF* x* z* _* core 

grind:;		iprint Makefile
		tgrind -lc $(HFILES) $(CFILES)
		tgrind -lpepy -d $(TOPDIR)pepy/grindefs $(PYFILES)
		@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.