700c240d37
This process should be started from user session (most likely qubes-session). New processes (of that user) will be created as children of that session making logind and such crap happy. This should also solve problems with EOF transmission (no additional "su" process) and prevent loading all the environment multiple times.
24 lines
997 B
Makefile
24 lines
997 B
Makefile
CC=gcc
|
|
CFLAGS+=-I. -g -Wall -Wextra -Werror -pie -fPIC `pkg-config --cflags vchan-$(BACKEND_VMM)`
|
|
LIBS=`pkg-config --libs vchan-$(BACKEND_VMM)` -lqrexec-utils
|
|
|
|
all: qrexec-agent qrexec-client-vm qrexec-fork-server
|
|
qrexec-agent: qrexec-agent.o qrexec-agent-data.o
|
|
$(CC) -pie -g -o qrexec-agent qrexec-agent.o qrexec-agent-data.o $(LIBS)
|
|
qrexec-fork-server: qrexec-fork-server.o qrexec-agent-data.o
|
|
$(CC) -pie -g -o qrexec-fork-server qrexec-fork-server.o qrexec-agent-data.o $(LIBS)
|
|
qrexec-client-vm: qrexec-client-vm.o
|
|
$(CC) -pie -g -o qrexec-client-vm qrexec-client-vm.o
|
|
clean:
|
|
rm -f *.o *~ qrexec-agent qrexec-client-vm
|
|
|
|
install:
|
|
install -d $(DESTDIR)/etc/qubes-rpc
|
|
install -d $(DESTDIR)/usr/lib/qubes $(DESTDIR)/usr/bin
|
|
install qrexec-agent $(DESTDIR)/usr/lib/qubes
|
|
install qrexec-client-vm $(DESTDIR)/usr/lib/qubes
|
|
ln -s qrexec-client-vm $(DESTDIR)/usr/lib/qubes/qrexec_client_vm
|
|
install qrexec-fork-server $(DESTDIR)/usr/bin
|
|
install qubes-rpc-multiplexer $(DESTDIR)/usr/lib/qubes
|
|
|