src/<<package>>/<<component>>$(EXT): <<src_dir>>/<<component>>_core.c <<src_dir>>/<<component>>_ext.c
	@$(PYTHON) -c "$(NUMPY_HEADERS_OK)" 2>/dev/null || $(PYTHON) -m pip install --force-reinstall numpy
	@$(PYTHON) -c "$(NUMPY_HEADERS_VERIFY)"
	$(CC) $(CFLAGS) $(INC) -I$$($(PYTHON) -c "import numpy; print(numpy.get_include())") -shared $(EXT_LDFLAGS) $^ -o $@

test_<<component>>_core: <<native_test_c>> <<native_symbols_c>> <<src_dir>>/<<component>>_core.c
	$(CC) -O2 -std=c99 -I<<inc_dir>><<native_test_inc_make>> $^ -o $@

# gh-832. Two differences from the test rule above, both load-bearing:
#   -std=gnu99, not -std=c99 -- `struct timespec` is not visible under strict
#     c99, so the benchmark's own timing helper does not compile. The cmake
#     backend works today because CMake leaves C extensions on by default.
#   -lm -- jm_bench.h computes a standard deviation.
bench_<<component>>_core: <<native_bench_c>> <<src_dir>>/<<component>>_core.c
	$(CC) -O2 -std=gnu99 -I<<inc_dir>> -I<<native_bench_inc>> $^ -o $@ -lm

