Chris@1: # example_cpp_encode_file - Simple FLAC file encoder using libFLAC Chris@1: # Copyright (C) 2007 Josh Coalson Chris@1: # Chris@1: # This program is free software; you can redistribute it and/or Chris@1: # modify it under the terms of the GNU General Public License Chris@1: # as published by the Free Software Foundation; either version 2 Chris@1: # of the License, or (at your option) any later version. Chris@1: # Chris@1: # This program is distributed in the hope that it will be useful, Chris@1: # but WITHOUT ANY WARRANTY; without even the implied warranty of Chris@1: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Chris@1: # GNU General Public License for more details. Chris@1: # Chris@1: # You should have received a copy of the GNU General Public License Chris@1: # along with this program; if not, write to the Free Software Chris@1: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Chris@1: Chris@1: # Chris@1: # GNU makefile Chris@1: # Chris@1: Chris@1: topdir = ../../../.. Chris@1: libdir = $(topdir)/obj/$(BUILD)/lib Chris@1: Chris@1: PROGRAM_NAME = example_cpp_encode_file Chris@1: Chris@1: INCLUDES = -I$(topdir)/include Chris@1: Chris@1: ifeq ($(DARWIN_BUILD),yes) Chris@1: EXPLICIT_LIBS = $(libdir)/libFLAC++.a $(libdir)/libFLAC.a $(OGG_LIB_DIR)/libogg.a -lm Chris@1: else Chris@1: LIBS = -lFLAC++ -lFLAC -L$(OGG_LIB_DIR) -logg -lm Chris@1: endif Chris@1: Chris@1: SRCS_CPP = main.cpp Chris@1: Chris@1: include $(topdir)/build/exe.mk Chris@1: Chris@1: LINK = $(CCC) $(LINKAGE) Chris@1: Chris@1: # DO NOT DELETE THIS LINE -- make depend depends on it.