source: proiecte/pmake3d/segment/Makefile @ 150

Last change on this file since 150 was 150, checked in by (none), 14 years ago

Modified Makefile

  • Property svn:executable set to *
File size: 702 bytes
Line 
1INCDIR = -I. -I/usr/local/cuda/sdk/C/common/inc -I/home/szekeres/Desktop/cudpp_1.1/cudpp/include
2LIBS = -lcudpp
3LIBDIR = -L/home/szekeres/Desktop/cudpp_1.1/lib
4DBG    = -g
5CPP    = g++
6CFLAGS = $(DBG) $(INCDIR)
7LINK   = -lm
8
9.cpp.o:
10        $(CPP) $(CFLAGS) -c $< -o $@
11
12all: parallel sequential
13
14parallel:
15        nvcc segment.cu -o parallel ${INCDIR} ${LIBDIR} ${LIBS}
16
17sequential: segment.cpp segment-image.h segment-graph.h disjoint-set.h
18        $(CPP) $(CFLAGS) -o sequential segment.cpp $(LINK)
19
20clean:
21        /bin/rm -f parallel  sequential *.o
22
23clean-all: clean
24        /bin/rm -f *~
25
26run_parallel:
27        ./parallel 0.8 500 20 lanscape_vectors.ppm out.ppm
28
29run_sequential:
30        ./sequential 0.8 500 20 lanscape_vectors.ppm out.ppm
31
32
Note: See TracBrowser for help on using the repository browser.