head     1.3;
branch   ;
access   ;
symbols  ;
locks    ;
comment  @# @;


1.3
date     91.01.09.13.10.09;  author bruce;  state Exp;
branches ;
next     1.2;

1.2
date     91.01.09.13.09.13;  author bruce;  state Exp;
branches ;
next     1.1;

1.1
date     91.01.09.13.02.33;  author bruce;  state Exp;
branches ;
next     ;


desc
@Initial revision is as distributed with Dynix Source V3.0.17,
    file dated Jan 28 1986.
@


1.3
log
@Changed installation pathnames (UBIN, ULIB) to be /usr/5bin and /usr/5lib,
    to keep this stuff separate from UCB directories.
Note: Done only to install cflow.sh (`make /usr/5bin/cflow`); other
    changes would be required to build this under UCB universe.
    See ./install_cflow (local addition) for instructions for installing
    a working cflow.
@
text
@# $Id: Makefile,v 1.2 91/01/09 13:09:13 bruce Exp $

DESTDIR	= $(ATT_DESTDIR)
CC	= $(ATT_CC)
CFLAGS	= -O -DFLEXNAMES -DUNIX5 $(ATT_INCLUDE)

FILES	= Makefile README cflow.sh dag.c lpfx.c nmf.c flip.c
ALL	= dag lpfx nmf flip
LINT	= ../lint
MIP	= ../cc/pcc/mip
LDFLAGS =
IC	= install -c $? $@@
I	= install -s $? $@@

UBIN	= $(DESTDIR)/usr/5bin
ULIB	= $(DESTDIR)/usr/5lib

IFILES	=\
	$(UBIN)/cflow\
	$(ULIB)/dag\
	$(ULIB)/lpfx\
	$(ULIB)/nmf\
	$(ULIB)/flip

all:	$(ALL)

dag:	dag.c
	$(CC) $(CFLAGS) $(LDFLAGS) dag.c -o dag

lpfx:	lpfx.c $(LINT)/lerror.h $(LINT)/lmanifest $(LINT)/lpass2.h \
		$(MIP)/manifest
	$(CC) $(CFLAGS) -I$(LINT) -I$(MIP) $(LDFLAGS) lpfx.c -o lpfx -lmalloc

nmf:	nmf.c
	$(CC) $(CFLAGS) nmf.c $(LDFLAGS) -o nmf

flip:	flip.c
	$(CC) $(CFLAGS) flip.c $(LDFLAGS) -o flip

install:& $(IFILES)
	:

$(UBIN)/cflow:	cflow.sh;	$(IC)
$(ULIB)/dag:	dag;		$(I)
$(ULIB)/lpfx:	lpfx;		$(I)
$(ULIB)/nmf:	nmf;		$(I)
$(ULIB)/flip:	flip;		$(I)

clean:
	-rm -f *.o a.out make.out core

clobber:	clean
	-rm -f $(ALL)
@


1.2
log
@Uses new UBIN or ULIB macros to replace appropriate installation pathnames.
Some cosmetic improvements to whitespace.
Functionally the same as previous revision; done to simplify subsequent
    changes.
@
text
@d1 1
a1 1
# $Id$
d15 2
a16 2
UBIN	= $(DESTDIR)/usr/bin
ULIB	= $(DESTDIR)/usr/lib
@


1.1
log
@Initial revision
@
text
@d1 1
d6 1
d14 4
a17 1
D	= $(DESTDIR)
d19 5
a23 5
	$(D)/usr/bin/cflow\
	$(D)/usr/lib/dag\
	$(D)/usr/lib/lpfx\
	$(D)/usr/lib/nmf\
	$(D)/usr/lib/flip
d43 5
a47 5
$(D)/usr/bin/cflow: cflow.sh; $(IC)
$(D)/usr/lib/dag: dag; $(I)
$(D)/usr/lib/lpfx: lpfx; $(I)
$(D)/usr/lib/nmf: nmf; $(I)
$(D)/usr/lib/flip: flip; $(I)
@
