diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-01-20 13:38:58 -0200 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-01-20 13:38:58 -0200 |
commit | ee507a0c39c1266b35158689cad8f7fe531f396a (patch) | |
tree | e0b37782f810aaaea25e328efa10a4560b6c3b27 /pcr/filter_audio-git/Makefile | |
parent | 03e1b1f2144c92194acd4d1d9a0c6e10ac51a4a3 (diff) | |
parent | a2df7958861eec4672c47cf90fe593a10cc42c8f (diff) |
Merge branch 'master' of ssh://projects.parabola.nu:1863/~git/abslibre/abslibre
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 |