-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
119 lines (87 loc) · 3.45 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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#------------------------------------------------------------------------------#
# This makefile was generated by 'cbp2make' tool rev.101 #
#------------------------------------------------------------------------------#
WRKDIR = `pwd`
AS = as
CC = gcc
CPP = g++
F77 = f77
F9X = gfortran
LD = g++
AR = ar
RANLIB = ranlib
WINDRES = windres
INC =
CFLAGS = -Wall -fexceptions
RESINC =
RCFLAGS =
LIBDIR =
LIB = /usr/lib/libserial.so /usr/lib/libsensors.so /usr/lib/libnvidia-ml.so
LDFLAGS =
INC_DEBUG = $(INC)
CFLAGS_DEBUG = $(CFLAGS) -g
RESINC_DEBUG = $(RESINC)
RCFLAGS_DEBUG = $(RCFLAGS)
LIBDIR_DEBUG = $(LIBDIR)
LIB_DEBUG = $(LIB)
LDFLAGS_DEBUG = $(LDFLAGS)
OBJDIR_DEBUG = obj/Debug
DEP_DEBUG =
OUT_DEBUG = bin/Debug/tempMon
INC_RELEASE = $(INC)
CFLAGS_RELEASE = $(CFLAGS) -O2
RESINC_RELEASE = $(RESINC)
RCFLAGS_RELEASE = $(RCFLAGS)
LIBDIR_RELEASE = $(LIBDIR)
LIB_RELEASE = $(LIB)
LDFLAGS_RELEASE = $(LDFLAGS) -s
OBJDIR_RELEASE = obj/Release
DEP_RELEASE =
OUT_RELEASE = bin/Release/tempMon
OBJ_DEBUG = $(OBJDIR_DEBUG)/Broadcast.o $(OBJDIR_DEBUG)/FileIO.o $(OBJDIR_DEBUG)/Nvidia.o $(OBJDIR_DEBUG)/SensorData.o $(OBJDIR_DEBUG)/main.o
OBJ_RELEASE = $(OBJDIR_RELEASE)/Broadcast.o $(OBJDIR_RELEASE)/FileIO.o $(OBJDIR_RELEASE)/Nvidia.o $(OBJDIR_RELEASE)/SensorData.o $(OBJDIR_RELEASE)/main.o
all: Debug Release
clean: clean_Debug clean_Release
before_Debug:
test -d bin/Debug || mkdir -p bin/Debug
test -d $(OBJDIR_DEBUG) || mkdir -p $(OBJDIR_DEBUG)
after_Debug:
Debug: before_Debug out_Debug after_Debug
out_Debug: $(OBJ_DEBUG) $(DEP_DEBUG)
$(LD) $(LDFLAGS_DEBUG) $(LIBDIR_DEBUG) -o $(OUT_DEBUG) $(OBJ_DEBUG) $(LIB_DEBUG)
$(OBJDIR_DEBUG)/Broadcast.o: Broadcast.cpp
$(CPP) $(CFLAGS_DEBUG) $(INC_DEBUG) -c -o $(OBJDIR_DEBUG)/Broadcast.o Broadcast.cpp
$(OBJDIR_DEBUG)/FileIO.o: FileIO.cpp
$(CPP) $(CFLAGS_DEBUG) $(INC_DEBUG) -c -o $(OBJDIR_DEBUG)/FileIO.o FileIO.cpp
$(OBJDIR_DEBUG)/Nvidia.o: Nvidia.cpp
$(CPP) $(CFLAGS_DEBUG) $(INC_DEBUG) -c -o $(OBJDIR_DEBUG)/Nvidia.o Nvidia.cpp
$(OBJDIR_DEBUG)/SensorData.o: SensorData.cpp
$(CPP) $(CFLAGS_DEBUG) $(INC_DEBUG) -c -o $(OBJDIR_DEBUG)/SensorData.o SensorData.cpp
$(OBJDIR_DEBUG)/main.o: main.cpp
$(CPP) $(CFLAGS_DEBUG) $(INC_DEBUG) -c -o $(OBJDIR_DEBUG)/main.o main.cpp
clean_Debug:
rm -f $(OBJ_DEBUG) $(OUT_DEBUG)
rm -rf bin/Debug
rm -rf $(OBJDIR_DEBUG)
before_Release:
test -d bin/Release || mkdir -p bin/Release
test -d $(OBJDIR_RELEASE) || mkdir -p $(OBJDIR_RELEASE)
after_Release:
Release: before_Release out_Release after_Release
out_Release: $(OBJ_RELEASE) $(DEP_RELEASE)
$(LD) $(LDFLAGS_RELEASE) $(LIBDIR_RELEASE) -o $(OUT_RELEASE) $(OBJ_RELEASE) $(LIB_RELEASE)
$(OBJDIR_RELEASE)/Broadcast.o: Broadcast.cpp
$(CPP) $(CFLAGS_RELEASE) $(INC_RELEASE) -c -o $(OBJDIR_RELEASE)/Broadcast.o Broadcast.cpp
$(OBJDIR_RELEASE)/FileIO.o: FileIO.cpp
$(CPP) $(CFLAGS_RELEASE) $(INC_RELEASE) -c -o $(OBJDIR_RELEASE)/FileIO.o FileIO.cpp
$(OBJDIR_RELEASE)/Nvidia.o: Nvidia.cpp
$(CPP) $(CFLAGS_RELEASE) $(INC_RELEASE) -c -o $(OBJDIR_RELEASE)/Nvidia.o Nvidia.cpp
$(OBJDIR_RELEASE)/SensorData.o: SensorData.cpp
$(CPP) $(CFLAGS_RELEASE) $(INC_RELEASE) -c -o $(OBJDIR_RELEASE)/SensorData.o SensorData.cpp
$(OBJDIR_RELEASE)/main.o: main.cpp
$(CPP) $(CFLAGS_RELEASE) $(INC_RELEASE) -c -o $(OBJDIR_RELEASE)/main.o main.cpp
clean_Release:
rm -f $(OBJ_RELEASE) $(OUT_RELEASE)
rm -rf bin/Release
rm -rf $(OBJDIR_RELEASE)
.PHONY: before_Debug after_Debug clean_Debug before_Release after_Release clean_Release