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 += -static | 5 CFLAGS += -static |
6 LDFLAGS += -luuid | 6 LDFLAGS += -luuid |
7 BUILD_ROOT := ${BUILD}/cgpt | 7 BUILD_ROOT := ${BUILD}/cgpt |
8 | 8 |
9 INCLUDES = -I$(FWDIR)/lib/cgptlib/include -I$(FWDIR)/include | 9 INCLUDES = -I$(FWDIR)/lib/cgptlib/include -I$(FWDIR)/include |
10 LIBS = ${HOSTLIB} | 10 LIBS = ${HOSTLIB} |
11 | 11 |
12 DESTDIR ?= /usr/bin | 12 DESTDIR ?= /usr/bin |
13 | 13 |
14 PROGNAME = ${BUILD_ROOT}/cgpt | 14 PROGNAME = ${BUILD_ROOT}/cgpt |
15 | 15 |
16 ALL_SRCS = \ | 16 ALL_SRCS = \ |
17 cgpt.c \ | 17 cgpt.c \ |
18 cmd_show.c \ | 18 cmd_show.c \ |
19 cmd_repair.c \ | 19 cmd_repair.c \ |
20 cmd_create.c \ | 20 cmd_create.c \ |
21 cmd_add.c \ | 21 cmd_add.c \ |
22 cmd_boot.c \ | 22 cmd_boot.c \ |
23 cmd_find.c \ | 23 cmd_find.c \ |
| 24 cmd_prioritize.c \ |
24 cgpt_common.c | 25 cgpt_common.c |
25 | 26 |
26 main: $(PROGNAME) | 27 main: $(PROGNAME) |
27 | 28 |
28 include ../common.mk | 29 include ../common.mk |
29 | 30 |
30 $(PROGNAME): $(ALL_OBJS) $(LIBS) | 31 $(PROGNAME): $(ALL_OBJS) $(LIBS) |
31 $(CC) -o $(PROGNAME) $(CFLAGS) $^ $(LDFLAGS) | 32 $(CC) -o $(PROGNAME) $(CFLAGS) $^ $(LDFLAGS) |
32 | 33 |
33 install: $(PROGNAME) | 34 install: $(PROGNAME) |
34 mkdir -p $(DESTDIR) | 35 mkdir -p $(DESTDIR) |
35 cp -f $^ $(DESTDIR) | 36 cp -f $^ $(DESTDIR) |
36 chmod a+rx $(patsubst ${BUILD_ROOT}/%,$(DESTDIR)/%,$^) | 37 chmod a+rx $(patsubst ${BUILD_ROOT}/%,$(DESTDIR)/%,$^) |
37 | 38 |
38 .PHONY: all install | 39 .PHONY: all install |
OLD | NEW |