This repository has been archived by the owner on Apr 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
executable file
·110 lines (90 loc) · 2.77 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
# Environment
MKDIR=mkdir
CP=cp
GREP=grep
NM=nm
CCADMIN=CCadmin
RANLIB=ranlib
CC=gcc
CCC=g++
CXX=g++
FC=gfortran
AS=as
# Macros
CND_CONF=Release
CND_CONF_DEBUG=Debug
CND_DISTDIR=dist
CND_BUILDDIR=build
# Object Directory
OBJECTDIR=${CND_BUILDDIR}/${CND_CONF}
OBJECTDEBUGDIR=${CND_BUILDDIR}/${CND_CONF_DEBUG}
# Release object Files
OBJECTFILES= \
${OBJECTDIR}/Config.o \
${OBJECTDIR}/Debug.o \
${OBJECTDIR}/Parser.o \
${OBJECTDIR}/Result.o \
${OBJECTDIR}/main.o
# Debug object Files
OBJECTDEBUGFILES= \
${OBJECTDEBUGDIR}/Config.o \
${OBJECTDEBUGDIR}/Debug.o \
${OBJECTDEBUGDIR}/Parser.o \
${OBJECTDEBUGDIR}/Result.o \
${OBJECTDEBUGDIR}/main.o
# Release build
${CND_DISTDIR}/${CND_CONF}/http-logs-analyzer.exe: clean ${OBJECTFILES}
${MKDIR} -p ${CND_DISTDIR}/${CND_CONF}
${LINK.cc} -o ${CND_DISTDIR}/${CND_CONF}/http-logs-analyzer ${OBJECTFILES}
# Debug build
${CND_DISTDIR}/${CND_CONF_DEBUG}/http-logs-analyzer.exe: ${OBJECTDEBUGFILES}
${MKDIR} -p ${CND_DISTDIR}/${CND_CONF_DEBUG}
${LINK.cc} -o ${CND_DISTDIR}/${CND_CONF_DEBUG}/http-logs-analyzer ${OBJECTDEBUGFILES}
# Release objects
${OBJECTDIR}/Config.o: Config.cpp
${MKDIR} -p ${OBJECTDIR}
${RM} [email protected]
$(COMPILE.cc) -O2 -MMD -MP -MF [email protected] -o ${OBJECTDIR}/Config.o Config.cpp
${OBJECTDIR}/Debug.o: Debug.cpp
${MKDIR} -p ${OBJECTDIR}
${RM} [email protected]
$(COMPILE.cc) -O2 -MMD -MP -MF [email protected] -o ${OBJECTDIR}/Debug.o Debug.cpp
${OBJECTDIR}/Parser.o: Parser.cpp
${MKDIR} -p ${OBJECTDIR}
${RM} [email protected]
$(COMPILE.cc) -O2 -MMD -MP -MF [email protected] -o ${OBJECTDIR}/Parser.o Parser.cpp
${OBJECTDIR}/Result.o: Result.cpp
${MKDIR} -p ${OBJECTDIR}
${RM} [email protected]
$(COMPILE.cc) -O2 -MMD -MP -MF [email protected] -o ${OBJECTDIR}/Result.o Result.cpp
${OBJECTDIR}/main.o: main.cpp
${MKDIR} -p ${OBJECTDIR}
${RM} [email protected]
$(COMPILE.cc) -O2 -MMD -MP -MF [email protected] -o ${OBJECTDIR}/main.o main.cpp
# Debug objects
${OBJECTDEBUGDIR}/Config.o: Config.cpp
${MKDIR} -p ${OBJECTDEBUGDIR}
${RM} [email protected]
$(COMPILE.cc) -g -MMD -MP -MF [email protected] -o ${OBJECTDEBUGDIR}/Config.o Config.cpp
${OBJECTDEBUGDIR}/Debug.o: Debug.cpp
${MKDIR} -p ${OBJECTDEBUGDIR}
${RM} [email protected]
$(COMPILE.cc) -g -MMD -MP -MF [email protected] -o ${OBJECTDEBUGDIR}/Debug.o Debug.cpp
${OBJECTDEBUGDIR}/Parser.o: Parser.cpp
${MKDIR} -p ${OBJECTDEBUGDIR}
${RM} [email protected]
$(COMPILE.cc) -g -MMD -MP -MF [email protected] -o ${OBJECTDEBUGDIR}/Parser.o Parser.cpp
${OBJECTDEBUGDIR}/Result.o: Result.cpp
${MKDIR} -p ${OBJECTDEBUGDIR}
${RM} [email protected]
$(COMPILE.cc) -g -MMD -MP -MF [email protected] -o ${OBJECTDEBUGDIR}/Result.o Result.cpp
${OBJECTDEBUGDIR}/main.o: main.cpp
${MKDIR} -p ${OBJECTDEBUGDIR}
${RM} [email protected]
$(COMPILE.cc) -g -MMD -MP -MF [email protected] -o ${OBJECTDEBUGDIR}/main.o main.cpp
install:
cp dist/Release/http-logs-analyzer /usr/local/bin
cp dist/Release/http-logs-analyzer ./
debug: clean ${CND_DISTDIR}/${CND_CONF_DEBUG}/http-logs-analyzer.exe
clean:
rm -rf build dist