summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 3e43047cd58a5cf2245bc59431b9a2417e477a4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

DESTDIR	?= 
sbindir	?= /sbin
udevdir	?= /lib/udev/rules.d

CFLAGS	?= -O2
CFLAGS	+= -g -Wall
CFLAGS	+= -g -Wall
CFLAGS  += $(shell pkg-config --cflags spice-protocol)

TARGETS	:= vdagent client

build: $(TARGETS)

install: build
	install -d $(DESTDIR)$(sbindir)
	install -s $(TARGETS) $(DESTDIR)$(sbindir)
	install -d $(DESTDIR)$(udevdir)
	install -m 644 *.rules $(DESTDIR)$(udevdir)

clean:
	rm -f $(TARGETS) *.o *~

vdagent: vdagent.o udscs.o
client: client.o udscs.o