Hi all,
I'm trying to create a pattern rule that has the object directory
different than that of the source directory. The document for gnu
make it tells me that the directory from the target is always
attached to the stem in order to generate the matching dependency.
This won't work for me. Here is my example
SRC_PATH = src/a src/b
SRC = src/a/one.c src/b/two.c
OBJ_PATH = obj/nt/debug/
OBJ = obj/nt/debug/one.o obj/nt/debug/two.o
How do I write a pattern rule for such a case?
Would something like this work?
$(OBJ_PATH)/%.o : $(SRC_PATH)/%.c
Or would this work?
$(OBJ)/%.o : $(SRC)/%.c
Thanks,
Robert Balzli