| .. | .. |
|---|
| 1 | 1 | # SPDX-License-Identifier: GPL-2.0+ OR MIT |
|---|
| 2 | | -CFLAGS += -O2 -Wall -g -I./ -I../../../../usr/include/ -L./ -Wl,-rpath=./ |
|---|
| 3 | | -LDLIBS += -lpthread |
|---|
| 2 | + |
|---|
| 3 | +ifneq ($(shell $(CC) --version 2>&1 | head -n 1 | grep clang),) |
|---|
| 4 | +CLANG_FLAGS += -no-integrated-as |
|---|
| 5 | +endif |
|---|
| 6 | + |
|---|
| 7 | +top_srcdir = ../../../.. |
|---|
| 8 | + |
|---|
| 9 | +CFLAGS += -O2 -Wall -g -I./ -I../../../../usr/include/ -L$(OUTPUT) -Wl,-rpath=./ \ |
|---|
| 10 | + $(CLANG_FLAGS) -I$(top_srcdir)/tools/include |
|---|
| 11 | +LDLIBS += -lpthread -ldl |
|---|
| 4 | 12 | |
|---|
| 5 | 13 | # Own dependencies because we only want to build against 1st prerequisite, but |
|---|
| 6 | 14 | # still track changes to header files and depend on shared object. |
|---|
| .. | .. |
|---|
| 13 | 21 | |
|---|
| 14 | 22 | TEST_PROGS = run_param_test.sh |
|---|
| 15 | 23 | |
|---|
| 24 | +TEST_FILES := settings |
|---|
| 25 | + |
|---|
| 16 | 26 | include ../lib.mk |
|---|
| 17 | 27 | |
|---|
| 18 | 28 | $(OUTPUT)/librseq.so: rseq.c rseq.h rseq-*.h |
|---|