blob: 25c08a4c5b677fe9bcb64df735b08876bdca3422 [file] [log] [blame]
Josh Coalson57ba6f42002-06-07 05:27:37 +00001# test_libFLAC - Unit tester for libFLAC
Josh Coalsondea0f5a2009-01-07 07:31:28 +00002# Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007,2008,2009 Josh Coalson
Josh Coalson6b05bc52001-06-08 00:13:21 +00003#
4# This program is free software; you can redistribute it and/or
5# modify it under the terms of the GNU General Public License
6# as published by the Free Software Foundation; either version 2
7# of the License, or (at your option) any later version.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
Miroslav Lichvar6a1f59b2012-12-04 17:36:05 +010014# You should have received a copy of the GNU General Public License along
15# with this program; if not, write to the Free Software Foundation, Inc.,
16# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Josh Coalson6b05bc52001-06-08 00:13:21 +000017
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000018#
19# GNU makefile
20#
21
Josh Coalsoncd0e3222002-10-23 22:08:13 +000022topdir = ../..
Josh Coalson2757af62004-10-30 00:03:21 +000023libdir = $(topdir)/obj/$(BUILD)/lib
Josh Coalsoncd0e3222002-10-23 22:08:13 +000024
Josh Coalson57ba6f42002-06-07 05:27:37 +000025PROGRAM_NAME = test_libFLAC
Josh Coalson2757af62004-10-30 00:03:21 +000026
27INCLUDES = -I../libFLAC/include -I$(topdir)/include
28
Josh Coalsonc10f9782008-09-14 19:59:52 +000029ifeq ($(OS),Darwin)
Josh Coalson89a82052006-11-08 01:21:51 +000030EXPLICIT_LIBS = $(libdir)/libgrabbag.a $(libdir)/libreplaygain_analysis.a $(libdir)/libtest_libs_common.a $(libdir)/libFLAC.a $(OGG_LIB_DIR)/libogg.a -lm
Josh Coalson2757af62004-10-30 00:03:21 +000031else
Josh Coalson0b9442c2006-10-16 16:18:34 +000032LIBS = -lgrabbag -lreplaygain_analysis -ltest_libs_common -lFLAC -L$(OGG_LIB_DIR) -logg -lm
Josh Coalson2757af62004-10-30 00:03:21 +000033endif
34
Josh Coalsonb74fc982002-11-20 06:40:08 +000035SRCS_C = \
Josh Coalson423f8042007-01-28 17:40:26 +000036 bitwriter.c \
Josh Coalsonb74fc982002-11-20 06:40:08 +000037 decoders.c \
38 encoders.c \
Josh Coalson2de11242004-12-30 03:41:19 +000039 format.c \
Josh Coalsonb74fc982002-11-20 06:40:08 +000040 main.c \
41 metadata.c \
42 metadata_manip.c \
Josh Coalson6b21f662006-09-13 01:42:27 +000043 metadata_object.c
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000044
Josh Coalsoncd0e3222002-10-23 22:08:13 +000045include $(topdir)/build/exe.mk
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000046
47# DO NOT DELETE THIS LINE -- make depend depends on it.