tRecompile objects when header changes instead of just relinking - cngf-pf - co… | |
git clone git://src.adamsgaard.dk/cngf-pf | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 41201cf7627c3b6f9df4a897dd61d23719d7115c | |
parent 1dd08e43898129e92e949305a12b8d73eed889ad | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 14 May 2020 16:48:02 +0200 | |
Recompile objects when header changes instead of just relinking | |
Diffstat: | |
M Makefile | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/Makefile b/Makefile | |
t@@ -31,10 +31,10 @@ all: ${BIN} | |
.o: | |
${CC} ${LDFLAGS} -o $@ ${LIBS} | |
-.c.o: | |
+.c.o: ${HDR} | |
${CC} ${HERE_CFLAGS} ${GLOBALCONST} -o $@ -c $< | |
-1d_fd_simple_shear: 1d_fd_simple_shear.o arrays.o fluid.o simulation.o ${HDR} | |
+1d_fd_simple_shear: 1d_fd_simple_shear.o arrays.o fluid.o simulation.o | |
${CC} ${HERE_LDFLAGS}\ | |
1d_fd_simple_shear.o arrays.o fluid.o simulation.o\ | |
-o $@ |