Changes file for /usr/local/src/kcl/./cmpnew/makefile
Created on Wed Mar 27 10:44:35 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 (1 1 c))
@s[.SUFFIXES: .o .c .lsp

@s|.SUFFIXES: .o .c .lsp .lisp .fn

@s]


****Change:(orig (13 13 c))
@s[	cmptype.o cmputil.o cmpvar.o cmpvs.o cmpwt.o


CFLAGS	= -c -O

@s|	cmptype.o cmputil.o cmpvar.o cmpvs.o cmpwt.o


CFLAGS	= -c -O -I../h
# 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 (17 17 a))
@s[all:	$(OBJS)


@s|all:	$(OBJS)

.lsp.fn: ../cmpnew/collectfn.o
	../xbin/make-fn $*.lsp

@s]


****Change:(orig (20 20 c))
@s[	$(PORTDIR)/saved_kcl $(PORTDIR)/ $* $* S0111

@s|	@ ../xbin/if-exists $(PORTDIR)/saved_kcl \
	"rm -f $*.c $*.h $*.data $*.o" \
	"$(PORTDIR)/saved_kcl $(PORTDIR)/ $* $* S0111"

@s]


****Change:(orig (22 24 d))
@s[.c.o:
	cc $(CFLAGS) $*.c
	cat $*.data >> $*.o

@s|
@s]


****Change:(orig (25 25 a))
@s[

@s|
.c.o:  
	$(CC) $(OFLAG) $(CFLAGS) $*.c
	cat ${NULLFILE} $*.data >> $*.o

.lsp.o:
	@ ../xbin/if-exists $(PORTDIR)/saved_kcl \
	"rm -f $*.c $*.h $*.data $*.o" \
	"$(PORTDIR)/saved_kcl $(PORTDIR)/ $* $* S0111" \
	"$(CC) $(OFLAG) $(CFLAGS) $*.c" \
	"../xbin/append ${NULLFILE} $*.data $*.o"

.lisp.o:
	@ ../xbin/if-exists $(PORTDIR)/saved_kcl \
	"$(PORTDIR)/saved_kcl $(PORTDIR)/ $*.lisp $*.o U1000" 
sys-proclaim.lisp:
	echo '(in-package "COMPILER")' \
	'(load "../cmpnew/collectfn")(load "../lsp/sys-proclaim.lisp")'\
	'(compiler::make-all-proclaims "*.fn")' | ../xbin/kcl


newfn:	
	make `echo $(OBJS) | sed -e 's:\.o:.fn:g'`



remake:
	for v in `"ls" *.lsp.V | sed -e "s:\.lsp\.V::g"` ; \
	do rm -f $$v.c $$v.h $$v.data $$v.lsp $$v.o ; \
	ln -s  $(MAINDIR)/cmpnew/$$v.c . ; ln -s $(MAINDIR)/cmpnew/$$v.h . ; \
	ln -s $(MAINDIR)/cmpnew/$$v.data . ; \
	done
	rm -f ../unixport/saved_kcl 
	(cd .. ; make sources)
	(cd .. ; make)
	(cd .. ; make)

@s]

