shithub: aacdec

ref: 4cebe678d736d6bf846d8d80e8243a3efa48e090
dir: /plugins/xmms/src/Makefile.save/

View raw version

CC = gcc
CPP = g++
LDFLAGS = -lpthread -lfaad -L/usr/local/faad2/lib -lid3 -lz
CFLAGS = -O2 -Wall
INCLUDE = -I/usr/local/faad2/include `xmms-config --cflags`
OBJS = libaac.o id3.o dialog_gtk1.o

.SUFFIXES: .c .o

.c.o:
	$(CC) -c $(CFLAGS) $(INCLUDE) -o $@ $<

.cpp.o:
	$(CPP) -c $(CFLAGS) $(INCLUDE) -o $@ $<

all: $(OBJS)
	$(CPP) -shared -o libaac.so $(OBJS) `xmms-config --libs` $(INCLUDE) $(CFLAGS) $(LDFLAGS)
	strip --strip-debug libaac.so

install:
	mv libaac.so $(HOME)/.xmms/Plugins/