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 CC ?= cc | 5 CFLAGS += -Wall -DNDEBUG -Werror -ansi |
6 CFLAGS ?= -Wall -DNDEBUG -Werror -ansi | |
7 LIBS = ../cgpt.a ../../common/libcommon.a | 6 LIBS = ../cgpt.a ../../common/libcommon.a |
8 OBJS = cgpt_test.o | 7 OBJS = cgptlib_test.o quick_sort_test.o |
9 OUT = cgpt_test | 8 OUT = cgptlib_test |
10 | 9 |
11 all: $(OUT) | 10 all: $(OUT) |
12 | 11 |
13 $(OUT): $(OBJS) $(LIBS) | 12 $(OUT): $(OBJS) $(LIBS) |
14 $(CC) -o $@ $^ | 13 $(CC) -o $@ $^ |
15 | 14 |
16 .c.o: | 15 .c.o: |
17 $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ | 16 $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ |
18 | 17 |
19 clean: | 18 clean: |
20 rm -rf $(OUT) $(OBJS) | 19 rm -rf $(OUT) $(OBJS) |
OLD | NEW |