Files
OpenCellular/cgpt/Makefile
Bill Richardson 3430b32667 Add 'prioritize' command to cgpt tool.
This lets us reorder the priority of all the kernel partitions with a single
command, instead of a bunch of complicated and error-prone shell script
logic.

Change-Id: I21d39763ec5a748488d5319a987bcfe7c34ce4d0

BUG=chromium-os:9167
TEST=manual

In the chroot, do this:

cd ~/trunk/src/platform/vboot_reference
make
make runtests
make clean

Everything should pass.

Review URL: http://codereview.chromium.org/5352005
2010-11-29 14:24:51 -08:00

40 lines
774 B
Makefile

# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
CFLAGS += -static
LDFLAGS += -luuid
BUILD_ROOT := ${BUILD}/cgpt
INCLUDES = -I$(FWDIR)/lib/cgptlib/include -I$(FWDIR)/include
LIBS = ${HOSTLIB}
DESTDIR ?= /usr/bin
PROGNAME = ${BUILD_ROOT}/cgpt
ALL_SRCS = \
cgpt.c \
cmd_show.c \
cmd_repair.c \
cmd_create.c \
cmd_add.c \
cmd_boot.c \
cmd_find.c \
cmd_prioritize.c \
cgpt_common.c
main: $(PROGNAME)
include ../common.mk
$(PROGNAME): $(ALL_OBJS) $(LIBS)
$(CC) -o $(PROGNAME) $(CFLAGS) $^ $(LDFLAGS)
install: $(PROGNAME)
mkdir -p $(DESTDIR)
cp -f $^ $(DESTDIR)
chmod a+rx $(patsubst ${BUILD_ROOT}/%,$(DESTDIR)/%,$^)
.PHONY: all install