summaryrefslogtreecommitdiff
path: root/usbredirserver/Makefile
blob: 889b8396c20be6097e1fb744f6dbfab0edf326e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
override CPPFLAGS    += $(shell pkg-config --cflags libusb-1.0)
LIBS                  = $(shell pkg-config --libs libusb-1.0)

USBREDIRSERVER_OBJS   = usbredirserver.o
TARGETS               = usbredirserver

all: $(TARGETS)

-include *.d

usbredirserver: $(USBREDIRSERVER_OBJS)
# rpath-link so that usbredirparser (needed by usbredirhost) can be found
# when building without having a previous version installed
	$(CC) $(LDFLAGS) -Wl,-rpath-link,../usbredirparser -o $@ $^ $(LIBS) -lusbredirhost

install: all
	mkdir -p $(DESTDIR)$(SBINDIR)
	install -m 755 usbredirserver $(DESTDIR)$(SBINDIR)

include ../Make.rules