Makefile.lite 1.54 KB
Newer Older
1
#  flac - Command-line FLAC encoder/decoder
Josh Coalson's avatar
Josh Coalson committed
2
#  Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007,2008,2009  Josh Coalson
3
4
5
6
7
8
9
10
11
12
13
#
#  This program is free software; you can redistribute it and/or
#  modify it under the terms of the GNU General Public License
#  as published by the Free Software Foundation; either version 2
#  of the License, or (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
Miroslav Lichvar's avatar
Miroslav Lichvar committed
14
15
16
#  You should have received a copy of the GNU General Public License along
#  with this program; if not, write to the Free Software Foundation, Inc.,
#  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17

Josh Coalson's avatar
Josh Coalson committed
18
19
20
21
#
# GNU makefile
#

22
topdir = ../..
23
libdir = $(topdir)/obj/$(BUILD)/lib
24

Josh Coalson's avatar
Josh Coalson committed
25
PROGRAM_NAME = flac
26

27
INCLUDES = -I./include -I$(topdir)/include $(OGG_INCLUDES)
28

29
ifeq ($(OS),Darwin)
30
    EXPLICIT_LIBS = $(libdir)/libgrabbag.a $(libdir)/libFLAC.a $(libdir)/libreplaygain_analysis.a $(libdir)/libreplaygain_synthesis.a $(libdir)/libgetopt.a $(libdir)/libutf8.a $(OGG_EXPLICIT_LIBS) $(ICONV_LIBS) -lm
Josh Coalson's avatar
Josh Coalson committed
31
else
32
    LIBS = -lgrabbag -lFLAC -lreplaygain_analysis -lreplaygain_synthesis -lgetopt -lutf8 -lgrabbag $(OGG_LIBS) -lm
Josh Coalson's avatar
Josh Coalson committed
33
endif
Josh Coalson's avatar
Josh Coalson committed
34

35
36
37
38
SRCS_C = \
	analyze.c \
	decode.c \
	encode.c \
39
	foreign_metadata.c \
40
	local_string_utils.c \
41
	main.c \
Josh Coalson's avatar
Josh Coalson committed
42
	utils.c \
43
	vorbiscomment.c
Josh Coalson's avatar
Josh Coalson committed
44

45
include $(topdir)/build/exe.mk
Josh Coalson's avatar
Josh Coalson committed
46
47

# DO NOT DELETE THIS LINE -- make depend depends on it.