tRecompile objects when header changes instead of just relinking - cngf-pf - continuum model for granular flows with pore-pressure dynamics (renamed from 1d_fd_simple_shear)
(HTM) git clone git://src.adamsgaard.dk/cngf-pf
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 41201cf7627c3b6f9df4a897dd61d23719d7115c
(DIR) parent 1dd08e43898129e92e949305a12b8d73eed889ad
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
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(-)
---
(DIR) 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 $@