shithub: aacenc

ref: 39ceeea51bf321899c5d82f27b7c5ce8e4e35a0e
dir: /libfaac/Makefile/

View raw version
prefix = /usr/local

#CFLAGS := -ansi -pedantic $(CFLAGS)
CFLAGS := -DHAS_ULONG $(CFLAGS)

SRC= \
aacquant.c\
bitstream.c\
channels.c\
fft.c\
filtbank.c\
frame.c\
huffman.c\
joint.c\
psych.c\
util.c

OBJ = $(SRC:.c=.o)

all: libfaac.a libfaac.so

libfaac.so: $(OBJ)
	gcc -shared -o libfaac.so $(OBJ) -lm

libfaac.a: $(OBJ)
	ar rcs $@ $(OBJ)
	ranlib $@

install: libfaac.so libfaac.a
	mkdir -p $(prefix)/include
	mkdir -p $(prefix)/lib
	cp ../include/faac.h $(prefix)/include
	cp libfaac.so $(prefix)/lib
	cp libfaac.a $(prefix)/lib

uninstall:
	rm -f $(prefix)/include/faac.h
	rm -f $(prefix)/lib/libfaac.so
	rm -f $(prefix)/lib/libfaac.a

clean:
	rm -f $(OBJ)
	rm -f libfaac.a libfaac.so