From 690fc539a2c07cfcb712f1b2ddc35f170f4383a9 Mon Sep 17 00:00:00 2001 From: Taylor Hutt Date: Fri, 2 Sep 2011 10:23:43 -0700 Subject: ADHD: Daemon for watching A/V device events Details o Adds start of a program which will dump the data structures for the given sound card. o Adds infrastructure to handle different threads w/ automatic startup. Threads are declared with THREAD_DESCRIPTOR, and the system infrastructure handles all the startup and management. o Adds signal handling infrastructure; restarts threads on SIGHUP. o Added command line argument processing. Note that, at least, Goobuntu has a defect in getopt_long(). --option will yield a SEGV because 'optarg' is NULL. --option= works, however. Testing Execute 'make' in the 'adhd' directory, and the project builds. Execute 'gavd', and note the message output. BUG=chromium-os:19558 TEST=See above Change-Id: I521df7fb87fff8cc648daccf4c73eb1daca066f8 Signed-off-by: Taylor Hutt --- Makefile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 82cbf70e..b2f887b5 100644 --- a/Makefile +++ b/Makefile @@ -2,21 +2,20 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. ifndef BOARD -$(warning 'BOARD' is not defined. Board-specific features will \ - not be available.) +$(error 'BOARD' is not defined. Unable to build gavd.) endif export ADHD_DIR = $(shell pwd) include $(ADHD_DIR)/defs/definitions.mk -all: gavd +all: gavd alsainfo -gavd:: lib +alsainfo gavd:: lib -lib gavd:: # Google Audio Visual Daemon +lib gavd alsainfo:: @$(call remake,$@) clean: @rm -rf $(ADHD_BUILD_DIR) -.PHONY: gavd clean +.PHONY: gavd clean alsainfo lib -- cgit v1.2.3