fee486adceab2db2e296eb20d245e94d5dcd8b3c
[fw/sdcc] / device / lib / pic16 / Makefile
1 #
2 # Makefile - toplevel makefile that builds everything
3 #
4 # This file is part of the GNU PIC Library.
5 #
6 # January, 2004
7 # The GNU PIC Library is maintained by,
8 #       Vangelis Rokas <vrokas@otenet.gr>
9 #
10 # $Id$
11 #
12 #
13
14
15 include ./Makefile.common
16
17
18 DIRS    =       libdev  \
19                 libsdcc \
20                 libc    \
21                 startup \
22                 debug
23
24
25 all: build-all-libraries
26
27 build-all-libraries:
28         @for temp in $(DIRS) ; do \
29                 $(MAKE) -C $$temp MODELFLAGS=$(MODELFLAGS) ; \
30         done
31
32
33 clean: all-clean
34         $(RM) -f bin/*.*
35
36
37
38 all-clean:
39         @for temp in $(DIRS) ; do \
40                 $(MAKE) -C $$temp clean ; \
41         done
42
43 clean-intermediate:
44         @for temp in $(DIRS) ; do \
45                 $(MAKE) -C $$temp clean-intermediate ; \
46         done
47
48
49 dep: all-dep
50
51 all-dep:
52         for temp in $(DIRS) ; do \
53                 $(MAKE) -C $$temp dep ; \
54         done