diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2023-03-10 22:24:40 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2023-03-10 22:24:40 +0100 |
commit | c2fbcde4449ffaf798f9ba4f742b942d33a1c1c8 (patch) | |
tree | 71822737cbc6d60d1949a4b07a93dcaaff415bb0 /overlays/libdscp/src/Makefile | |
parent | e275caddb607b8ff37569be66f1bf44303919502 (diff) | |
download | nixos-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/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/ | ||