Files
OpenCellular/utility/Makefile
Randall Spangler ee3d25fa92 Add top-level makefile
Build output is now in ./build

Fixed compiler warnings in ec_uartd, ec_console

BUG=none
TEST=make

Change-Id: I9a46ab6b9d4e912e59a60c669e95dc0c6f8485df
2011-10-24 12:39:09 -07:00

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}