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 FWTOP := $(shell pwd) | 5 FWTOP := $(shell pwd) |
6 LIBDIR = $(FWTOP)/lib | 6 LIBDIR = $(FWTOP)/lib |
7 STUBDIR = $(FWTOP)/stub | 7 STUBDIR = $(FWTOP)/stub |
8 TESTDIR = $(FWTOP)/linktest | 8 TESTDIR = $(FWTOP)/linktest |
9 BUILD_ROOT := ${BUILD}/$(shell basename ${FWTOP}) | 9 BUILD_ROOT := ${BUILD}/$(shell basename ${FWTOP}) |
10 | 10 |
11 INCLUDES = \ | 11 INCLUDES = \ |
12 -I$(FWTOP)/include \ | 12 -I$(FWTOP)/include \ |
13 -I$(STUBDIR)/include \ | |
gauravsh
2010/06/22 01:22:21
nit: alpha
| |
13 -I$(LIBDIR)/include \ | 14 -I$(LIBDIR)/include \ |
14 -I$(LIBDIR)/cgptlib/include \ | 15 -I$(LIBDIR)/cgptlib/include \ |
15 -I$(LIBDIR)/cryptolib/include | 16 -I$(LIBDIR)/cryptolib/include |
16 | 17 |
17 | 18 |
18 # find ./lib -iname '*.c' | sort | 19 # find ./lib -iname '*.c' | sort |
19 LIB_SRCS = \ | 20 LIB_SRCS = \ |
20 ./lib/cgptlib/cgptlib.c \ | 21 ./lib/cgptlib/cgptlib.c \ |
21 ./lib/cgptlib/cgptlib_internal.c \ | 22 ./lib/cgptlib/cgptlib_internal.c \ |
22 ./lib/cgptlib/crc32.c \ | 23 ./lib/cgptlib/crc32.c \ |
(...skipping 19 matching lines...) Expand all Loading... | |
42 | 43 |
43 test : $(FWLIB) | 44 test : $(FWLIB) |
44 $(CC) $(CFLAGS) $(INCLUDES) -o $(BUILD_ROOT)/a.out \ | 45 $(CC) $(CFLAGS) $(INCLUDES) -o $(BUILD_ROOT)/a.out \ |
45 $(TESTDIR)/main.c $(FWLIB) | 46 $(TESTDIR)/main.c $(FWLIB) |
46 | 47 |
47 include ../common.mk | 48 include ../common.mk |
48 | 49 |
49 $(FWLIB) : $(ALL_OBJS) | 50 $(FWLIB) : $(ALL_OBJS) |
50 rm -f $@ | 51 rm -f $@ |
51 ar qc $@ $^ | 52 ar qc $@ $^ |
OLD | NEW |