X-Git-Url: http://gitweb.hachti.de/?a=blobdiff_plain;f=Makefile;h=9b4eb8280539bca0472f0b6907402ddd20ee8d58;hb=c0fc7e111cb540730e471bc795309f65cf32a512;hp=62e8d98b5f388ab9c771017037fdb0c2bc020570;hpb=d6a1a234777d52614885de62fd64d1f3119d238b;p=h316.git diff --git a/Makefile b/Makefile index 62e8d98..9b4eb82 100644 --- a/Makefile +++ b/Makefile @@ -1,45 +1,40 @@ # Toplevel Makefile for Hachti's H316 stuff collection -# First we need the PC side tools. Nothing runs without them! -SUBDIRS=pc-tools +SUBDIRS = pc-tools lib systems programs -# 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 +# If you want to build the docs, too: Uncomment next line: +#SUBDIRS+=docs/manual -# What's missing for the systems -SUBDIRS+=programs/tools +default: .done_programs -# Now we can build the super images and slst -SUBDIRS+=systems +.done_pc-tools : + @$(MAKE) -C pc-tools && touch $@ -# The compiler is rebuilt as well! -SUBDIRS+=programs/fortran +.done_lib: .done_pc-tools + @$(MAKE) -C lib && touch $@ -# And all other H316 tools depending on all the other stuff -SUBDIRS+=programs +.done_systems_dap: .done_lib + @$(MAKE) -C systems/dap && touch $@ -#lib/fortran/vpunch-help +.done_programs_tools: .done_systems_dap + @$(MAKE) -C programs/tools && touch $@ -# If you want to build the docs, too: Uncomment next line: -#SUBDIRS+=docs/manual +.done_systems: .done_programs_tools + @$(MAKE) -C systems && touch $@ +.done_programs_fortran: .done_systems + @$(MAKE) -C programs/fortran && touch $@ -default: - @mklink.sh - @$(foreach subdir, $(SUBDIRS), $(MAKE) -C $(subdir)&&) /bin/true +.done_programs: .done_programs_fortran + @$(MAKE) -C programs && touch $@ clean: - @mklink.sh @$(foreach subdir, $(SUBDIRS), $(MAKE) -C $(subdir) $@&&) true - @rmlink.sh + @rm -f h316rc + @rm -f .done_* %: @echo $@ - @mklink.sh $(foreach subdir, $(SUBDIRS), $(MAKE) -C $(subdir) $@;)