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