-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcilkMakefile
73 lines (48 loc) · 1.37 KB
/
cilkMakefile
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#compiler
CC = g++
#linker
LD = g++
#linker flags
LDFLAGS = -Wall -g
#compiler flags
CFLAGS = -Wall -c -g -O3 -fcilkplus
#parallel libraries
P_LIBS = -lcilkrts -ldl -ltiff -ljpeg -lpng -lz
#linker path
LD_PATH =
#includes
INCLUDE = -I/home/centos/libraries/
#defines for serial program
DEFS = -DCILK_PARALLEL
#erase files
RM = /bin/rm -f
#parallel object files
P_OBJS = TIFFimage.o JPEGimage.o PNGimage.o image.o imageRaster.o cilkImageProcessing.o cilkmain.o timer.o MemCheck.o
#program name
PROG = cilkplus
#first rule
all : $(PROG)
cilkplus : $(P_OBJS)
$(LD) $(LDFLAGS) $(LD_PATH) $(P_OBJS) $(P_LIBS) -o $@
#%.o : %.cpp
# $(CC) $(CFLAGS) $(INCLUDE) $(DEFS) $<
cilkmain.o : cilkMain.cpp
$(CC) $(CFLAGS) $(INCLUDE) $(DEFS) $< -o $@
image.o : image/image.cpp
$(CC) $(CFLAGS) $(INCLUDE) $(DEFS) $< -o $@
TIFFimage.o : image/format/TIFFimage.cpp
$(CC) $(CFLAGS) $(DEFS) $(INCLUDE) $< -o $@
JPEGimage.o : image/format/JPEGimage.cpp
$(CC) $(CFLAGS) $(DEFS) $(INCLUDE) $< -o $@
PNGimage.o : image/format/PNGimage.cpp
$(CC) $(CFLAGS) $(DEFS) $(INCLUDE) $< -o $@
imageRaster.o : image/imageRaster.cpp
$(CC) $(CFLAGS) $(DEFS) $< -o $@
cilkImageProcessing.o : processing/cilkImageProcessing.cpp
$(CC) $(CFLAGS) $(DEFS) $< -o $@
timer.o : utils/timer.cpp
$(CC) $(CFLAGS) $< -o $@
MemCheck.o : utils/MemCheck.cpp
$(CC) $(CFLAGS) $(DEFS) $< -o $@
clean:
$(RM) $(P_OBJS) *~