OLD | NEW |
---|---|
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 CFLAGS += -Wall -Werror -ansi | 5 CFLAGS += -Wall -Werror -ansi |
6 INCLUDES += -Itests | 6 INCLUDES += -Itests |
7 SUBDIRS = tests | 7 SUBDIRS = tests |
8 | 8 |
9 all: cgpt.a | 9 all: libcgpt.a |
10 » set -e; \ | |
10 for i in $(SUBDIRS); do \ | 11 for i in $(SUBDIRS); do \ |
11 » ( cd $$i ; $(MAKE)) ; \ | 12 » » $(MAKE) -C $$i; \ |
Bill Richardson
2010/05/20 16:51:15
That's not parallelizable. Use this instead:
all:
Louis
2010/05/21 03:43:21
This cannot be parallelized because we need libcgp
| |
12 done | 13 done |
13 | 14 |
14 .c.o: | 15 .c.o: |
15 $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ | 16 $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ |
16 | 17 |
17 cgpt.a: cgptlib.o quick_sort.o crc32.o | 18 libcgpt.a: cgptlib.o quick_sort.o crc32.o |
18 $(AR) rs $@ $^ | 19 $(AR) rs $@ $^ |
19 | 20 |
20 clean: | 21 clean: |
22 set -e; \ | |
21 for i in $(SUBDIRS); do \ | 23 for i in $(SUBDIRS); do \ |
Bill Richardson
2010/05/20 16:51:15
clean: $(foreach DIR,$(SUBDIRS),$(DIR)-subdir)
Louis
2010/05/21 03:43:21
This cannot be parallelized because our build syst
| |
22 » ( $(MAKE) -C $$i clean ) ; \ | 24 » » $(MAKE) -C $$i clean; \ |
23 done | 25 done |
24 rm -f *.o *~ *.a | 26 rm -f *.o *~ *.a |
OLD | NEW |