X-Git-Url: http://gitweb.hachti.de/?a=blobdiff_plain;f=Makefile;h=8bf28a4e2ee5328c5ad8a1b89448afedfb427c96;hb=ce1f6adb7e2647dc3b56fe7473a469b528afdbd7;hp=c3c326a81b80d7d100297fe471dfd2f9606c312b;hpb=61685b6eca68984a8ca4c0f763f9bd5cad6f3219;p=h316.git diff --git a/Makefile b/Makefile index c3c326a..8bf28a4 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,48 @@ # Toplevel Makefile for Hachti's H316 stuff collection -SUBDIRS=pc-tools/ldc pc-tools/src-filters pc-tools/boot-maker lib/iolib lib/fortran docs/manual\ - lib/fortran lib/fortran/vpunch-help lib/iolib programs/mandelbrot\ - programs/punchomat +# First we need the PC side tools. Nothing runs without them! +SUBDIRS=pc-tools + +# Now we build the libraries which are always rebuild using the original compiler and +# assembler tapes +SUBDIRS+=lib/iolib lib/fortran \ + +# Here we link the assembler - via a trick +SUBDIRS+=systems/dap + +# What's missing for the systems +SUBDIRS+=programs/tools + +# Now we can build the super images and slst +SUBDIRS+=systems + +# The compiler is rebuilt as well! +SUBDIRS+=programs/fortran + +# And all other H316 tools depending on all the other stuff +SUBDIRS+=programs + +#lib/fortran/vpunch-help + +# If you want to build the docs, too: Uncomment next line: +#SUBDIRS+=docs/manual default: - $(foreach subdir, $(SUBDIRS), $(MAKE) -C $(subdir)&&) /bin/true + @mklink.sh + @$(foreach subdir, $(SUBDIRS), $(MAKE) -C $(subdir)&&) /bin/true + +clean: + @mklink.sh + @$(foreach subdir, $(SUBDIRS), $(MAKE) -C $(subdir) $@&&) true + @rmlink.sh %: @echo $@ + @mklink.sh $(foreach subdir, $(SUBDIRS), $(MAKE) -C $(subdir) $@;) -.PHONY: default./build/Makefile +.PHONY: default cvsclean +