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


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


desc
@Initial moe checkin.
@


1.1
log
@Initial revision
@
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.8 1995/03/17 17:42:26 jbev Exp $"

# $Log: Makefile,v $
# 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 -F
LD = $(UBIN)/$(PREFIX)nbcat
LDFLAGS = -YXXXXmap
YACC = $(YBIN)/$(PREFIX)yacc
YFLAGS =
CLIBPREFIX = moe
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
@
