Debian Codegraph @

src/tests/Makefile

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 # SPDX-FileCopyrightText: 2025 Geoffrey D. Bennett <[email protected]>
2 # SPDX-License-Identifier: GPL-3.0-or-later
3
4 PKG_CONFIG ?= pkg-config
5
6 TESTS = test-biquad
7
•8 CFLAGS += -I.. -Wall $(shell $(PKG_CONFIG) --cflags glib-2.0)
9 LDFLAGS += -lm $(shell $(PKG_CONFIG) --libs glib-2.0)
10
11 all: $(TESTS)
12
13 test-biquad: test-biquad.c ../biquad.c ../biquad.h
14 $(CC) $(CFLAGS) -o $@ test-biquad.c ../biquad.c $(LDFLAGS)
15
16 test: $(TESTS)
17 @for t in $(TESTS); do echo "Running $$t..."; ./$$t || exit 1; done
18
19 clean:
20 rm -f $(TESTS)
21
22 .PHONY: all test clean