head	1.5;
access;
symbols;
locks; strict;
comment	@# @;


1.5
date	95.10.13.23.32.37;	author jbev;	state Exp;
branches;
next	1.4;

1.4
date	95.04.19.23.07.58;	author jbev;	state Exp;
branches;
next	1.3;

1.3
date	95.04.17.21.22.49;	author jbev;	state Exp;
branches;
next	1.2;

1.2
date	95.04.17.02.25.44;	author root;	state Exp;
branches;
next	1.1;

1.1
date	95.04.17.01.14.31;	author jbev;	state Exp;
branches;
next	;


desc
@Initial RCS file.
@


1.5
log
@Add makelib label.
Change makelib to newlib label to delete only load modules.
Change mode to 775 from 755.
@
text
@#~!Makefile for DIFF
# Name:  Makefile Part No.: _______-____r
#
# Copyright 1995 - J B Systems, Morrison, CO
#
# The recipient of this product specifically agrees not to distribute,
# disclose, or disseminate in any way, to any one, nor use for its own
# benefit, or the benefit of others, any information contained  herein
# without the expressed written consent of J B Systems.
#
#                     RESTRICTED RIGHTS LEGEND
#
# Use, duplication, or disclosure by the Government is  subject  to
# restriction  as  set forth in paragraph (b) (3) (B) of the Rights
# in Technical Data and Computer Software  Clause  in  DAR  7-104.9
# (a).
#

#ident	"$Id: makefile,v 1.4 1995/04/19 23:07:58 jbev Exp jbev $"

# $Log $
#

# Make parameters when using NBC on UNIX

ROOT = /
TARGET = /system/bin
SOURCE = .
PREFIX = nb
INCLUDE = /u/cinclude
SINCLUDE = $(INCLUDE)/sys
SBIN = /system/system
BIN = /system/bin
UBIN = /system/bin
LIB = /system/bin
YBIN = /system/bin
CPP = $(LIB)/$(PREFIX)cpp
CPFLAGS = -M
CC = $(UBIN)/$(PREFIX)cc
CFLAGS = -DMPX
LD = $(UBIN)/$(PREFIX)cat
LDFLAGS =
YACC = $(YBIN)/$(PREFIX)yacc
YFLAGS =
MAKEFILE = makefile

# Fill in with correct information

OBJECTS = diff.o diffh.o cmp.o sdiff.o

HDRS = diff.h

SRCS = diff.c diffh.c cmp.c sdiff.c

MAIN = diff diffh cmp sdiff

ALL:	all
all:	$(MAIN)
	$(BIN)/echo $(MAIN) is up to date.

diff:	$(MAKEFILE) diff.o diff.h
	$(CC) $(LDFLAGS) diff.o -o diff -Ydiffmap
	$(BIN)/chmod 775 diff
	$(BIN)/chgrp system diff
	$(BIN)/chown system diff

diffh:	$(MAKEFILE) diffh.o
	$(CC) $(LDFLAGS) diffh.o -o diffh -Ydiffhmap
	$(BIN)/chmod 775 diffh
	$(BIN)/chgrp system diffh
	$(BIN)/chown system diffh

cmp:	$(MAKEFILE) cmp.o
	$(CC) $(LDFLAGS) cmp.o -o cmp -Ycmpmap
	$(BIN)/chmod 775 cmp
	$(BIN)/chgrp system cmp
	$(BIN)/chown system cmp

sdiff:	$(MAKEFILE) sdiff.o
	$(CC) $(LDFLAGS) sdiff.o -o sdiff -Ysdiffmap
	$(BIN)/chmod 775 sdiff
	$(BIN)/chgrp system sdiff
	$(BIN)/chown system sdiff

CLEAN:  clean
clean:
	$(BIN)/rm -f $(OBJECTS)

CLOBBER: clobber
clobber: clean
	$(BIN)/rm -f $(MAIN)
	$(BIN)/rm -f diffmap diffhmap cmpmap sdiffmap

NEWLIB: newlib
newlib:
	$(BIN)/rm -f $(MAIN)
	$(BIN)/rm -f diffmap diffhmap cmpmap sdiffmap

DEPEND: depend
depend: $(SRCS) $(HDRS) $(MAKEFILE)
	$(BIN)/mkdep $(MAKEFILE) >dep.out;
	@@for i in $(SRCS); do \
	$(BIN)/echo "# Source file '$$i'" >> dep.out; \
	$(CPP) $(CPFLAGS) $$i >> dep.out; \
	done;
	$(BIN)/echo "# End of dependencies" >> dep.out;
	$(BIN)/mv dep.out $(MAKEFILE);

INSTALL: install
install: all
	$(BIN)/cp $(MAIN) $(SBIN)
	$(BIN)/cp $(MAIN) $(BIN)

DELETE: delete
delete:	clobber
	$(BIN)/rm -f $(SRCS) $(HDRS) $(MAKEFILE)

# DO NOT DELETE THIS LINE -- the dependencies begin here
@


1.4
log
@Remove touch commands.
@
text
@d19 1
a19 1
#ident	"$Id: makefile,v 1.3 1995/04/17 21:22:49 jbev Exp jbev $"
d63 3
a65 4
#	$(BIN)/chmod 755 diff
#	$(BIN)/chgrp system diff
#	$(BIN)/chown system diff
#	$(BIN)/touch diff
d69 3
a71 4
#	$(BIN)/chmod 755 diffh
#	$(BIN)/chgrp system diffh
#	$(BIN)/chown system diffh
#	$(BIN)/touch diffh
d75 3
a77 4
#	$(BIN)/chmod 755 cmp
#	$(BIN)/chgrp system cmp
#	$(BIN)/chown system cmp
#	$(BIN)/touch cmp
d81 3
a83 4
#	$(BIN)/chmod 755 sdiff
#	$(BIN)/chgrp system sdiff
#	$(BIN)/chown system sdiff
#	$(BIN)/touch sdiff
d91 5
@


1.3
log
@Fix make clobber.
@
text
@d4 1
a4 1
# Copyright 1994 - J B Systems, Morrison, CO
d19 1
a19 1
#ident	"$Id: makefile,v 1.2 1995/04/17 02:25:44 root Exp jbev $"
d66 1
a66 1
	$(BIN)/touch diff
d73 1
a73 1
	$(BIN)/touch diffh
d80 1
a80 1
	$(BIN)/touch cmp
d87 1
a87 1
	$(BIN)/touch sdiff
@


1.2
log
@Add cmd & sdiff to makefile.
@
text
@d19 1
a19 1
#ident	"$Id: makefile,v 1.1 1995/04/17 01:14:31 jbev Exp root $"
d75 1
a75 1
diff:	$(MAKEFILE) cmp.o
d82 1
a82 1
diff:	$(MAKEFILE) sdiff.o
d96 1
a96 1
	$(BIN)/rm -f diffmap diffhmap cmpdiff sdiffmap
@


1.1
log
@Initial revision
@
text
@d19 1
a19 1
#ident	"$Id:$"
d49 1
a49 1
OBJECTS = diff.o diffh.o
d53 1
a53 1
SRCS = diff.c diffh.c
d55 1
a55 1
MAIN = diff diffh
d62 26
a87 12
	$(CC) $(LDFLAGS) $(OBJECTS) -o diff -Ydiffmap
#	$(BIN)/chmod 755 $(MAIN)
#	$(BIN)/chgrp bin $(MAIN)
#	$(BIN)/chown bin $(MAIN)
	$(BIN)/touch $(MAIN)

diffh:	$(MAKEFILE) $(OBJECTS)
	$(CC) $(LDFLAGS) $(OBJECTS) -o diffh -Ydiffhmap
#	$(BIN)/chmod 755 $(MAIN)
#	$(BIN)/chgrp bin $(MAIN)
#	$(BIN)/chown bin $(MAIN)
	$(BIN)/touch $(MAIN)
d96 1
a117 1

@
