Files
OpenCellular/extra/Makefile
Bill Richardson f4b12223e2 Tweaks to lightbar simulation
Improve the get_time() function, add support for GNU readline if desired.

BUG=none
BRANCH=ToT
TEST=manual

cd extra
make
./lightbar

Change-Id: Iedf84253b0e616a6a1b502415a487a2e6248cb2e
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/202698
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2014-06-05 23:14:34 +00:00

29 lines
681 B
Makefile

# Copyright (c) 2014 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.
PROG= lightbar
HEADERS= simulation.h
SRCS= main.c windows.c input.c ../common/lightbar.c
# comment this out if you don't have libreadline installed
HAS_GNU_READLINE=1
INCLUDE= -I. -I../include
CFLAGS= -g -Wall -Werror -pthread ${INCLUDE} -DLIGHTBAR_SIMULATION
LDFLAGS = -lX11 -lxcb -lrt
ifneq ($(HAS_GNU_READLINE),)
CFLAGS += -DHAS_GNU_READLINE
LDFLAGS += -lreadline
endif
all: ${PROG}
${PROG} : ${SRCS} ${HEADERS} Makefile
gcc ${CFLAGS} ${SRCS} ${LDFLAGS} -o ${PROG}
.PHONY: clean
clean:
rm -f ${PROG}