summaryrefslogtreecommitdiff
path: root/cras/cras.mk
blob: 8ad715e4c2fb00b7ce62fdc36c8770d29c99f941 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright (c) 2012 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.
#include $(ADHD_DIR)/defs/definitions.mk
CWARN=
CFLAGS=

$(ADHD_DIR)/cras/configure: $(ADHD_DIR)/cras/configure.ac \
                            $(ADHD_DIR)/cras/Makefile.am
	(cd $(ADHD_DIR)/cras		&&	\
	$(ADHD_DIR)/cras/git_prepare.sh)

$(ADHD_DIR)/cras/Makefile: $(ADHD_DIR)/cras/configure
	(cd $(ADHD_DIR)/cras		&&	\
	$(ADHD_DIR)/cras/configure		\
	    --build=$(CBUILD)			\
	    --host=$(CHOST)			\
	    --prefix=/usr			\
	    --mandir=/usr/share/man		\
	    --infodir=/usr/share/info		\
	    --datadir=/usr/share		\
	    --sysconfdir=/etc			\
	    --localstatedir=/var/lib)

cras: $(ADHD_DIR)/cras/Makefile
	(cd $(ADHD_DIR)/cras		&&	\
	$(MAKE) -f $(ADHD_DIR)/cras/Makefile)

cras_install:
	(cd $(ADHD_DIR)/cras		&&	\
	$(MAKE) -f $(ADHD_DIR)/cras/Makefile install)