summaryrefslogtreecommitdiff
path: root/overlays/libdscp/src/Makefile
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2023-03-10 22:24:40 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2023-03-10 22:24:40 +0100
commitc2fbcde4449ffaf798f9ba4f742b942d33a1c1c8 (patch)
tree71822737cbc6d60d1949a4b07a93dcaaff415bb0 /overlays/libdscp/src/Makefile
parente275caddb607b8ff37569be66f1bf44303919502 (diff)
downloadnixos-c2fbcde4449ffaf798f9ba4f742b942d33a1c1c8.tar
nixos-c2fbcde4449ffaf798f9ba4f742b942d33a1c1c8.tar.gz
nixos-c2fbcde4449ffaf798f9ba4f742b942d33a1c1c8.tar.bz2
nixos-c2fbcde4449ffaf798f9ba4f742b942d33a1c1c8.tar.xz
nixos-c2fbcde4449ffaf798f9ba4f742b942d33a1c1c8.zip
libdscp
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/