2013-03-20 06:21:16 +01:00
|
|
|
CC=gcc
|
2015-03-20 12:06:33 +01:00
|
|
|
CFLAGS+=-I. -g -O2 -Wall -Wextra -Werror -pie -fPIC `pkg-config --cflags vchan-$(BACKEND_VMM)`
|
2015-03-16 20:51:28 +01:00
|
|
|
LDFLAGS=-pie
|
2014-10-31 01:07:49 +01:00
|
|
|
LDLIBS=`pkg-config --libs vchan-$(BACKEND_VMM)` -lqrexec-utils -lpam
|
2013-03-20 06:21:16 +01:00
|
|
|
|
2015-02-17 04:18:34 +01:00
|
|
|
all: qrexec-agent qrexec-client-vm qrexec-fork-server
|
2013-12-27 06:07:33 +01:00
|
|
|
qrexec-agent: qrexec-agent.o qrexec-agent-data.o
|
2015-02-17 04:18:34 +01:00
|
|
|
qrexec-fork-server: qrexec-fork-server.o qrexec-agent-data.o
|
2015-03-16 21:10:25 +01:00
|
|
|
qrexec-client-vm: qrexec-client-vm.o qrexec-agent-data.o
|
2013-03-20 06:21:16 +01:00
|
|
|
clean:
|
|
|
|
rm -f *.o *~ qrexec-agent qrexec-client-vm
|
|
|
|
|
|
|
|
install:
|
|
|
|
install -d $(DESTDIR)/etc/qubes-rpc
|
2015-02-17 04:18:34 +01:00
|
|
|
install -d $(DESTDIR)/usr/lib/qubes $(DESTDIR)/usr/bin
|
2013-03-20 06:21:16 +01:00
|
|
|
install qrexec-agent $(DESTDIR)/usr/lib/qubes
|
2015-03-17 23:11:47 +01:00
|
|
|
install qrexec-client-vm $(DESTDIR)/usr/bin
|
|
|
|
ln -s ../../bin/qrexec-client-vm $(DESTDIR)/usr/lib/qubes/qrexec-client-vm
|
|
|
|
ln -s ../../bin/qrexec-client-vm $(DESTDIR)/usr/lib/qubes/qrexec_client_vm
|
2015-02-17 04:18:34 +01:00
|
|
|
install qrexec-fork-server $(DESTDIR)/usr/bin
|
2013-03-20 06:21:16 +01:00
|
|
|
install qubes-rpc-multiplexer $(DESTDIR)/usr/lib/qubes
|
2017-07-06 20:15:02 +02:00
|
|
|
ifeq ($(shell lsb_release -is), Debian)
|
|
|
|
install -D -m 0644 qrexec.pam.debian $(DESTDIR)/etc/pam.d/qrexec
|
|
|
|
else
|
2014-10-31 01:07:49 +01:00
|
|
|
install -D -m 0644 qrexec.pam $(DESTDIR)/etc/pam.d/qrexec
|
2017-07-06 20:15:02 +02:00
|
|
|
endif
|
2013-03-20 06:21:16 +01:00
|
|
|
|