| # Copyright 2016 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. |
| CC ?= $(CROSS_COMPILE)gcc |
| ifeq ($(CONFIG_UPTO_SHA512),y) |
| # Use V=1 for verbose output |
| ifeq ($(CONFIG_UPTO_SHA512),y) |
| CFLAGS += -DSHA512_SUPPORT |
| OBJS := $(patsubst %.c,$(obj)/%.o,$(SOURCES)) |
| DEPS := $(patsubst %.c,$(obj)/%.d,$(SOURCES)) |
| # This is the default target |
| $(obj)/libcryptoc.a: $(OBJS) |
| # Special target which allows to trigger re-compiling of all sources without |
| $(obj)/%.d $(obj)/%.o: %.c | $(obj) |
| $(Q)$(CC) $(CFLAGS) -c -MMD -MF $(basename $@).d -o $(basename $@).o $< |
| ifneq ($(MAKECMDGOALS),clean) |