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


1.9
date	95.05.08.17.41.37;	author jbev;	state Exp;
branches;
next	1.8;

1.8
date	95.03.28.18.21.00;	author root;	state Exp;
branches;
next	1.7;

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

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

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

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

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

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

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


desc
@Initial version checkin.
@


1.9
log
@Change header to molib from nblib.
@
text
@#~!makefile for molib
# 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.8 1995/03/28 18:21:00 root Exp jbev $"

# $Log: makefile,v $
# Revision 1.8  1995/03/28  18:21:00  root
# Fix typo.
#
# Revision 1.7  1995/03/21  17:03:49  jbev
# Only archive c.srte.o, not c.srt.o.
#
# Revision 1.6  1995/03/17  18:56:13  jbev
# Fix some typos.
#
# Revision 1.5  1995/03/17  17:42:26  jbev
# Remove cassg for awhile.
#
# Revision 1.4  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 MPX

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

OBJ_B = 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_B)
	$(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.8
log
@Fix typo.
@
text
@d1 1
a1 1
#~!makefile for nblib
d19 1
a19 1
#ident	"$Id: makefile,v 1.7 1995/03/21 17:03:49 jbev Exp root $"
d22 3
@


1.7
log
@Only archive c.srte.o, not c.srt.o.
@
text
@d19 1
a19 1
#ident	"$Id: makefile,v 1.6 1995/03/17 18:56:13 jbev Exp jbev $"
d22 3
d54 1
a54 1
# Make parameters when running on Unix
d162 1
a162 1
	$(CC) -Pprefile -c pnpars.S -o pnpars.o
@


1.6
log
@Fix some typos.
@
text
@d19 1
a19 1
#ident	"$Id: makefile,v 1.5 1995/03/17 17:42:26 jbev Exp jbev $"
d22 3
d81 2
d96 1
a96 1
	$(BIN)/ar -rc $(CLIBPREFIX) $(OBJ_A)
@


1.5
log
@Remove cassg for awhile.
@
text
@d19 1
a19 1
#ident	"$Id: makefile,v 1.4 1995/03/16 23:55:56 jbev Exp jbev $"
d22 3
d78 1
a78 1
SRC_A = c.srt.S c.srte.S pnpars.S
@


1.4
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.3
log
@Add unixio.c & unixio.h.
@
text
@d19 1
a19 1
#ident	"$Id: makefile,v 1.2 1995/03/08 00:18:16 jbev Exp jbev $"
d22 4
a25 1
# Revision 1.2  1995/03/08  00:18:16  jbev
d42 1
a42 1
# Make parameters when running on MPX
d58 1
a58 1
CFLAGS = -DMPX
d68 1
a68 1
HDRS =  unixio.h
d70 1
a70 1
OBJ_A = c.srt.o c.srte.o
d72 1
a72 1
SRC_A = c.srt.s c.srte.s
d74 1
a74 1
OBJ_C = ctscan.o getcwvd.o exec.o mpxini.o getpid.o unixio.o
d76 1
a76 1
SRC_C = ctscan.c getcwvd.c exec.c mpxini.c getpid.c unixio.c
d145 4
@


1.2
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
d65 1
a65 1
HDRS = 
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
@


1.1
log
@Initial revision
@
text
@d1 2
a2 2
#~!Makefile for nblib
# Name:  Makefile Part No.: _______-____r
d19 1
a19 1
#ident	"$Id$"
d21 13
a33 1
# $Log: $
d68 1
a68 1
OBJ_C = ctscan.o
d70 1
a70 1
SRC_C = ctscan.c
d78 3
a80 3
all:	files $(MAIN)
	$(bin)ar -rc $(CLIBPREFIX) $(OBJ_A)
	$(bin)ar -rv $(CLIBPREFIX) $(OBJ_C)
d83 1
a83 1
files:
d85 2
d92 2
a93 2
	$(BIN)/rm -f $(OBS_A)
	$(BIN)/rm -f $(OBS_C)
a130 2

prefile:
@
