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


1.8
date	95.03.17.17.42.26;	author jbev;	state Exp;
branches;
next	1.7;

1.7
date	95.03.16.23.55.56;	author jbev;	state Exp;
branches;
next	1.6;

1.6
date	95.03.10.18.07.44;	author jbev;	state Exp;
branches;
next	1.5;

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

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

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

1.2
date	95.03.07.23.42.15;	author jbev;	state Exp;
branches;
next	1.1;

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


desc
@Initial version checkin.
@


1.8
log
@Remove cassg for awhile.
@
text
@#~!Makefile for nblib
# 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.7 1995/03/16 23:55:56 jbev Exp jbev $"

# $Log: Makefile,v $
# Revision 1.7  1995/03/16  23:55:56  jbev
# Add unixio.h and unixio.c.
#
# Revision 1.6  1995/03/10  18:07:44  jbev
# Added last of files.
#
# Revision 1.5  1995/03/08  00:18:16  jbev
# Add more files.
#
# Revision 1.4  1995/03/08  00:04:49  jbev
# Fix dependencies for molib/modir.
#
# Revision 1.3  1995/03/07  23:58:14  jbev
# Add dependencies for prefile.
#
# Revision 1.2  1995/03/07  23:42:15  jbev
# Correct some typos.
#
# Revision 1.1  1995/03/07  23:10:40  jbev
# Initial revision
#
#

# Make parameters when running on Unix

ROOT = /system/system
TARGET = /system/bin
SOURCE = .
PREFIX = nb
INCLUDE = /system/$(PREFIX)include
SINCLUDE = $(INCLUDE)
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 -Ui386
LD = $(UBIN)/$(PREFIX)nbcat
LDFLAGS = -YXXXXmap
YACC = $(YBIN)/$(PREFIX)yacc
YFLAGS =
CLIBPREFIX = mo
MAKEFILE = Makefile

# Fill in with correct information

HDRS = unixio.h

OBJ_A = c.srt.o c.srte.o pnpars.o

SRC_A = c.srt.S c.srte.S pnpars.S

OBJ_C = ctscan.o getcwvd.o exec.o mpxini.o getpid.o unixio.o #cassg.o

SRC_C = ctscan.c getcwvd.c exec.c mpxini.c getpid.c unixio.c #cassg.c

SRCS = $(SRC_A) $(SRC_C)

MAIN = $(OBJ_A) $(OBJ_C)

ALL:	all

all:	prefile $(CLIBPREFIX)lib $(CLIBPREFIX)dir $(MAIN)
	$(BIN)/ar -rc $(CLIBPREFIX) $(OBJ_A)
	$(BIN)/ar -rv $(CLIBPREFIX) $(OBJ_C)
	$(BIN)/echo $(CLIBPREFIX)lib/$(CLIBPREFIX)dir are up to date.

$(CLIBPREFIX)lib:
	$(BIN)/touch $(CLIBPREFIX)lib

$(CLIBPREFIX)dir:
	$(BIN)/touch $(CLIBPREFIX)dir

CLEAN:  clean

clean:
	$(BIN)/rm -f $(OBJ_A)
	$(BIN)/rm -f $(OBJ_C)

CLOBBER: clobber

clobber: clean
	$(BIN)/rm -f $(CLIBPREFIX)lib
	$(BIN)/rm -f $(CLIBPREFIX)dir

REALCLEAN: realclean

realclean: clobber
	$(BIN)/rm -f $(SRCS)
	$(BIN)/rm -f $(MAKEFILE)

DEPEND: depend

#depend: $(SRCS) $(HDRS) $(MAKEFILE)
#	$(BIN)/dodep $(CPFLAGS) $(MAKEFILE) $(SRCS) >dep.out
#	$(BIN)/mv dep.out $(MAKEFILE)

depend: $(SRCS) $(HDRS) $(MAKEFILE)
	$(BIN)/mkdep $(MAKEFILE) >dep.out
	@@for i in $(SRC_A); do \
	$(BIN)/echo "# Source file '$$i'" >> dep.out; \
	$(CPP) $(CPFLAGS) $$i >> dep.out; \
	done;
	@@for i in $(SRC_C); 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 $(CLIBPREFIX)lib $(BIN)/$(CLIBPREFIX)lib
	$(BIN)/cp $(CLIBPREFIX)dir $(BIN)/$(CLIBPREFIX)dir

# Source file 'c.srt.S'
c.srt.o: prefile c.srt.S
	$(CC) -Pprefile -c c.srt.S -o c.srt.o

# Source file 'c.srte.S'
c.srte.o: prefile c.srte.S
	$(CC) -Pprefile -c c.srte.S -o c.srte.o

# Source file 'pnpars.S'
pnpars.o: prefile pnpars.S
	$(CC) -Pprefile -c pnpars.S -o pnpars.o

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


1.7
log
@Add unixio.h and unixio.c.
@
text
@d19 1
a19 1
#ident	"$Id: Makefile,v 1.6 1995/03/10 18:07:44 jbev Exp jbev $"
d22 3
d77 1
a77 1
OBJ_C = ctscan.o getcwvd.o exec.o mpxini.o getpid.o cassg.o unixio.o
d79 1
a79 1
SRC_C = ctscan.c getcwvd.c exec.c mpxini.c getpid.c cassg.c unixio.c
@


1.6
log
@Added last of files.
@
text
@d19 1
a19 1
#ident	"$Id: Makefile,v 1.5 1995/03/08 00:18:16 jbev Exp jbev $"
d22 3
d68 1
a68 1
HDRS = 
d74 1
a74 1
OBJ_C = ctscan.o getcwvd.o exec.o mpxini.o getpid.o cassg.o
d76 1
a76 1
SRC_C = ctscan.c getcwvd.c exec.c mpxini.c getpid.c cassg.c
@


1.5
log
@Add more files.
@
text
@d19 1
a19 1
#ident	"$Id: Makefile,v 1.4 1995/03/08 00:04:49 jbev Exp jbev $"
d22 3
d67 1
a67 1
OBJ_A = c.srt.o c.srte.o
d69 1
a69 1
SRC_A = c.srt.S c.srte.S
d71 1
a71 1
OBJ_C = ctscan.o getcwvd.o exec.o mpxini.o getpid.o
d73 1
a73 1
SRC_C = ctscan.c getcwvd.c exec.c mpxini.c getpid.c
d142 4
@


1.4
log
@Fix dependencies for molib/modir.
@
text
@d19 1
a19 1
#ident	"$Id: Makefile,v 1.3 1995/03/07 23:58:14 jbev Exp jbev $"
d22 3
d68 1
a68 1
OBJ_C = ctscan.o
d70 1
a70 1
SRC_C = ctscan.c
@


1.3
log
@Add dependencies for prefile.
@
text
@d19 1
a19 1
#ident	"$Id: Makefile,v 1.2 1995/03/07 23:42:15 jbev Exp jbev $"
d22 3
d75 1
a75 1
all:	files $(MAIN)
d80 1
a80 1
files:	prefile $(CLIBPREFIX)lib $(CLIBPREFIX)dir
d82 2
a127 2

#prefile:
@


1.2
log
@Correct some typos.
@
text
@d19 1
a19 1
#ident	"$Id: Makefile,v 1.1 1995/03/07 23:10:40 jbev Exp jbev $"
d22 3
d77 1
a77 1
files:
d124 1
a124 1
prefile:
@


1.1
log
@Initial revision
@
text
@d19 1
a19 1
#ident	"$Id$"
d21 4
a24 1
# $Log: $
d70 2
a71 2
	$(bin)ar -rc $(CLIBPREFIX) $(OBJ_A)
	$(bin)ar -rv $(CLIBPREFIX) $(OBJ_C)
d81 2
a82 2
	$(BIN)/rm -f $(OBS_A)
	$(BIN)/rm -f $(OBS_C)
@
