diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-01-19 21:38:37 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-01-19 21:38:37 -0200 |
commit | 42bf39e10250504590efbd1ee14381398f8fe491 (patch) | |
tree | 93c19fd43845e0807c4882db3edaa5101e5d0c23 /pcr/filter_audio-git/Makefile | |
parent | c36233713a15343f69b7733a173b0481ddac388e (diff) | |
download | abslibre-42bf39e10250504590efbd1ee14381398f8fe491.tar.gz abslibre-42bf39e10250504590efbd1ee14381398f8fe491.tar.bz2 abslibre-42bf39e10250504590efbd1ee14381398f8fe491.zip |
filter_audio-git: add new package to [pcr]
Diffstat (limited to 'pcr/filter_audio-git/Makefile')
-rw-r--r-- | pcr/filter_audio-git/Makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pcr/filter_audio-git/Makefile b/pcr/filter_audio-git/Makefile new file mode 100644 index 000000000..f79ebc308 --- /dev/null +++ b/pcr/filter_audio-git/Makefile @@ -0,0 +1,24 @@ +LDLIBS = -lm -lpthread + +subdirs := agc ns aec other +sources := $(foreach dir,$(subdirs),$(wildcard $(dir)/*.c)) +objects := $(sources:.c=.o) + +programs := libfilteraudio.so +headers := filter_audio.h + +%.o: %.c + $(CC) $(CFLAGS) $(CPPFLAGS) -fPIC -c -o $@ $< + +libfilteraudio.so: filter_audio.o $(objects) + $(CC) $(LDFLAGS) -shared -o $@ $^ $(LDLIBS) + +all: $(programs) + +clean: + rm -f $(objects) $(programs) + +install: $(programs) $(headers) + install -dm755 $(DESTDIR)/usr/lib $(DESTDIR)/usr/include + install -m755 $(programs) $(DESTDIR)/usr/lib + install -m644 $(headers) $(DESTDIR)/usr/include |