summaryrefslogtreecommitdiff
path: root/overlays/libdscp/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'overlays/libdscp/src/Makefile')
-rw-r--r--overlays/libdscp/src/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/overlays/libdscp/src/Makefile b/overlays/libdscp/src/Makefile
new file mode 100644
index 00000000..e76930d7
--- /dev/null
+++ b/overlays/libdscp/src/Makefile
@@ -0,0 +1,16 @@
1ifeq ($(PREFIX),)
2 PREFIX := /usr/local
3endif
4
5.PHONY: all install
6
7all: libdscp
8
9libdscp:
10 $(CC) \
11 -o $@.so $@.c \
12 -D_GNU_SOURCE \
13 -nostartfiles -shared
14install: libdscp
15 install -d $(DESTDIR)$(PREFIX)/lib/
16 install -m 644 libdscp.so $(DESTDIR)$(PREFIX)/lib/