blob: ed2b7973d0131765a416693e53a99fa6afae3f29 [file] [log] [blame]
Josh Coalson57ba6f42002-06-07 05:27:37 +00001# test_libFLAC - Unit tester for libFLAC
Josh Coalson0395dac2006-04-25 06:59:33 +00002# Copyright (C) 2000,2001,2002,2003,2004,2005,2006 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#
14# You should have received a copy of the GNU General Public License
15# along with this program; if not, write to the Free Software
16# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
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
29ifeq ($(DARWIN_BUILD),yes)
Josh Coalson6b21f662006-09-13 01:42:27 +000030EXPLICIT_LIBS = $(libdir)/libgrabbag.a $(libdir)/libreplaygain_analysis.a $(libdir)/libtest_libs_common.a $(libdir)/libFLAC.a -lm
Josh Coalson2757af62004-10-30 00:03:21 +000031else
Josh Coalson6b21f662006-09-13 01:42:27 +000032LIBS = -lgrabbag -lreplaygain_analysis -ltest_libs_common -lOggFLAC -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 = \
36 bitbuffer.c \
37 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.