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