blob: a1a24680061c74040458ada619ea28f5bfac50f2 [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
Robert Kausch096a63d2018-05-19 01:35:18 +02003# Copyright (C) 2011-2018 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 = ../..
Thomas Zanderc05b7ba2015-10-29 14:22:12 +010024
25include $(topdir)/build/config.mk
Erik de Castro Lopo85d5c532013-01-02 22:37:42 +110026libdir = $(topdir)/objs/$(BUILD)/lib
Josh Coalsoncd0e3222002-10-23 22:08:13 +000027
Josh Coalson57ba6f42002-06-07 05:27:37 +000028PROGRAM_NAME = test_libFLAC
Josh Coalson2757af62004-10-30 00:03:21 +000029
30INCLUDES = -I../libFLAC/include -I$(topdir)/include
31
Josh Coalsonc10f9782008-09-14 19:59:52 +000032ifeq ($(OS),Darwin)
Hendricks26696d081c2012-12-29 04:22:59 -060033 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 +000034else
Hendricks26696d081c2012-12-29 04:22:59 -060035 LIBS = -lgrabbag -lreplaygain_analysis -ltest_libs_common -lFLAC $(OGG_LIBS) -lm
Josh Coalson2757af62004-10-30 00:03:21 +000036endif
37
Josh Coalsonb74fc982002-11-20 06:40:08 +000038SRCS_C = \
Josh Coalson423f8042007-01-28 17:40:26 +000039 bitwriter.c \
Robert Kausch096a63d2018-05-19 01:35:18 +020040 crc.c \
Josh Coalsonb74fc982002-11-20 06:40:08 +000041 decoders.c \
42 encoders.c \
Erik de Castro Lopo7422e082014-07-03 05:38:09 +100043 endswap.c \
Josh Coalson2de11242004-12-30 03:41:19 +000044 format.c \
Josh Coalsonb74fc982002-11-20 06:40:08 +000045 main.c \
Evan Ramos9df67362014-06-23 16:24:49 -050046 md5.c \
Josh Coalsonb74fc982002-11-20 06:40:08 +000047 metadata.c \
48 metadata_manip.c \
Josh Coalson6b21f662006-09-13 01:42:27 +000049 metadata_object.c
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000050
Josh Coalsoncd0e3222002-10-23 22:08:13 +000051include $(topdir)/build/exe.mk
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000052
53# DO NOT DELETE THIS LINE -- make depend depends on it.