-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
33 lines (22 loc) · 1.25 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# NVCCOPTIONS := -arch=sm_20
NVCCOPTIONS := --gpu-architecture sm_20
ROOTCFLAGS := -I$(shell root-config --incdir)
ROOTLIBS := -L$(shell root-config --libdir)
ROOTLIBS += -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lm -ldl -lMinuit -lGui
PATHTOCUSP = /private/herten/cusplibrary
OBJECTS = houghtransform.o AhTwoArraysToMatrix.o AhTranslatorFunction.o AhHoughTransformation.o
all: hough
houghtransform.o: houghtransform.cu
nvcc $(NVCCOPTIONS) $(ROOTCFLAGS) -I$(PATHTOCUSP) -o $@ -c $<
# AhTwoArraysToMatrix.o: AhTwoArraysToMatrix.cu AhTwoArraysToMatrix.h AhTranslatorFunction.h
# nvcc $(NVCCOPTIONS) $(ROOTLIBS) $(ROOTCFLAGS) -I$(PATHTOCUSP) -c AhTwoArraysToMatrix.cu
# AhHoughTransformation.o: AhHoughTransformation.cu AhHoughTransformation.h
# nvcc $(NVCCOPTIONS) $(ROOTLIBS) $(ROOTCFLAGS) -I$(PATHTOCUSP) -c AhHoughTransformation.cu
%.o: %.cu %.h
nvcc $(NVCCOPTIONS) $(ROOTCFLAGS) -I$(PATHTOCUSP) -dlink -o $@ -c $<
hough: $(OBJECTS)
nvcc $(NVCCOPTIONS) $(ROOTLIBS) -o $@ $?
one: Makefile
nvcc $(NVCCOPTIONS) $(ROOTLIBS) $(ROOTCFLAGS) -I$(PATHTOCUSP) -o $@ houghtransform.cu AhHoughTransformation.cu AhTwoArraysToMatrix.cu AhTranslatorFunction.cu
clean: Makefile
rm -f *.o *~