git @ Cat's Eye Technologies BefOS / 21aab10
Fix build script (permissions, create non-existent dirs.) Cat's Eye Technologies 12 years ago
3 changed file(s) with 9 addition(s) and 30 deletion(s). Raw diff Collapse all Expand all
0 syntax: glob
1
2 bin/*
3 obj/*
4 *.lst
5 bekernel.inc
6
+0
-30
Makefile less more
0 # Top-level Makefile for all of BefOS
1 # $Id: Makefile 62 2006-02-05 04:39:58Z catseye $
2
3 # This is so wrong. We need to amalgamate this
4 # into a single Makefile someday.
5
6 # the 'cd ..' is required to get out of obj/
7 SRCDIR=../src
8 DISKDIR=../disk
9
10 all:
11 cd $(SRCDIR)/tools && make all
12 cd $(SRCDIR)/kernel && make all
13 cd $(SRCDIR)/inc && make all
14 cd $(SRCDIR)/apps && make all
15 cd $(SRCDIR)/page && make all
16 cd $(SRCDIR)/boot && make all
17 cd $(DISKDIR) && make all
18
19 clean:
20 cd $(SRCDIR)/tools && make clean
21 cd $(SRCDIR)/kernel && make clean
22 cd $(SRCDIR)/inc && make clean
23 cd $(SRCDIR)/apps && make clean
24 cd $(SRCDIR)/page && make clean
25 cd $(SRCDIR)/boot && make clean
26 cd $(DISKDIR) && make clean
27
28 test: all
29 cd $(DISKDIR) && make test
33 # This is chintzy. But at least it's not a recursive Makefile, right?
44
55 TARGET=$1
6
7 mkdir -p bin obj
68
79 cd src/tools && make ${TARGET} && cd ../..
810 cd src/kernel && make ${TARGET} && cd ../..