Changes file for /usr/local/src/kcl/makefile
Created on Tue Mar 26 07:35:15 1991
Usage \n@s[Original text\n@s|Replacement Text\n@s]
See the file rascal.ics.utexas.edu:/usr2/ftp/merge.c
for a program to merge change files.  Anything not between
"\n@s[" and  "\n@s]" is a simply a comment.
This file was constructed using emacs and  merge.el
Enhancements Copyright (c) W. Schelter All rights reserved.
   by (Bill Schelter)  wfs@carl.ma.utexas.edu 


****Change:(orig (19 19 a))
@s[#	To revise KCL, the following command is enough.
#
#		% make


@s|#	To revise KCL, the following command is enough.
#
#		% make

# begin makedefs
AKCLDIR=/usr/local/src/akcl-1-599
SHELL=/bin/sh
MACHINE=NeXT
LBINDIR=/usr/local/bin

# For NeXT Operating system 2.

OFLAG= -O
ODIR_DEBUG=  -g
LIBS	= -lm -lg 

CC = cc -DVOL=volatile -I$(AKCLDIR)/o -fwritable-strings

LDCC= ld -noseglinkedit -segprot __TEXT rwx rwx

ODIR_DEBUG= -g

EXTRA_OTARGETS= sbrkNeXT.o unexNeXT.o seekNeXT.o
EXTRAS= $(ODIR)/sbrkNeXT.o $(ODIR)/unexNeXT.o $(ODIR)/seekNeXT.o

MAINDIR = /usr/local/src/kcl
CFLAGS	= -c $(DEFS)  -I../h

MAIN    = ../o/main.o


RSYM	= rsym
SFASL	= $(ODIR)/sfaslNeXT.o

INITFORM=(si::build-symbol-table)(load "../lsp/setdoc.lsp")

MPFILES= $(MPDIR)/mpi-bsd68k.o   $(MPDIR)/libmport.a

# Use symbolic links
SYMB=-s
# the  make to use for saved_kcp the profiler.
#KCP=kcp-sun
KCP=kcp-next

NULLFILE = ../h/secondary_sun_magic
MAINDIR = /usr/local/src/kcl
# end makedefs









@s]


****Change:(orig (29 34 c))
@s[all:	/usr/include/cmpinclude.h
	(cd $(BINDIR); make)
	(cd $(ODIR); make)
	(cd $(LSPDIR); make)

@s,	(cd $(CMPDIR); make)
	(cd $(PORTDIR); make)

@s|all:   
	make sources
	make command
	(cd $(BINDIR); make all)
	(cd mp ; make all)
	(cd $(ODIR); make all)
	(cd $(LSPDIR); make all)
	(cd $(CMPDIR); make all)
	(cd $(PORTDIR); make saved_kcl)

@s]


****Change:(orig (37 38 c))
@s[	@echo "su and make cmpinclude.h"
	exit 1

@s|	@ if [ "$(SU)" != "SKIP" ] ; then echo "su and make cmpinclude.h" ;\
	exit 1 ; \
	else echo "Warning: ask root to cp $(HDIR)/cmpinclude.h /usr/include/cmpinclude.h" \
	;fi

@s]


****Change:(orig (43 43 a))
@s[	cp $(HDIR)/cmpinclude.h /usr/include



@s|	cp $(HDIR)/cmpinclude.h /usr/include





sources: merge
	make -f Smakefile sources

sunview:
	make sources
	merge standard-kcl/unixport/makefile sunv/chang sunv/makefile
	make  "PORTDIR=sunv"

command:
	(cd $(PORTDIR); rm -f ../xbin/akcl ; echo "#!/bin/sh" > ../xbin/akcl; \
	echo "`pwd`/saved_kcl `pwd`/" >> ../xbin/akcl)
	chmod 755 xbin/akcl
	rm -f  xbin/kcl ; ln xbin/akcl xbin/kcl


@s]


****Change:(orig (45 48 c))
@s[	(cd $(PORTDIR); echo "#" > /usr/bin/kcl; \
	echo "`pwd`/saved_kcl `pwd`/" >> /usr/bin/kcl)
	chmod 755 /usr/bin/kcl
	

@s|	cp xbin/kcl $(LBINDIR)
	(cd doc ; make install "LBINDIR=$(LBINDIR)")

@s]


****Change:(orig (51 51 a))
@s[	(cd $(BINDIR); make clean)

@s|	(cd $(BINDIR); make clean)
	(cd mp ; make clean)

@s]

