blob: 42e9dce16a4a1541ad8b907acc96168e1f01dbf5 [file] [log] [blame]
Josh Coalson57ba6f42002-06-07 05:27:37 +00001# test_libFLAC - Unit tester for libFLAC
Erik de Castro Lopob1982fb2013-05-25 17:11:19 +10002# Copyright (C) 2000-2009 Josh Coalson
3# Copyright (C) 2011-2013 Xiph.Org Foundation
Josh Coalson6b05bc52001-06-08 00:13:21 +00004#
5# This program is free software; you can redistribute it and/or
6# modify it under the terms of the GNU General Public License
7# as published by the Free Software Foundation; either version 2
8# of the License, or (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
Miroslav Lichvar6a1f59b2012-12-04 17:36:05 +010015# You should have received a copy of the GNU General Public License along
16# with this program; if not, write to the Free Software Foundation, Inc.,
17# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Josh Coalson6b05bc52001-06-08 00:13:21 +000018
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000019#
20# GNU makefile
21#
22
Josh Coalsoncd0e3222002-10-23 22:08:13 +000023topdir = ../..
Erik de Castro Lopo85d5c532013-01-02 22:37:42 +110024libdir = $(topdir)/objs/$(BUILD)/lib
Josh Coalsoncd0e3222002-10-23 22:08:13 +000025
Josh Coalson57ba6f42002-06-07 05:27:37 +000026PROGRAM_NAME = test_libFLAC
Josh Coalson2757af62004-10-30 00:03:21 +000027
28INCLUDES = -I../libFLAC/include -I$(topdir)/include
29
Josh Coalsonc10f9782008-09-14 19:59:52 +000030ifeq ($(OS),Darwin)
Hendricks26696d081c2012-12-29 04:22:59 -060031 EXPLICIT_LIBS = $(libdir)/libgrabbag.a $(libdir)/libreplaygain_analysis.a $(libdir)/libtest_libs_common.a $(libdir)/libFLAC.a $(OGG_EXPLICIT_LIBS) -lm
Josh Coalson2757af62004-10-30 00:03:21 +000032else
Hendricks26696d081c2012-12-29 04:22:59 -060033 LIBS = -lgrabbag -lreplaygain_analysis -ltest_libs_common -lFLAC $(OGG_LIBS) -lm
Josh Coalson2757af62004-10-30 00:03:21 +000034endif
35
Josh Coalsonb74fc982002-11-20 06:40:08 +000036SRCS_C = \
Josh Coalson423f8042007-01-28 17:40:26 +000037 bitwriter.c \
Josh Coalsonb74fc982002-11-20 06:40:08 +000038 decoders.c \
39 encoders.c \
Josh Coalson2de11242004-12-30 03:41:19 +000040 format.c \
Josh Coalsonb74fc982002-11-20 06:40:08 +000041 main.c \
42 metadata.c \
43 metadata_manip.c \
Josh Coalson6b21f662006-09-13 01:42:27 +000044 metadata_object.c
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000045
Josh Coalsoncd0e3222002-10-23 22:08:13 +000046include $(topdir)/build/exe.mk
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000047
48# DO NOT DELETE THIS LINE -- make depend depends on it.