summaryrefslogtreecommitdiff
path: root/overlays/libdscp/src/Makefile
blob: 9b8baf22142a418c9d30561ef1a622bd258894d8 (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 \
		-lc
install: libdscp
	install -d $(DESTDIR)$(PREFIX)/lib/
	install -m 644 libdscp.so $(DESTDIR)$(PREFIX)/lib/