Rename user visible files from vdagent* to spice-vdagent*
[vd_agent.git] / Makefile
blob810dd545222a820aa34c40f38741ff530dc3e333
2 DESTDIR ?=
3 sbindir ?= /sbin
4 udevdir ?= /lib/udev/rules.d
6 CFLAGS ?= -O2
7 CFLAGS += -g -Wall
8 CFLAGS += $(shell pkg-config --cflags spice-protocol)
9 CFLAGS += $(shell pkg-config --cflags dbus-1)
10 CFLAGS += -D_GNU_SOURCE
12 TARGETS := spice-vdagentd spice-vdagent
14 build: $(TARGETS)
16 install: build
17 install -d $(DESTDIR)$(sbindir)
18 install -s $(TARGETS) $(DESTDIR)$(sbindir)
19 install -d $(DESTDIR)$(udevdir)
20 install -m 644 *.rules $(DESTDIR)$(udevdir)
22 clean:
23 rm -f $(TARGETS) *.o *~
25 spice-vdagentd: vdagentd.o vdagentd-uinput.o udscs.o vdagent-virtio-port.o console-kit.o
26 $(CC) -o $@ $^ $(shell pkg-config --libs dbus-1)
28 spice-vdagent: vdagent.o vdagent-x11.o udscs.o
29 $(CC) -o $@ $^ -lX11 -lXrandr -lXfixes