blob: ce8a3eefa829433c95cc31b7090c5ed127f6adf2 [file] [log] [blame]
Josh Coalson6b05bc52001-06-08 00:13:21 +00001# metaflac - Command-line FLAC metadata editor
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 Coalson4d3b90f2001-02-23 21:38:26 +000018#
19# GNU makefile
20#
21
Josh Coalsoncd0e3222002-10-23 22:08:13 +000022topdir = ../..
Erik de Castro Lopo85d5c532013-01-02 22:37:42 +110023libdir = $(topdir)/objs/$(BUILD)/lib
Josh Coalsoncd0e3222002-10-23 22:08:13 +000024
Josh Coalson4d3b90f2001-02-23 21:38:26 +000025PROGRAM_NAME = metaflac
Josh Coalson2757af62004-10-30 00:03:21 +000026
Hendricks26696d081c2012-12-29 04:22:59 -060027INCLUDES = -I./include -I$(topdir)/include $(OGG_INCLUDES)
Josh Coalson2757af62004-10-30 00:03:21 +000028
Josh Coalsonc10f9782008-09-14 19:59:52 +000029ifeq ($(OS),Darwin)
Hendricks26696d081c2012-12-29 04:22:59 -060030 EXPLICIT_LIBS = $(libdir)/libgrabbag.a $(libdir)/libFLAC.a $(libdir)/libreplaygain_analysis.a $(libdir)/libgetopt.a $(libdir)/libutf8.a $(OGG_EXPLICIT_LIBS) $(ICONV_LIBS) -lm
Josh Coalson2757af62004-10-30 00:03:21 +000031else
Hendricks26696d081c2012-12-29 04:22:59 -060032 LIBS = -lgrabbag -lFLAC -lreplaygain_analysis -lgetopt -lutf8 -lgrabbag $(OGG_LIBS) -lm
Josh Coalson2757af62004-10-30 00:03:21 +000033endif
Josh Coalson4d3b90f2001-02-23 21:38:26 +000034
Josh Coalsonb74fc982002-11-20 06:40:08 +000035SRCS_C = \
36 main.c \
37 operations.c \
Josh Coalson303123f2002-11-26 06:21:06 +000038 operations_shorthand_cuesheet.c \
Josh Coalsonb02574e2006-09-26 00:43:48 +000039 operations_shorthand_picture.c \
Josh Coalsonb74fc982002-11-20 06:40:08 +000040 operations_shorthand_seektable.c \
41 operations_shorthand_streaminfo.c \
42 operations_shorthand_vorbiscomment.c \
43 options.c \
44 usage.c \
45 utils.c
Josh Coalson4d3b90f2001-02-23 21:38:26 +000046
Josh Coalsoncd0e3222002-10-23 22:08:13 +000047include $(topdir)/build/exe.mk
Josh Coalson4d3b90f2001-02-23 21:38:26 +000048
49# DO NOT DELETE THIS LINE -- make depend depends on it.