Skip to content

Commit

Permalink
prep release
Browse files Browse the repository at this point in the history
  • Loading branch information
gpertea committed Jul 23, 2021
1 parent 94594ed commit 5647f07
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ LINKER := $(if $(LINKER),$(LINKER),g++)

LDFLAGS := $(if $(LDFLAGS),$(LDFLAGS),-g)

BASEFLAGS := -Wall -Wextra ${SEARCHDIRS} -D_FILE_OFFSET_BITS=64 \
-D_LARGEFILE_SOURCE -D_REENTRANT -fno-strict-aliasing \
-std=c++11 -fno-exceptions -fno-rtti
BASEFLAGS := -Wall -Wextra -std=c++11 ${SEARCHDIRS} -D_FILE_OFFSET_BITS=64 \
-D_LARGEFILE_SOURCE -D_REENTRANT -fno-strict-aliasing \
-fno-exceptions -fno-rtti

GCCV8 := $(shell expr `${CXX} -dumpversion | cut -f1 -d.` \>= 8)
ifeq "$(GCCV8)" "1"
Expand All @@ -22,8 +22,12 @@ CXXFLAGS := $(if $(CXXFLAGS),$(BASEFLAGS) $(CXXFLAGS),$(BASEFLAGS))

ifneq (,$(filter %release %static, $(MAKECMDGOALS)))
# -- release build
CXXFLAGS := -g -O3 -DNDEBUG $(CXXFLAGS)
else
LIBS :=
ifneq (,$(findstring static,$(MAKECMDGOALS)))
LDFLAGS += -static-libstdc++ -static-libgcc
endif
CXXFLAGS := -O3 -DNDEBUG $(CXXFLAGS)
else #debug builds
ifneq (,$(filter %profile %gprof %prof, $(MAKECMDGOALS)))
CXXFLAGS += -pg -O0 -DNDEBUG
LDFLAGS += -pg
Expand Down Expand Up @@ -75,7 +79,7 @@ OBJS := ${GCLDIR}/GBase.o ${GCLDIR}/GArgs.o ${GCLDIR}/GFaSeqGet.o \

.PHONY : all

all release debug memcheck memdebug profile gprof prof: ../gclib gffread
all static release debug memcheck memdebug profile gprof prof: ../gclib gffread

../gclib:
git clone https://github.com/gpertea/gclib.git ../gclib
Expand Down
2 changes: 1 addition & 1 deletion prep_source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ libdir=$pack/gclib/
cp LICENSE README.md gffread.cpp gff_utils.{h,cpp} $pack/
sed 's|\.\./gclib|./gclib|' Makefile > $pack/Makefile

cp ../gclib/{GVec,GList,GHashMap,khashl}.hh ../gclib/xxhash.h ../gclib/GBitVec.h $libdir
cp ../gclib/{GVec,GList,GHashMap,khashl}.hh ../gclib/xxhash.h ../gclib/wyhash.h ../gclib/GBitVec.h $libdir
cp ../gclib/{GArgs,GBase,gdna,GStr,gff,codons,GFaSeqGet,GFastaIndex}.{h,cpp} $libdir
tar cvfz $pack.tar.gz $pack
ls -l $pack.tar.gz
Expand Down

0 comments on commit 5647f07

Please sign in to comment.