# -*- makefile -*-
#
# make help
#
help:
@echo ""
@echo "Targets:"
@echo " make all # binaries (without dosexe, diag.)"
@echo " make dosexe # DOS lilo.com utility"
@echo " make diagnostic # standalone diagnostics"
@echo " make alles # all above + static binary"
@echo " make docs # doc/[user,tech].[ps,dvi] docs"
@echo " make floppy # 2 standalone bootable diagnostic floppies"
@echo ""
@echo " make install # install binaries++ into root directory"
@echo " make install DESTDIR=
# install binaries++ into directory"
@echo ""
@echo " make uninstall # remove binaries++ from root directory"
@echo " make uninstall DESTDIR= # rmove binaries++ from directory"
@echo ""
@echo "Maintenance:"
@echo " make test # test for all needed utilities (as86, ld86, etc.)"
@echo " make tidy # remove listings & other unnecessary files"
@echo " make clean # remove objects & ready for a fresh 'make all'"
@echo " make distclean # remove editor temps, & all of the above"
@echo ""
#
# everything needed to run, just short of installation
#
all: test
make -C src all
make -C images all
#
# everything above plus the statically linked version
#
alles: test
make -C src alles
make -C images all
#
# documentation files
#
docs:
make -C doc all
#
# if you have the 'bcc' compiler, then you can make the diagnostics, too
# bcc = Bruce Evans’ C 16bit compiler (also for BIOS- and DOS code)
#
it: docs alles diagnostic dosexe
#
# make the bootable diagnostic floppies
#
floppy: test
@echo
@echo Make sure you have 2 blank, formatted, 1.44Mb floppies
@echo before you proceed from this point.
@echo "Press to continue, <^C> to abort ..."
@read
@make -C src floppy1
@echo Done.
@echo
@echo Remove the floppy from the drive. Label it "\"1.6\""
@echo "Press to continue, <^C> to abort ..."
@read
@make -C src floppy2
@echo Done.
@echo
@echo Remove the floppy from the drive. Label it "\"2.4\""
@echo
diagnostic: test
make -C src diagnostic
dosexe: test
make -C dos lilo
#
# test for compilers & utilities
#
test: test.img
test.img:
./checkit
echo Tested >test.img
#
# shorthand install, if one knows that one has the 'bcc' compiler
#
ins:
make -C src ins
#
# normal install, but doesn't make the diagnostic binaries
#
install: all
make -C src install
make -C images install
make -C hooks install
make -C sample install
make -C man install
make -C dos install
tidy:
make -C src tidy
make -C diagnose tidy
make -C dos tidy
make -C doc tidy
clean: tidy
rm -f test.img
make -C src clean
make -C images clean
make -C diagnose clean
make -C dos clean
make -C doc clean
spotless: distclean
distclean: clean
make -C src distclean
make -C diagnose distclean
make -C dos distclean
uninstall:
make -C src uninstall
make -C images uninstall
make -C hooks uninstall
make -C sample uninstall
make -C man uninstall