b12f1539a4
Not only the security-critical one.
30 lines
1009 B
Makefile
30 lines
1009 B
Makefile
CC=gcc
|
|
CFLAGS+=-I. -g -Wall -Wextra -Werror -pie -fPIC
|
|
XENLIBS=-lxenctrl -lxenstore -lvchan
|
|
COMMONIOALL=ioall.o
|
|
SO_VER=1
|
|
LDFLAGS=-shared
|
|
|
|
all: libqrexec-utils.so.$(SO_VER) libqubes-rpc-filecopy.so.$(SO_VER)
|
|
libqrexec-utils.so.$(SO_VER): unix-server.o ioall.o buffer.o write-stdin.o exec.o txrx-vchan.o
|
|
$(CC) $(LDFLAGS) -Wl,-soname,$@ -o $@ $^ $(XENLIBS)
|
|
libqubes-rpc-filecopy.so.$(SO_VER): ioall.o copy-file.o crc32.o unpack.o
|
|
$(CC) $(LDFLAGS) -Wl,-soname,$@ -o $@ $^
|
|
|
|
%.a:
|
|
$(AR) rcs $@ $^
|
|
clean:
|
|
rm -f *.o *~ *.a *.so.*
|
|
|
|
install:
|
|
mkdir -p $(DESTDIR)$(LIBDIR)
|
|
cp libqrexec-utils.so.$(SO_VER) $(DESTDIR)$(LIBDIR)
|
|
ln -s libqrexec-utils.so.$(SO_VER) $(DESTDIR)$(LIBDIR)/libqrexec-utils.so
|
|
cp libqubes-rpc-filecopy.so.$(SO_VER) $(DESTDIR)$(LIBDIR)
|
|
ln -s libqubes-rpc-filecopy.so.$(SO_VER) $(DESTDIR)$(LIBDIR)/libqubes-rpc-filecopy.so
|
|
mkdir -p $(DESTDIR)$(INCLUDEDIR)
|
|
cp libqrexec-utils.h $(DESTDIR)$(INCLUDEDIR)
|
|
cp libqubes-rpc-filecopy.h $(DESTDIR)$(INCLUDEDIR)
|
|
cp qrexec.h $(DESTDIR)$(INCLUDEDIR)
|
|
|