Rev 3022 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3022 | Rev 4055 | ||
---|---|---|---|
1 | # |
1 | # |
2 | # Copyright (C) 1999-2001 Hewlett-Packard Co. |
2 | # Copyright (C) 1999-2001 Hewlett-Packard Co. |
3 | # Contributed by David Mosberger <davidm@hpl.hp.com> |
3 | # Contributed by David Mosberger <davidm@hpl.hp.com> |
4 | # Contributed by Stephane Eranian <eranian@hpl.hp.com> |
4 | # Contributed by Stephane Eranian <eranian@hpl.hp.com> |
5 | # |
5 | # |
6 | # This file is part of the gnu-efi package. |
6 | # This file is part of the gnu-efi package. |
7 | # |
7 | # |
8 | # GNU-EFI is free software; you can redistribute it and/or modify |
8 | # GNU-EFI is free software; you can redistribute it and/or modify |
9 | # it under the terms of the GNU General Public License as published by |
9 | # it under the terms of the GNU General Public License as published by |
10 | # the Free Software Foundation; either version 2, or (at your option) |
10 | # the Free Software Foundation; either version 2, or (at your option) |
11 | # any later version. |
11 | # any later version. |
12 | # |
12 | # |
13 | # GNU-EFI is distributed in the hope that it will be useful, |
13 | # GNU-EFI is distributed in the hope that it will be useful, |
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | # GNU General Public License for more details. |
16 | # GNU General Public License for more details. |
17 | # |
17 | # |
18 | # You should have received a copy of the GNU General Public License |
18 | # You should have received a copy of the GNU General Public License |
19 | # along with GNU-EFI; see the file COPYING. If not, write to the Free |
19 | # along with GNU-EFI; see the file COPYING. If not, write to the Free |
20 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA |
20 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA |
21 | # 02111-1307, USA. |
21 | # 02111-1307, USA. |
22 | # |
22 | # |
23 | 23 | ||
24 | include Make.defaults |
24 | include Make.defaults |
25 | 25 | ||
26 | SUBDIRS = lib gnuefi inc apps |
26 | SUBDIRS = lib gnuefi inc |
27 | 27 | ||
28 | all: check_gcc $(SUBDIRS) |
28 | all: $(SUBDIRS) |
29 | 29 | ||
30 | $(SUBDIRS): |
30 | $(SUBDIRS): |
31 | $(MAKE) -C $@ |
31 | $(MAKE) -C $@ |
32 | 32 | ||
33 | clean: |
33 | clean: |
34 | rm -f *~ |
34 | rm -f *~ |
35 | @for d in $(SUBDIRS); do $(MAKE) -C $$d clean; done |
35 | @for d in $(SUBDIRS); do $(MAKE) -C $$d clean; done |
36 | 36 | ||
37 | install: |
37 | install: |
38 | @for d in $(SUBDIRS); do $(MAKE) -C $$d install; done |
38 | @for d in $(SUBDIRS); do $(MAKE) -C $$d install; done |
39 | 39 | ||
40 | .PHONY: $(SUBDIRS) clean depend |
40 | .PHONY: $(SUBDIRS) clean depend |
41 | 41 | ||
42 | # |
- | |
43 | # on both platforms you must use gcc 3.0 or higher |
- | |
44 | # |
- | |
45 | check_gcc: |
- | |
46 | ifeq ($(GCC_VERSION),2) |
- | |
47 | @echo "you need to use a version of gcc >= 3.0, you are using `$(CC) --version`" |
- | |
48 | @exit 1 |
- | |
49 | endif |
- | |
50 | - | ||
51 | include Make.rules |
42 | include Make.rules |
52 | 43 |