Makefile 1.2 KB

1234567891011121314151617181920212223242526272829
  1. CC=gcc
  2. CFLAGS+=-I. -g -O2 -Wall -Wextra -Werror -pie -fPIC `pkg-config --cflags vchan-$(BACKEND_VMM)`
  3. LDFLAGS=-pie
  4. LDLIBS=`pkg-config --libs vchan-$(BACKEND_VMM)` -lqrexec-utils -lpam
  5. all: qrexec-agent qrexec-client-vm qrexec-fork-server
  6. qrexec-agent: qrexec-agent.o qrexec-agent-data.o
  7. qrexec-fork-server: qrexec-fork-server.o qrexec-agent-data.o
  8. qrexec-client-vm: qrexec-client-vm.o qrexec-agent-data.o
  9. clean:
  10. rm -f *.o *~ qrexec-agent qrexec-client-vm
  11. install:
  12. install -d $(DESTDIR)/etc/qubes-rpc
  13. install -d $(DESTDIR)/usr/lib/qubes $(DESTDIR)/usr/bin
  14. install qrexec-agent $(DESTDIR)/usr/lib/qubes
  15. install qrexec-client-vm $(DESTDIR)/usr/bin
  16. ln -s ../../bin/qrexec-client-vm $(DESTDIR)/usr/lib/qubes/qrexec-client-vm
  17. ln -s ../../bin/qrexec-client-vm $(DESTDIR)/usr/lib/qubes/qrexec_client_vm
  18. install qrexec-fork-server $(DESTDIR)/usr/bin
  19. install qubes-rpc-multiplexer $(DESTDIR)/usr/lib/qubes
  20. ifeq ($(shell lsb_release -is), Debian)
  21. install -D -m 0644 qrexec.pam.debian $(DESTDIR)/etc/pam.d/qrexec
  22. else ifeq ($(shell lsb_release -is), Arch)
  23. install -D -m 0644 qrexec.pam.archlinux $(DESTDIR)/etc/pam.d/qrexec
  24. else
  25. install -D -m 0644 qrexec.pam $(DESTDIR)/etc/pam.d/qrexec
  26. endif