tHeader file dependencies split into C and CU - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
(HTM) git clone git://src.adamsgaard.dk/sphere
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit d940d2b8032ce1233de2ce4269c0191a327fecf7
(DIR) parent f167e2b44a2d35681b868c03a04ef7f65a064604
(HTM) Author: Anders Damsgaard <adc@geo.au.dk>
Date: Mon, 3 Dec 2012 09:46:22 +0100
Header file dependencies split into C and CU
Diffstat:
M src/Makefile | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
---
(DIR) diff --git a/src/Makefile b/src/Makefile
t@@ -40,7 +40,8 @@ CUOBJECTS=$(CUFILES:.cu=.o)
OBJECTS=$(CCOBJECTS) $(CUOBJECTS)
# If a header-file changes, update all objects
-DEPS=*.h *.cuh
+CDEPS=*.h
+CUDEPS=$(CDEPS) *.cuh
# Detect OS
OSUPPER=$(shell uname -s 2>/dev/null | tr [:lower:] [:upper:])
t@@ -80,16 +81,16 @@ $(EXECUTABLE): $(OBJECTS)
utility.o: utility.cu
$(NVCC) $(NVCCFLAGS) $(INCLUDES) -c $< -o $@
-file_io.o: file_io.cpp $(DEPS)
+file_io.o: file_io.cpp $(CDEPS)
$(CC) $(CCFLAGS) $(INCLUDES) -c $< -o $@
-device.o: device.cu $(DEPS)
+device.o: device.cu $(CUDEPS)
$(NVCC) $(NVCCFLAGS) $(INCLUDES) -c $< -o $@
-main.o: main.cpp $(DEPS)
+main.o: main.cpp $(CDEPS)
$(CC) $(CCFLAGS) $(INCLUDES) -c $< -o $@
-sphere.o: sphere.cpp $(DEPS)
+sphere.o: sphere.cpp $(CDEPS)
$(CC) $(CCFLAGS) $(INCLUDES) -c $< -o $@
../sphere_status: sphere_status.cpp