| 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 += $(TOP)/cgptlib/libcgpt.a $(FWLIB) | 9 LIBS += $(TOP)/cgptlib/libcgpt.a $(FWLIB) |
| 10 | 10 |
| 11 all: cgpt | 11 all: cgpt |
| 12 | 12 |
| 13 cgpt: cgpt.o cgpt_attribute.o cgpt_options.o cgpt_repair.o cgpt_show.o $(LIBS) | 13 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) |
| 14 $(CC) -o cgpt $(CFLAGS) $^ | 15 $(CC) -o cgpt $(CFLAGS) $^ |
| 15 | 16 |
| 16 .c.o: $(INCLUDES) | 17 .c.o: $(INCLUDES) |
| 17 $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ | 18 $(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ |
| 18 clean: | 19 clean: |
| 19 rm -f cgpt *.o *~ | 20 rm -f cgpt *.o *~ |
| OLD | NEW |