vdagentd: Add per agent data to vdagentd
[vd_agent/hramrach.git] / Makefile
blob2f97a007ef7687bb161a7032e53ce91c0f26e3f7
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 := vdagentd 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 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 vdagent: vdagent.o vdagent-x11.o udscs.o
29 $(CC) -o $@ $^ -lX11 -lXrandr -lXfixes