diff options
Diffstat (limited to 'overlays/libdscp/src/Makefile')
-rw-r--r-- | overlays/libdscp/src/Makefile | 16 |
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 @@ | |||
1 | ifeq ($(PREFIX),) | ||
2 | PREFIX := /usr/local | ||
3 | endif | ||
4 | |||
5 | .PHONY: all install | ||
6 | |||
7 | all: libdscp | ||
8 | |||
9 | libdscp: | ||
10 | $(CC) \ | ||
11 | -o $@.so $@.c \ | ||
12 | -D_GNU_SOURCE \ | ||
13 | -nostartfiles -shared | ||
14 | install: libdscp | ||
15 | install -d $(DESTDIR)$(PREFIX)/lib/ | ||
16 | install -m 644 libdscp.so $(DESTDIR)$(PREFIX)/lib/ | ||