2008-11-06 23:27:06 +00:00
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
|
|
|
|
PLUGIN = libSPU2null.so
|
2009-02-25 12:30:10 +00:00
|
|
|
CFLAGS+= -fPIC -Wall -O2 -fomit-frame-pointer -D__LINUX__ -I../../../common/include
|
2008-11-06 23:27:06 +00:00
|
|
|
OBJS = SPU2.o
|
|
|
|
DEPS:= $(OBJS:.o=.d)
|
|
|
|
LIBS = $(shell pkg-config --libs gtk+-2.0)
|
|
|
|
CFLAGS+= $(shell pkg-config --cflags gtk+-2.0)
|
|
|
|
|
|
|
|
all: plugin
|
|
|
|
install: all
|
|
|
|
|
|
|
|
plugin: ${OBJS}
|
|
|
|
rm -f ${PLUGIN}
|
|
|
|
gcc -shared -Wl,-soname,${PLUGIN} ${CFLAGS} ${OBJS} -o ${PLUGIN} ${LIBS}
|
|
|
|
strip --strip-unneeded --strip-debug ${PLUGIN}
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f ${OBJS} ${DEPS}
|
|
|
|
|
|
|
|
%.o: %.cpp
|
|
|
|
${CC} ${CFLAGS} -c -o $@ $< -MD -MF $(patsubst %.o,%.d,$@)
|
|
|
|
|
|
|
|
#-include ${DEPS}
|