Never mind, it is in 4.14 Generating Prerequisites Automatically
Type: Posts; User: OriginalCopy
Never mind, it is in 4.14 Generating Prerequisites Automatically
Thanks a lot.
What should I look for in the manual, in regards to $(TEST_SRCS:.c=)?
Oh I am so dumb. How could I make such that it replaces each .c by "tests/<filename>" and create a target for it automagically, instead of me having to
encryption/a.c:
$(CC) ...
?
This is a simple Makefile
CFLAGS = -Wall
CC = gcc
TESTS := $(wildcard encryption/*.c)
tests: $(TESTS)
echo "TESTS are compiled under tests/"
echo "TODO: run the testunit"