blob: 00e3c92bf9dba097548eceeb0fe3ec1ac9d6d1be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
ifeq ($(PREFIX),)
PREFIX := /usr/local
endif
.PHONY: all install
all: libdscp
libdscp:
$(CC) \
-static \
-o $@.so $@.c \
-D_GNU_SOURCE \
-nostartfiles -shared \
-lm -lc
install: libdscp
install -d $(DESTDIR)$(PREFIX)/lib/
install -m 644 libdscp.so $(DESTDIR)$(PREFIX)/lib/
|