blob: 997e9156aba94c53fa2633024a853405b28d5c1b [file] [log] [blame]
Josh Coalson6b05bc52001-06-08 00:13:21 +00001# libFLAC - Free Lossless Audio Codec library
Josh Coalson1152f9f2002-01-26 18:05:12 +00002# Copyright (C) 2001,2002 Josh Coalson
Josh Coalson6b05bc52001-06-08 00:13:21 +00003#
4# This library is free software; you can redistribute it and/or
5# modify it under the terms of the GNU Library General Public
6# License as published by the Free Software Foundation; either
7# version 2 of the License, or (at your option) any later version.
8#
9# This library 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 GNU
12# Library General Public License for more details.
13#
14# You should have received a copy of the GNU Library General Public
15# License along with this library; if not, write to the
16# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17# Boston, MA 02111-1307, USA.
18
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000019#
20# GNU makefile
21#
22
Josh Coalsoncd0e3222002-10-23 22:08:13 +000023topdir = ../..
24
Josh Coalsonf29622d2002-05-17 06:19:02 +000025LIB_NAME = libFLAC
Josh Coalson6e144902001-12-07 19:28:25 +000026ifeq ($(DARWIN_BUILD),yes)
27DEFINES = -DFLAC__NO_NASM -DFLAC__ALIGN_MALLOC_DATA
28else
Josh Coalson8e46a5e2002-04-25 05:19:37 +000029ifeq ($(SOLARIS_BUILD),yes)
30DEFINES = -DFLAC__NO_NASM -DFLAC__ALIGN_MALLOC_DATA
31else
Josh Coalson07c2a0c2001-07-12 21:28:55 +000032DEFINES = -DFLAC__CPU_IA32 -DFLAC__HAS_NASM -DFLAC__ALIGN_MALLOC_DATA
Josh Coalson6e144902001-12-07 19:28:25 +000033endif
Josh Coalson8e46a5e2002-04-25 05:19:37 +000034endif
Josh Coalsoncd0e3222002-10-23 22:08:13 +000035INCLUDES = -I./include -I$(topdir)/include
Josh Coalsonbb6712e2001-04-24 22:54:07 +000036DEBUG_CFLAGS = -DFLAC__OVERFLOW_DETECT
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000037
Josh Coalson6e144902001-12-07 19:28:25 +000038ifeq ($(DARWIN_BUILD),yes)
39else
Josh Coalson8e46a5e2002-04-25 05:19:37 +000040ifeq ($(SOLARIS_BUILD),yes)
41else
Josh Coalsonb74fc982002-11-20 06:40:08 +000042SRCS_NASM = \
43 ia32/cpu_asm.nasm \
44 ia32/fixed_asm.nasm \
45 ia32/lpc_asm.nasm
Josh Coalson6e144902001-12-07 19:28:25 +000046endif
Josh Coalson8e46a5e2002-04-25 05:19:37 +000047endif
Josh Coalson6e144902001-12-07 19:28:25 +000048
Josh Coalsonb74fc982002-11-20 06:40:08 +000049SRCS_C = \
50 bitbuffer.c \
51 bitmath.c \
52 cpu.c \
53 crc.c \
54 file_decoder.c \
55 file_encoder.c \
56 fixed.c \
57 format.c \
58 lpc.c \
59 md5.c \
60 memory.c \
61 metadata_iterators.c \
62 metadata_object.c \
63 seekable_stream_decoder.c \
64 seekable_stream_encoder.c \
65 stream_decoder.c \
66 stream_encoder.c \
67 stream_encoder_framing.c
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000068
Josh Coalsoncd0e3222002-10-23 22:08:13 +000069include $(topdir)/build/lib.mk
Josh Coalsonbb7f6b92000-12-10 04:09:52 +000070
71# DO NOT DELETE THIS LINE -- make depend depends on it.