Initial commit.
[libsalac.git] / src / lib / alac / codec / makefile
blob27d49c1e8f7a506a8b2b9c404d0f55ceb64c1b23
1 # libalac make
3 CFLAGS = -g -O0 -fPIC -c
4 LFLAGS = -Wall
5 CC = g++
7 SRCDIR = .
8 OBJDIR = ./obj
9 INCLUDES = .
11 HEADERS = \
12 $(SRCDIR)/EndianPortable.h \
13 $(SRCDIR)/aglib.h \
14 $(SRCDIR)/ALACAudioTypes.h \
15 $(SRCDIR)/ALACBitUtilities.h\
16 $(SRCDIR)/ALACDecoder.h \
17 $(SRCDIR)/ALACEncoder.h \
18 $(SRCDIR)/dplib.h \
19 $(SRCDIR)/matrixlib.h
21 SOURCES = \
22 $(SRCDIR)/EndianPortable.c \
23 $(SRCDIR)/ALACBitUtilities.c \
24 $(SRCDIR)/ALACDecoder.cpp \
25 $(SRCDIR)/ALACEncoder.cpp \
26 $(SRCDIR)/ag_dec.c \
27 $(SRCDIR)/ag_enc.c \
28 $(SRCDIR)/dp_dec.c \
29 $(SRCDIR)/dp_enc.c \
30 $(SRCDIR)/matrix_dec.c \
31 $(SRCDIR)/matrix_enc.c
33 OBJS = \
34 EndianPortable.o \
35 ALACBitUtilities.o \
36 ALACDecoder.o \
37 ALACEncoder.o \
38 ag_dec.o \
39 ag_enc.o \
40 dp_dec.o \
41 dp_enc.o \
42 matrix_dec.o \
43 matrix_enc.o
45 libalac.a: $(OBJS)
46 ar rcs libalac.a $(OBJS)
48 EndianPortable.o : EndianPortable.c
49 $(CC) -I $(INCLUDES) $(CFLAGS) EndianPortable.c
51 ALACBitUtilities.o : ALACBitUtilities.c
52 $(CC) -I $(INCLUDES) $(CFLAGS) ALACBitUtilities.c
54 ALACDecoder.o : ALACDecoder.cpp
55 $(CC) -I $(INCLUDES) $(CFLAGS) ALACDecoder.cpp
57 ALACEncoder.o : ALACEncoder.cpp
58 $(CC) -I $(INCLUDES) $(CFLAGS) ALACEncoder.cpp
60 ag_dec.o : ag_dec.c
61 $(CC) -I $(INCLUDES) $(CFLAGS) ag_dec.c
63 ag_enc.o : ag_enc.c
64 $(CC) -I $(INCLUDES) $(CFLAGS) ag_enc.c
66 dp_dec.o : dp_dec.c
67 $(CC) -I $(INCLUDES) $(CFLAGS) dp_dec.c
69 dp_enc.o : dp_enc.c
70 $(CC) -I $(INCLUDES) $(CFLAGS) dp_enc.c
72 matrix_dec.o : matrix_dec.c
73 $(CC) -I $(INCLUDES) $(CFLAGS) matrix_dec.c
75 matrix_enc.o : matrix_enc.c
76 $(CC) -I $(INCLUDES) $(CFLAGS) matrix_enc.c
78 clean:
79 -rm $(OBJS) libalac.a