X-Git-Url: http://gitweb.hachti.de/?a=blobdiff_plain;f=Makefile;h=f7f397e649c7e6bb9f4b456d8318f90427a8573e;hb=52147402c19a69c9774bb256420a16233043d3fe;hp=f9a129abbc3a34c6c2284d3b5e9e69156cfa63cc;hpb=fa105a9b1957e54e3a63fdcda359fd0abc453a44;p=h316.git diff --git a/Makefile b/Makefile index f9a129a..f7f397e 100644 --- a/Makefile +++ b/Makefile @@ -1,45 +1,39 @@ # Toplevel Makefile for Hachti's H316 stuff collection -<<<<<<< Makefile -# First we need the PC side tools. Nothing runs without them! -SUBDIRS=pc-tools/ldc pc-tools/src-filters pc-tools/boot-maker +SUBDIRS = pc-tools lib systems programs -# Now we build the libraries which are always rebuild using the original compiler and -# assembler tapes -SUBDIRS+=lib/iolib lib/fortran \ +# If you want to build the docs, too: Uncomment next line: +#SUBDIRS+=docs/manual -# Here we link the assembler - via a trick -SUBDIRS+=systems/dap +.done_pc-tools : + @$(MAKE) -C pc-tools && touch $@ -# What's missing for the systems -SUBDIRS+=programs/tools +.done_lib: .done_pc-tools + @$(MAKE) -C lib && touch $@ -# Now we can build the super images and slst -SUBDIRS+=systems +.done_systems_dap: .done_lib + @$(MAKE) -C systems/dap && touch $@ -# The compiler is rebuilt as well! -SUBDIRS+=programs/frtn +.done_programs_tools: .done_systems_dap + @$(MAKE) -C programs/tools && touch $@ -# And all other H316 tools depending on all the other stuff -SUBDIRS+=programs/mandelbrot\ - programs/punchomat\ +.done_systems: .done_programs_tools + @$(MAKE) -C systems && touch $@ +.done_programs_fortran: .done_systems_dap + @$(MAKE) -C programs/fortran && touch $@ -======= -SUBDIRS=pc-tools/ldc pc-tools/src-filters pc-tools/boot-maker lib/iolib lib/fortran \ - lib/fortran lib/iolib programs/mandelbrot\ - programs/punchomat programs/tools systems ->>>>>>> 1.12 +.done_programs: .done_programs_fortran + @$(MAKE) -C programs && touch $@ -#lib/fortran/vpunch-help +.done_systems: .done_programs -# If you want to build the docs, too: Uncomment next line: -#SUBDIRS+=docs/manual -cvsclean: clean - touch slst/* sys/* +default: .done_systems -default: - @$(foreach subdir, $(SUBDIRS), $(MAKE) -C $(subdir)&&) /bin/true +clean: + @$(foreach subdir, $(SUBDIRS), $(MAKE) -C $(subdir) $@&&) true + @rm -f h316rc + @rm -f .done_* %: @echo $@