This repository was archived by the owner on Aug 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathMakefile.nix
More file actions
177 lines (152 loc) · 5.81 KB
/
Copy pathMakefile.nix
File metadata and controls
177 lines (152 loc) · 5.81 KB
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
CXXFLAGS = -O3 -Isrc -I../libgit2/include -std=c++11
#CXXFLAGS += -Weffc++ -Wall -Wpedantic -Wextra
#CXXFLAGS += -Wsuggest-attribute=pure -Wsuggest-attribute=const -Wsuggest-attribute=noreturn -Wsuggest-override
#CXXFLAGS += -Wsuggest-final-types
#CXXFLAGS += -Wsuggest-final-methods
#CFLAGS += -O3 -Iboss-common -I../../../libgit2/include -std=c++11
#CPPFLAGS += -I boss-common -I ../../../libgit2/include
#LDFLAGS += -static
LDFLAGS += -Llib
LDLIBS += -lboost_filesystem -lboost_iostreams -lboost_program_options -lboost_system -lboost_locale -lgit2 -lssl -lcrypto
#%.d: %.cpp
# @set -e; rm -f $@; \
# $(CXX) -MM $(CPPFLAGS) $< > $@.$$$$; \
# sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
# rm -f $@.$$$$
DIR1 = src
DIR2 = src
DIR3 = src
OBJECTS = $(DIR1)/boss_cli.o \
$(DIR2)/common/conditional_data.o \
$(DIR2)/common/error.o \
$(DIR2)/common/game.o \
$(DIR2)/common/globals.o \
$(DIR2)/common/item_list.o \
$(DIR2)/common/keywords.o \
$(DIR2)/common/rule_line.o \
$(DIR2)/common/settings.o \
$(DIR2)/output/boss_log.o \
$(DIR2)/output/output.o \
$(DIR2)/parsing/grammar.o \
$(DIR2)/support/helpers.o \
$(DIR2)/support/logger.o \
$(DIR2)/support/mod_format.o \
$(DIR2)/support/version_regex.o
bossCLI : $(OBJECTS)
$(CXX) $(CXXFLAGS) $(CPPFLAGS) $^ $(LDFLAGS) $(LDLIBS) -o $@
$(DIR1)/boss_cli.o : $(DIR2)/common/error.h \
$(DIR2)/common/game.h \
$(DIR2)/common/globals.h \
$(DIR2)/common/settings.h \
$(DIR2)/output/boss_log.h \
$(DIR2)/output/output.h \
$(DIR2)/support/logger.h \
$(DIR2)/updating/updater.h
$(DIR2)/common/conditional_data.o : $(DIR2)/common/conditional_data.h \
$(DIR2)/common/dll_def.h \
$(DIR2)/common/error.h \
$(DIR2)/common/game.h \
$(DIR2)/common/keywords.h \
$(DIR2)/parsing/grammar.h \
$(DIR2)/support/helpers.h \
$(DIR2)/support/logger.h \
$(DIR2)/support/mod_format.h
$(DIR2)/common/error.o : $(DIR2)/common/error.h \
$(DIR2)/common/dll_def.h
$(DIR2)/common/game.o : $(DIR2)/common/game.h \
$(DIR2)/common/conditional_data.h \
$(DIR2)/common/dll_def.h \
$(DIR2)/common/error.h \
$(DIR2)/common/globals.h \
$(DIR2)/common/item_list.h \
$(DIR2)/common/keywords.h \
$(DIR2)/common/rule_line.h \
$(DIR2)/common/settings.h \
$(DIR2)/output/boss_log.h \
$(DIR2)/output/output.h \
$(DIR2)/support/helpers.h \
$(DIR2)/support/logger.h \
$(DIR2)/support/platform.h
$(DIR2)/common/globals.o : $(DIR2)/common/globals.h \
$(DIR2)/common/dll_def.h
$(DIR2)/common/item_list.o : $(DIR2)/common/item_list.h \
$(DIR2)/base/fstream.h \
$(DIR2)/base/regex.h \
$(DIR2)/common/conditional_data.h \
$(DIR2)/common/dll_def.h \
$(DIR2)/common/error.h \
$(DIR2)/common/game.h \
$(DIR2)/common/globals.h \
$(DIR2)/common/keywords.h \
$(DIR2)/parsing/grammar.h \
$(DIR2)/support/helpers.h \
$(DIR2)/support/logger.h \
$(DIR2)/support/platform.h
$(DIR2)/common/keywords.o : $(DIR2)/common/keywords.h \
$(DIR2)/common/dll_def.h
$(DIR2)/common/rule_line.o : $(DIR2)/common/rule_line.h \
$(DIR2)/base/fstream.h \
$(DIR2)/common/conditional_data.h \
$(DIR2)/common/dll_def.h \
$(DIR2)/common/error.h \
$(DIR2)/common/game.h \
$(DIR2)/common/globals.h \
$(DIR2)/common/keywords.h \
$(DIR2)/output/output.h \
$(DIR2)/parsing/grammar.h \
$(DIR2)/support/helpers.h \
$(DIR2)/support/logger.h
$(DIR2)/common/settings.o : $(DIR2)/common/settings.h \
$(DIR2)/base/fstream.h \
$(DIR2)/common/dll_def.h \
$(DIR2)/common/error.h \
$(DIR2)/common/globals.h \
$(DIR2)/parsing/grammar.h \
$(DIR2)/support/helpers.h
$(DIR2)/output/boss_log.o : $(DIR2)/output/boss_log.h \
$(DIR2)/base/fstream.h \
$(DIR2)/common/conditional_data.h \
$(DIR2)/common/dll_def.h \
$(DIR2)/common/error.h \
$(DIR2)/common/globals.h \
$(DIR2)/output/output.h \
$(DIR2)/support/helpers.h
$(DIR2)/output/output.o : $(DIR2)/output/output.h \
$(DIR2)/common/conditional_data.h \
$(DIR2)/common/dll_def.h \
$(DIR2)/common/error.h \
$(DIR2)/common/globals.h \
$(DIR2)/common/keywords.h \
$(DIR2)/common/rule_line.h \
$(DIR2)/support/helpers.h
$(DIR2)/parsing/grammar.o : $(DIR2)/parsing/grammar.h \
$(DIR2)/base/regex.h \
$(DIR2)/common/conditional_data.h \
$(DIR2)/common/error.h \
$(DIR2)/common/game.h \
$(DIR2)/common/globals.h \
$(DIR2)/common/keywords.h \
$(DIR2)/common/rule_line.h \
$(DIR2)/output/output.h \
$(DIR2)/support/helpers.h \
$(DIR2)/support/logger.h
$(DIR2)/support/helpers.o : $(DIR2)/support/helpers.h \
$(DIR2)/base/fstream.h \
$(DIR2)/base/regex.h \
$(DIR2)/alphanum.hpp \
$(DIR2)/common/dll_def.h \
$(DIR2)/common/error.h \
$(DIR2)/support/logger.h
$(DIR2)/support/logger.o : $(DIR2)/support/logger.h \
$(DIR2)/common/dll_def.h \
$(DIR2)/support/platform.h
$(DIR2)/support/mod_format.o : $(DIR2)/support/mod_format.h \
$(DIR2)/base/fstream.h \
$(DIR2)/base/regex.h \
$(DIR2)/support/types.h \
$(DIR2)/support/version_regex.h
$(DIR2)/support/version_regex.o : $(DIR2)/support/version_regex.h \
$(DIR2)/base/regex.h
.PHONY : clean
clean :
rm -f $(OBJECTS) bossCLI