File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
# The binaries that we want to build
2
2
PGMS := bin/lists bin/section_data bin/toc_diff bin/list_issues bin/set_status
3
3
CXXFLAGS := -std=c++17 -Wall -g -O2 -D_GLIBCXX_ASSERTIONS
4
+ CPPFLAGS := -MMD
4
5
5
6
# Running 'make debug' is equivalent to 'make DEBUG=1'
6
7
ifeq "$(MAKECMDGOALS ) " "debug"
10
11
# Running 'make DEBUG=blah' rebuilds all binaries with debug settings
11
12
ifdef DEBUG
12
13
debug : pgms
13
- CPPFLAGS : = -DDEBUG_SUPPORT -D_GLIBCXX_DEBUG
14
+ CPPFLAGS + = -DDEBUG_SUPPORT -D_GLIBCXX_DEBUG
14
15
CXXFLAGS += -O0
15
16
ifdef LOGGING
16
17
CPPFLAGS += -DDEBUG_LOGGING
@@ -32,6 +33,8 @@ all: pgms
32
33
33
34
pgms : $(PGMS )
34
35
36
+ -include src/*.d
37
+
35
38
bin/lists : src/date.o src/issues.o src/status.o src/sections.o src/mailing_info.o src/report_generator.o src/lists.o src/metadata.o
36
39
37
40
bin/section_data : src/section_data.o
@@ -46,7 +49,7 @@ $(PGMS):
46
49
$(CXX ) $(CXXFLAGS ) $(LDFLAGS ) -o $@ $^ $(LDLIBS )
47
50
48
51
clean :
49
- rm -f $(PGMS ) src/* .o
52
+ rm -f $(PGMS ) src/* .o src/ * .d
50
53
51
54
# Remove everything.
52
55
# Caution: Regenerating meta-data/dates will take about 30 minutes.
You can’t perform that action at this time.
0 commit comments