.. | .. |
---|
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 | +CFLAGS += -O2 -Wall -g -I./ -I../../../../usr/include/ -L$(OUTPUT) -Wl,-rpath=./ \ |
---|
| 8 | + $(CLANG_FLAGS) |
---|
| 9 | +LDLIBS += -lpthread -ldl |
---|
4 | 10 | |
---|
5 | 11 | # Own dependencies because we only want to build against 1st prerequisite, but |
---|
6 | 12 | # still track changes to header files and depend on shared object. |
---|
.. | .. |
---|
13 | 19 | |
---|
14 | 20 | TEST_PROGS = run_param_test.sh |
---|
15 | 21 | |
---|
| 22 | +TEST_FILES := settings |
---|
| 23 | + |
---|
16 | 24 | include ../lib.mk |
---|
17 | 25 | |
---|
18 | 26 | $(OUTPUT)/librseq.so: rseq.c rseq.h rseq-*.h |
---|