Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Side by Side Diff: cgpt/Makefile

Issue 2719008: Nearly complete rewrite of cgpt tool. (Closed) Base URL: ssh://git@chromiumos-git//vboot_reference.git
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Makefile ('k') | cgpt/cgpt.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 CC ?= gcc
6 TOP ?= ..
7 CFLAGS ?= -Wall -DNDEBUG -O3 -Werror
8 CFLAGS += -static
9 LDFLAGS += -luuid
10 FWDIR=$(TOP)/vboot_firmware
11
12 INCLUDES = -I$(FWDIR)/lib/cgptlib/include
13 LIBS = $(FWDIR)/vboot_fw.a
14
15 DESTDIR ?= /usr/bin
16
17 PROGNAME = cgpt
18
19 OBJS= \
20 cgpt.o \
21 cmd_show.o \
22 cmd_repair.o \
23 cmd_create.o \
24 cmd_add.o \
25 cmd_boot.o \
26 cgpt_common.o
27
28
29 all: $(PROGNAME)
30
31 $(PROGNAME): $(OBJS) $(LIBS)
32 $(CC) -o $(PROGNAME) $(CFLAGS) $^ $(LDFLAGS)
33
34 .c.o:
35 $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
36
37 clean:
38 rm -f $(PROGNAME) *.o *~
39
40 install: $(PROGNAME)
41 mkdir -p $(DESTDIR)
42 cp -f $^ $(DESTDIR)
43 chmod a+rx $(patsubst %,$(DESTDIR)/%,$^)
44
45 .PHONY: all clean install
OLDNEW
« no previous file with comments | « Makefile ('k') | cgpt/cgpt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698