Test rseq and cpu_opv availability
[librseq.git] / tests / Makefile
1 # Copyright (C) 2016 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
2 #
3 # THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
4 # OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
5 #
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.
11
12 CPPFLAGS += -I../include
13 CFLAGS += -O2 -g -L../ -Wl,-rpath=../
14 LDFLAGS += -pthread
15
16 all: basic_percpu_ops_test
17
18 INCLUDES=$(wildcard ../include/rseq/*.h)
19
20 basic_percpu_ops_test: basic_percpu_ops_test.c ${INCLUDES}
21 $(CC) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) $< -lrseq -o $@
22
23 .PHONY: clean
24
25 clean:
26 rm -f basic_percpu_ops_test
This page took 0.051101 seconds and 4 git commands to generate.