X-Git-Url: http://gitweb.hachti.de/?a=blobdiff_plain;f=Makefile;h=c092b95f9e9a3e3a76ae78e73ba5f36541562d77;hb=3c5f7d028c961fc369ae184e4ab585166219dc7c;hp=3b41a62a6e4a99acbb88456f845c58a70c6a254d;hpb=3d1137731a5829b177165e74f92ba063328a1156;p=h316.git diff --git a/Makefile b/Makefile index 3b41a62..c092b95 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,49 @@ # Toplevel Makefile for Hachti's H316 stuff collection -SUBDIRS=lib/iolib lib/fortran docs/manual lib/fortran lib/fortran/vpunch-help\ -lib/iolib pc-tools/ldc pc-tools/src-filters 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 + +# 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);) + @mklink.sh + @$(foreach subdir, $(SUBDIRS), $(MAKE) -C $(subdir)&&) /bin/true + +clean: + @mklink.sh + @$(foreach subdir, $(SUBDIRS), $(MAKE) -C $(subdir) $@&&) true + @rm -f h316rc + @rmlink.sh %: @echo $@ + @mklink.sh $(foreach subdir, $(SUBDIRS), $(MAKE) -C $(subdir) $@;) -.PHONY: default./build/Makefile +.PHONY: default cvsclean +