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


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

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

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


desc
@New makefile for nbcas.
@


1.3
log
@Changed mode to 775 from 755.
@
text
@#~!makefile for nbcas
# 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.2 1995/03/28 22:10:35 jbev Exp jbev $"

# $Log: makefile,v $
# Revision 1.2  1995/03/28  22:10:35  jbev
# Need -C option for assembler.
#
# Revision 1.1  1995/03/28  21:52:58  jbev
# Initial revision
#
#

# Make parameters when running on MPX

ROOT = /system/system
TARGET = /system/system
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 =
LD = $(UBIN)/$(PREFIX)nbcat
LDFLAGS = -Ynbcasmap
YACC = $(YBIN)/$(PREFIX)yacc
YFLAGS =
MAKEFILE = makefile

# Fill in with correct information

OBJECTS = nbcas.o

HDRS =

PRE = mpxpre

SRCS = nbcas.s

MAIN = nbcas

ALL:	all

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

$(MAIN):	$(MAKEFILE) $(OBJECTS)
	$(CC) $(LDFLAGS) $(OBJECTS) -o $(MAIN)
	$(BIN)/chmod 775 $(MAIN)
	$(BIN)/chgrp system $(MAIN)
	$(BIN)/chown system $(MAIN)

CLEAN:  clean

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

CLOBBER: clobber

clobber: clean
	$(BIN)/rm -f $(MAIN)

DEPEND: depend

depend: $(SRCS) $(PRE) $(MAKEFILE)
	$(BIN)/mkdep $(MAKEFILE) >dep.out;
	echo "nbcas.o: nbcas.s $(PRE)" >> dep.out;
	echo "	$(CC) $(CFLAGS) -C -P$(PRE) nbcas.s" >> dep.out;
	$(BIN)/echo "# End of dependencies" >> dep.out;
	$(BIN)/mv dep.out $(MAKEFILE)

INSTALL: install

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

#nbcas.o: nbcas.s $(PRE)
#	$(CC) $(CFLAGS) -C -P$(PRE) nbcas.s 

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


1.2
log
@Need -C option for assembler.
@
text
@d19 1
a19 1
#ident	"$Id: makefile,v 1.1 1995/03/28 21:52:58 jbev Exp jbev $"
d22 3
d72 1
a72 1
	$(BIN)/chmod 755 $(MAIN)
@


1.1
log
@Initial revision
@
text
@d19 1
a19 1
#ident	"$Id: makefile,v 1.0 1995/03/28 21:29:35 jbev Exp $"
d21 4
a24 1
# $Log: $
d43 1
a43 1
CFLAGS = 
d88 1
a88 1
	echo "	$(CC) $(CFLAGS) -P$(PRE) nbcas.s" >> dep.out;
d98 1
a98 1
#	$(CC) $(CFLAGS) -P$(PRE) nbcas.s 
@
