Makefile 854 Bytes
#!smake
#
# kernel/Makefile
#
DEPTH?=..
include $(ROOT)/usr/include/make/kcommondefs

SHFILES = prInstall.sh
KERNFILE = u64_6.2.o

TARGETS = mem.sed prInstall mem_6.2.sed $(KERNFILE)

LDIRT = *.bak *.sav *.CKP *.BAK

EXITOP = exitop("cd $$rbase/usr/lib/PR/install; ./prInstall")

DEBUG = 

default all:
	@$(MAKE) $(TARGETS)

include $(COMMONRULES)

mem.sed:	mem.sed.script
	rm -f mem.sed
	cp mem.sed.script mem.sed

mem_6.2.sed:	mem_6.2.sed.script
	rm -f mem_6.2.sed
	cp mem_6.2.sed.script mem_6.2.sed

$(KERNFILE):	$(KERNFILE).uu
	uudecode $@.uu
	chmod 644 $@

install: all
	$(INSTALL) -idb "pr.sw.pr" -dir /usr/lib/PR/install
	$(INSTALL) -idb 'pr.sw.pr $(EXITOP)' -m 744 \
	    -F /usr/lib/PR/install prInstall
	$(INSTALL) -idb "pr.sw.pr" -m 644 -F /usr/lib/PR/install \
	    mem.sed mem_6.2.sed
	$(INSTALL) -m 644 -F /usr/lib/PR/install $(KERNFILE)