qubes-linux-utils/qrexec-lib/Makefile

21 lines
575 B
Makefile
Raw Normal View History

CC=gcc
CFLAGS+=-I. -g -O2 -Wall -Wextra -Werror -pie -fPIC
SO_VER=2
LDFLAGS+=-shared
all: libqubes-rpc-filecopy.so.$(SO_VER)
libqubes-rpc-filecopy.so.$(SO_VER): ioall.o copy-file.o crc32.o unpack.o pack.o
2014-02-07 04:29:59 +00:00
$(CC) $(LDFLAGS) -Wl,-soname,$@ -o $@ $^
%.a:
$(AR) rcs $@ $^
clean:
2014-02-07 04:29:59 +00:00
rm -f *.o *~ *.a *.so.*
install:
mkdir -p $(DESTDIR)$(LIBDIR)
2014-02-07 04:29:59 +00:00
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 libqubes-rpc-filecopy.h $(DESTDIR)$(INCLUDEDIR)