1 # Copyright (C) 2016 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
3 # THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
4 # OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
6 # Permission is hereby granted to use or copy this program for any
7 # purpose, provided the above notices are retained on all copies.
8 # Permission to modify the code and to distribute modified code is
9 # granted, provided the above notices are retained, and a notice that
10 # the code was modified is included with the above copyright notice.
13 CPPFLAGS
+= -I.
/include
21 INCLUDES
=$(wildcard remote
/*.h
)
23 librseq.so
: src
/rseq.c
${INCLUDES}
24 $(CC
) $(CFLAGS
) $(LDFLAGS
) $(CPPFLAGS
) -shared
-fpic src
/rseq.c
-o
$@
26 .PHONY
: clean install uninstall
32 mkdir
-p
$(DESTDIR
)$(PREFIX
)/lib
33 cp librseq.so
$(DESTDIR
)$(PREFIX
)/lib
/librseq.so
34 mkdir
-p
$(DESTDIR
)$(PREFIX
)/include/rseq
35 cp
include/rseq
/*.h
$(DESTDIR
)$(PREFIX
)/include/rseq
38 rm -f
$(DESTDIR
)$(PREFIX
)/lib
/librseq.so
39 rm -f
$(DESTDIR
)$(PREFIX
)/include/rseq
/*.h
40 rmdir
$(DESTDIR
)$(PREFIX
)/include/rseq
/
This page took 0.03035 seconds and 5 git commands to generate.