-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathserialMakefile
75 lines (49 loc) · 1.35 KB
/
serialMakefile
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
74
75
#compiler
CC = g++
#linker
LD = g++
#linker flags
LDFLAGS = -Wall -g
#compiler flags
CFLAGS = -Wall -c -g -O3
#serial libraries
S_LIBS = -ltiff -ljpeg -lpng -lz
#linker path
LD_PATH =
#includes
INCLUDE = -I/home/centos/libraries/
#defines for serial program
DEFS = -DSERIAL
#erase files
RM = /bin/rm -f
#object files
S_OBJS = TIFFimage.o JPEGimage.o PNGimage.o image.o imageRaster.o serialImageProcessing.o main.o timer.o MemCheck.o
#program name
PROG = serial
#first rule
all : $(PROG)
#serial executable
serial : $(S_OBJS)
$(LD) $(LDFLAGS) $(LD_PATH) $(S_OBJS) $(S_LIBS) -o $@
#%.o : %.cpp
# $(CC) $(CFLAGS) $(INCLUDE) $(DEFS) $<
main.o : serialMain.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 $@
serialImageProcessing.o : processing/serialImageProcessing.cpp
$(CC) $(CFLAGS) $(DEFS) $< -o $@
timer.o : utils/timer.cpp
$(CC) $(CFLAGS) $< -o $@
MemCheck.o : utils/MemCheck.cpp
$(CC) $(CFLAGS) $(DEFS) $< -o $@
clean:
$(RM) $(S_OBJS) *~