home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume44
/
toy_os
/
part04
/
Makefile
< prev
next >
Wrap
Makefile
|
1994-09-05
|
1KB
|
55 lines
CC=./c++
CCL=./c++l
.SUFFIXES: .cc
LIBMOD=mult_proc.cc cpu.cc memory.cc cpu_manager.cc processes.cc \
sysqueues.cc semaphores.cc page_manager.cc mem_manager.cc \
channel.cc io_requests.cc io_manager.cc
# Rules
.cc.o:
$(CC) -O0 -fcaller-saves -fvolatile $*.cc
.o: $*.o
$(CCL) $*.o -o $*
./$*
.cc: $*.cc
$(CC) $*.cc
$(CCL) $*.o -o $*
./$*
# Primary goal
bootstrap: bootstrap.o
$(CCL) bootstrap.o kernel.a oslib -o vm_unt
# vm_unt three.1.dat
# vm_unt three.2.dat
# vm_unt three.3.dat
# vm_unt three.4.dat
# vm_unt four.1.dat
# vm_unt four.2.dat
# vm_unt four.3.dat
# vm_unt four.123.dat
vm_unt -card=card_file -lp=print_file -harddisk=hdisk five.ld
# Library
lib: kernel.a
kernel.a: $(LIBMOD)
# Compile the source files that have been changed
$(CC) -O0 $?
listobj=`echo $? | sed s/.cc/.o/g` ; \
ar rv kernel.a $$listobj && \
rm $$listobj
(ar d kernel.a __.SYMDEF && ranlib kernel.a)
# Specific dependent goals
mult_proc.o: mult_proc.cc mult_proc.h
$(CC) -O0 -fcaller-saves -fvolatile -DDEBUG $*.cc
bootstrap.o: bootstrap.cc hardware.h oper_system.h
$(CC) -O0 -fcaller-saves -fvolatile $*.cc