| OLD | NEW |
| 1 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2009 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 CC ?= cc | 6 CC ?= cc |
| 7 INCLUDES += -I$(TOP)/common/include -I$(TOP)/../../../chroot/usr/include/ | 7 INCLUDES += -I$(TOP)/common/include -I$(TOP)/../../../chroot/usr/include/ |
| 8 CFLAGS += -Wall -Werror -ggdb | 8 CFLAGS += -Wall -Werror -ggdb |
| 9 LIBS += $(FWLIB) | 9 LIBS += $(FWLIB) |
| 10 | 10 |
| 11 DESTDIR ?= /opt/bin |
| 12 |
| 11 all: cgpt | 13 all: cgpt |
| 12 | 14 |
| 13 cgpt: cgpt.o cgpt_add_modify_delete.o cgpt_attribute.o cgpt_dev.o \ | 15 cgpt: cgpt.o cgpt_add_modify_delete.o cgpt_attribute.o cgpt_dev.o \ |
| 14 cgpt_options.o cgpt_repair.o cgpt_show.o $(LIBS) | 16 cgpt_options.o cgpt_repair.o cgpt_show.o $(LIBS) |
| 15 $(CC) -o cgpt $(CFLAGS) $^ | 17 $(CC) -o cgpt $(CFLAGS) $^ |
| 16 | 18 |
| 17 .c.o: $(INCLUDES) | 19 .c.o: $(INCLUDES) |
| 18 $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ | 20 $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ |
| 19 clean: | 21 clean: |
| 20 rm -f cgpt *.o *~ | 22 rm -f cgpt *.o *~ |
| 23 |
| 24 install: cgpt |
| 25 mkdir -p $(DESTDIR) |
| 26 cp -f $^ $(DESTDIR) |
| 27 chmod a+rx $(patsubst %,$(DESTDIR)/%,$^) |
| OLD | NEW |