mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-12 19:04:59 +00:00
After this change the generated files are placed in a separate tree (such thet they don't show in the `git status' output anymore) and the dependencies are followed properly (if a .h file changes the appropriate .o files and apps get rebuilt). Tested as follows: > $ make clean > $ make # build succeeds > $ git status # shows clean directory > $ RUNTESTS=1 make # (captured test output matches that of the test run before any changes) > $ touch ./vboot_firmware/include/tlcl.h > $ make # make succeeds > $ find build -type f -newer ./vboot_firmware/include/tlcl.h build/vboot_firmware/lib/rollback_index.o build/vboot_firmware/lib/rollback_index.o.d build/vboot_firmware/a.out build/vboot_fw.a build/utility/vbutil_key build/utility/kernel_utility.d build/utility/vbutil_key.d build/utility/verify_data build/utility/load_kernel_test.d build/utility/vbutil_keyblock.d build/utility/vbutil_kernel build/utility/vbutil_kernel.d build/utility/firmware_utility build/utility/signature_digest_utility.d build/utility/kernel_utility build/utility/verify_data.d build/utility/vbutil_keyblock build/utility/signature_digest_utility build/utility/load_kernel_test build/utility/firmware_utility.d build/tests/vboot_common3_tests build/tests/vboot_common2_tests build/host/a.out $ > Review URL: http://codereview.chromium.org/2845001
33 lines
762 B
Makefile
33 lines
762 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.
|
|
|
|
HOSTTOP := $(shell pwd)
|
|
TESTDIR = $(HOSTTOP)/linktest
|
|
BUILD_ROOT := ${BUILD}/$(shell basename ${HOSTTOP})
|
|
|
|
INCLUDES += \
|
|
-I$(HOSTTOP)/include \
|
|
-I$(FWDIR)/lib/include \
|
|
-I$(FWDIR)/lib/cgptlib/include \
|
|
-I$(FWDIR)/lib/cryptolib/include
|
|
|
|
# find ./lib -iname '*.c' | sort
|
|
ALL_SRCS = \
|
|
./lib/host_common.c \
|
|
./lib/host_key.c \
|
|
./lib/host_keyblock.c \
|
|
./lib/host_misc.c \
|
|
./lib/host_signature.c
|
|
|
|
|
|
test : $(HOSTLIB)
|
|
$(CC) $(CFLAGS) $(INCLUDES) -o $(BUILD_ROOT)/a.out $(TESTDIR)/main.c \
|
|
$(HOSTLIB) $(FWLIB) -lcrypto
|
|
|
|
include ../common.mk
|
|
|
|
$(HOSTLIB) : $(ALL_OBJS)
|
|
rm -f $@
|
|
ar qc $@ $^
|