mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 17:41:54 +00:00
Build output is now in ./build Fixed compiler warnings in ec_uartd, ec_console BUG=none TEST=make Change-Id: I9a46ab6b9d4e912e59a60c669e95dc0c6f8485df
29 lines
668 B
Makefile
29 lines
668 B
Makefile
# Copyright (c) 2011 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.
|
|
|
|
CFLAGS += $(INCLUDES)
|
|
CFLAGS += -MMD -MF $@.d
|
|
HOSTCC = cc
|
|
|
|
BUILD_ROOT = ${BUILD}/utility
|
|
|
|
DESTDIR ?= /usr/bin
|
|
|
|
TARGET_NAMES = ec_uartd
|
|
|
|
TARGET_BINS = $(addprefix ${BUILD_ROOT}/,$(TARGET_NAMES))
|
|
ALL_DEPS = $(addsuffix .d,${TARGET_BINS})
|
|
|
|
all: $(TARGET_BINS)
|
|
|
|
${BUILD_ROOT}/ec_uartd: ec_uartd.c $(LIBS)
|
|
$(CC) $(CFLAGS) $< -o $@ $(LIBS) -lftdi
|
|
|
|
install: $(TARGET_BINS)
|
|
mkdir -p $(DESTDIR)
|
|
cp -f $(TARGET_BINS) $(DESTDIR)
|
|
chmod a+rx $(patsubst %,$(DESTDIR)/%,$(TARGET_NAMES))
|
|
|
|
-include ${ALL_DEPS}
|