blob: 70cf311b1bbb64e02256ab51781432a4cff7e89e [file] [log] [blame]
Josh Coalson6b05bc52001-06-08 00:13:21 +00001# metaflac - Command-line FLAC metadata editor
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 Coalson4d3b90f2001-02-23 21:38:26 +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 Coalson4d3b90f2001-02-23 21:38:26 +000026PROGRAM_NAME = metaflac
Josh Coalson2757af62004-10-30 00:03:21 +000027
Hendricks26696d081c2012-12-29 04:22:59 -060028INCLUDES = -I./include -I$(topdir)/include $(OGG_INCLUDES)
Josh Coalson2757af62004-10-30 00:03:21 +000029
Josh Coalsonc10f9782008-09-14 19:59:52 +000030ifeq ($(OS),Darwin)
Hendricks26696d081c2012-12-29 04:22:59 -060031 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 +000032else
Evan Ramos9df67362014-06-23 16:24:49 -050033ifeq ($(findstring Windows,$(OS)),Windows)
34 LIBS = -lgrabbag -lFLAC -lreplaygain_analysis -lgetopt -lutf8 -lgrabbag -lwin_utf8_io $(OGG_LIBS) -lm
35else
Hendricks26696d081c2012-12-29 04:22:59 -060036 LIBS = -lgrabbag -lFLAC -lreplaygain_analysis -lgetopt -lutf8 -lgrabbag $(OGG_LIBS) -lm
Josh Coalson2757af62004-10-30 00:03:21 +000037endif
Evan Ramos9df67362014-06-23 16:24:49 -050038endif
Josh Coalson4d3b90f2001-02-23 21:38:26 +000039
Josh Coalsonb74fc982002-11-20 06:40:08 +000040SRCS_C = \
41 main.c \
42 operations.c \
Josh Coalson303123f2002-11-26 06:21:06 +000043 operations_shorthand_cuesheet.c \
Josh Coalsonb02574e2006-09-26 00:43:48 +000044 operations_shorthand_picture.c \
Josh Coalsonb74fc982002-11-20 06:40:08 +000045 operations_shorthand_seektable.c \
46 operations_shorthand_streaminfo.c \
47 operations_shorthand_vorbiscomment.c \
48 options.c \
49 usage.c \
50 utils.c
Josh Coalson4d3b90f2001-02-23 21:38:26 +000051
Josh Coalsoncd0e3222002-10-23 22:08:13 +000052include $(topdir)/build/exe.mk
Josh Coalson4d3b90f2001-02-23 21:38:26 +000053
54# DO NOT DELETE THIS LINE -- make depend depends on it.