# Makefile for the boot monitor package. CC=exec cc p=../kernel/kernel ../mm/mm ../fs/fs l=/usr/lib LIB=$l/libd.A $l/libc.A $l/libe.A s=/usr/src # directory containing kernel, fs, mm # ACK ANSI C compiler CFLAGS= -m -D_MINIX -D_POSIX_SOURCE -I$s LD= $(CC) -s -r LIBS= O= o S= s all: construct bootblk monitor init # Assembly code boot block bootblk: bootblk.$S $(LD) bootblk.$S -o bootblk # Put kernel, mm, fs into image file (old build program) construct: construct.$O rawfs.$O $(CC) -s -i -o construct construct.$O rawfs.$O @chmem =12288 construct >/dev/null # Display menu just after being booted (old menu program) monitor: monhead.$S mon1.$O mon2.$O rawfs.$O $(LD) monhead.$S -i mon1.$O mon2.$O rawfs.$O $(LIBS) -o monitor @chmem =12000 monitor >/dev/null # System initialization; fork off login processes init: $l/nhead.$O init.$O $l/ld -o tmp $l/nhead.$O init.$O $(LIB) $l/end.A $l/cv tmp >init @rm -f tmp @echo init done. image: all construct -i image $p init @getlf "Insert a blank diskette in drive 0 and hit return" construct -b /dev/fd0 bootblk monitor image # Object files #mon1.$O: mon1.c # $(CC) $(CFLAGS) -c mon1.c # #mon2.$O: mon2.c # $(CC) $(CFLAGS) -c mon2.c # #rawfs.$O: rawfs.c # $(CC) $(CFLAGS) -c rawfs.c clean: @rm -f *.bak bootblk.o bootblk construct construct.[so] mon?.[so] \ monitor rawfs rawfs.[so] init.[so] init *.out log