Changed everything towards LDC2 use.
[h316.git] / Makefile
1 # Toplevel Makefile for Hachti's H316 stuff collection
2
3 # First we need the PC side tools. Nothing runs without them!
4 SUBDIRS=pc-tools
5
6 # Now we build the libraries which are always rebuild using the original compiler and
7 # assembler tapes
8 SUBDIRS+=lib/iolib lib/fortran \
9
10 # Here we link the assembler - via a trick
11 SUBDIRS+=systems/dap
12
13 # What's missing for the systems
14 SUBDIRS+=programs/tools
15
16 # Now we can build the super images and slst
17 SUBDIRS+=systems
18
19 # The compiler is rebuilt as well!
20 SUBDIRS+=programs/fortran
21
22 # And all other H316 tools depending on all the other stuff
23 SUBDIRS+=programs
24
25 #lib/fortran/vpunch-help
26
27 # If you want to build the docs, too: Uncomment next line:
28 #SUBDIRS+=docs/manual
29
30
31 default:
32 @mklink.sh
33 @$(foreach subdir, $(SUBDIRS), $(MAKE) -C $(subdir)&&) /bin/true
34
35 clean:
36 @rmlink.sh
37 $(foreach subdir, $(SUBDIRS), $(MAKE) -C $(subdir) $@;)
38
39 %:
40 @echo $@
41 @mklink.sh
42 $(foreach subdir, $(SUBDIRS), $(MAKE) -C $(subdir) $@;)
43
44
45 .PHONY: default cvsclean
46
47