2004-11-04 Vangelis Rokas <vrokas AT otenet.gr>
[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                 startup \
21                 debug
22
23
24 all: build-all-libraries
25
26 build-all-libraries:
27         @for temp in $(DIRS) ; do \
28                 $(MAKE) -C $$temp MODELFLAGS=$(MODELFLAGS) ; \
29         done
30
31
32 clean: all-clean
33         $(RM) -f bin/*.*
34
35
36
37 all-clean:
38         @for temp in $(DIRS) ; do \
39                 $(MAKE) -C $$temp clean ; \
40         done
41
42 clean-intermediate:
43         @for temp in $(DIRS) ; do \
44                 $(MAKE) -C $$temp clean-intermediate ; \
45         done
46
47
48 dep: all-dep
49
50 all-dep:
51         for temp in $(DIRS) ; do \
52                 $(MAKE) -C $$temp dep ; \
53         done