diff options
author | Anton Staaf <robotboy@chromium.org> | 2014-09-10 12:33:58 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-09-11 20:00:21 +0000 |
commit | dab91fe9ec6ecddea2e3f6f46d207263b58d7982 (patch) | |
tree | aae6f9162e2498fadf2595cf92f258f9c18ddf2e /extra/lightbar/Makefile | |
parent | 0e59d4f38a97defe45351f2b1e132f76f17160e6 (diff) | |
download | chrome-ec-dab91fe9ec6ecddea2e3f6f46d207263b58d7982.tar.gz |
extra: Move lightbar simulator into subdirectory
This clears the top level extra directory for additional
extras.
Signed-off-by: Anton Staaf <robotboy@chromium.org>
BRANCH=None
BUG=None
TEST=cd extra/lightbar; make; lightbar
Change-Id: If05a768e4d33cbf21b2ce47a056c960a95728558
Reviewed-on: https://chromium-review.googlesource.com/217537
Tested-by: Anton Staaf <robotboy@chromium.org>
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Commit-Queue: Anton Staaf <robotboy@chromium.org>
Diffstat (limited to 'extra/lightbar/Makefile')
-rw-r--r-- | extra/lightbar/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/extra/lightbar/Makefile b/extra/lightbar/Makefile new file mode 100644 index 0000000000..920483b781 --- /dev/null +++ b/extra/lightbar/Makefile @@ -0,0 +1,28 @@ +# 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} |