From 604a2f1be71151d320d280898ddc138e73a2905a Mon Sep 17 00:00:00 2001 From: John Fredriksson Date: Mon, 26 Sep 2011 17:25:36 +0200 Subject: Add debian packaging files Add debian directory which describes how to build debian packages. Add GNUmakefile to override default Makefile which cannot be used outside of the multimedia build system. --- GNUmakefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 GNUmakefile (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile new file mode 100644 index 0000000..dd3a8b5 --- /dev/null +++ b/GNUmakefile @@ -0,0 +1,31 @@ +.PHONY: clean build libblt_hw.so +IDIR =./include +CC=gcc +CFLAGS=-I$(IDIR) -I$(KDIR) + +SDIR=./src + +LIBS=-lpthread + +default: build + +blt_b2r2.o: $(SDIR)/blt_b2r2.c + gcc -fPIC -g -c -o $@ $^ $(CFLAGS) + +libblt_hw.so: blt_b2r2.o + gcc -shared -Wl,-soname,libblt_hw.so.1 -o libblt_hw.so.1.0 $^ $(LIBS) + +build: libblt_hw.so + +install: + mkdir -p $(DESTDIR)/usr/lib + find . -name "*.so*" + cp *.so* $(DESTDIR)/usr/lib/ + ln -s $(DESTDIR)/usr/lib/libblt_hw.so.1.0 $(DESTDIR)/usr/lib/libblt_hw.so.1 + ln -s $(DESTDIR)/usr/lib/libblt_hw.so.1 $(DESTDIR)/usr/lib/libblt_hw.so + + mkdir -p $(DESTDIR)/usr/include + cp $(IDIR)/*.h $(DESTDIR)/usr/include +clean: + rm -f *.o *.so.* + -- cgit v1.2.3