Skip to content

Commit 261af09

Browse files
Makefile.am: adding compiler options and warnings
1 parent 7c1b1ab commit 261af09

File tree

1 file changed

+30
-11
lines changed

1 file changed

+30
-11
lines changed

Makefile.am

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# This file is part of smithlab_cpp
22
#
3-
# Copyright (C) 2010-2020: Andrew D. Smith and Meng Zhou
3+
# Copyright (C) 2010-2024: Andrew D. Smith
44
#
5-
# Author: Andrew D. Smith and Meng Zhou
5+
# Author: Andrew D. Smith
66
#
77
# This is free software: you can redistribute it and/or modify it
88
# under the terms of the GNU General Public License as published by
@@ -18,23 +18,42 @@ EXTRA_DIST = README.md
1818

1919
ACLOCAL_AMFLAGS = -I m4
2020

21-
CXXFLAGS = -Wall -O3
21+
CXXFLAGS = -Wall -Wextra -Wpedantic
22+
CXXFLAGS += -O3 -DNDEBUG
2223

2324
lib_LIBRARIES = libsmithlab_cpp.a
2425

25-
libsmithlab_cpp_a_SOURCES = GenomicRegion.cpp MappedRead.cpp \
26-
OptionParser.cpp QualityScore.cpp chromosome_utils.cpp \
27-
bisulfite_utils.cpp smithlab_os.cpp smithlab_utils.cpp \
28-
zlib_wrapper.cpp dna_four_bit.cpp cigar_utils.cpp sam_record.cpp
26+
libsmithlab_cpp_a_SOURCES = \
27+
GenomicRegion.cpp \
28+
MappedRead.cpp \
29+
OptionParser.cpp \
30+
QualityScore.cpp \
31+
chromosome_utils.cpp \
32+
bisulfite_utils.cpp \
33+
smithlab_os.cpp \
34+
smithlab_utils.cpp \
35+
zlib_wrapper.cpp \
36+
dna_four_bit.cpp \
37+
cigar_utils.cpp \
38+
sam_record.cpp
2939

3040
if ENABLE_HTS
3141
libsmithlab_cpp_a_SOURCES += htslib_wrapper.cpp
3242
endif
3343

34-
include_HEADERS = GenomicRegion.hpp MappedRead.hpp OptionParser.hpp \
35-
QualityScore.hpp chromosome_utils.hpp bisulfite_utils.hpp \
36-
smithlab_os.hpp smithlab_utils.hpp zlib_wrapper.hpp dna_four_bit.hpp \
37-
cigar_utils.hpp sam_record.hpp
44+
include_HEADERS = \
45+
GenomicRegion.hpp \
46+
MappedRead.hpp \
47+
OptionParser.hpp \
48+
QualityScore.hpp \
49+
chromosome_utils.hpp \
50+
bisulfite_utils.hpp \
51+
smithlab_os.hpp \
52+
smithlab_utils.hpp \
53+
zlib_wrapper.hpp \
54+
dna_four_bit.hpp \
55+
cigar_utils.hpp \
56+
sam_record.hpp
3857

3958
if ENABLE_HTS
4059
include_HEADERS += htslib_wrapper.hpp

0 commit comments

Comments
 (0)