blob: d6580c883c6df395c1b5805d51740f5f7b1580f9 [file] [log] [blame]
# 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.
LDFLAGS = -lasound -lpthread \
-L$(SYSROOT)/lib \
-L$(SYSROOT)/usr/lib
CFLAGS = -Wall -Werror -O2 \
-I$(SYSROOT)/usr/include
OFILES += libaudiodev.o looptest.o
.PHONY: clean run all install
all: looptest
looptest: $(OFILES)
libaudiodev.o: libaudiodev.c libaudiodev.h
looptest.o: looptest.c libaudiodev.h
install: looptest
install -m 0755 looptest $(SYSROOT)/usr/local/bin
run:
./looptest
clean:
rm -rf looptest $(OFILES)