Steffen Möller pushed to branch upstream at Debian Med / libgclib
Commits: 0748c2bc by Steffen Moeller at 2020-08-09T22:19:05+02:00 New upstream version 0.11.10+ds - - - - - 1 changed file: - − Makefile Changes: ===================================== Makefile deleted ===================================== @@ -1,117 +0,0 @@ -INCDIRS := -I. -I${GDIR} -I${BAM} - -CXX := $(if $(CXX),$(CXX),g++) - -LINKER := $(if $(LINKER),$(LINKER),g++) - -LDFLAGS := $(if $(LDFLAGS),$(LDFLAGS),-g) - -LIBS := - - -# A simple hack to check if we are on Windows or not (i.e. are we using mingw32-make?) -ifeq ($(findstring mingw32, $(MAKE)), mingw32) -WINDOWS=1 -endif - -# Compiler settings -TLIBS = -# Non-windows systems need pthread -ifndef WINDOWS -TLIBS += -lpthread -endif - - - -DMACH := $(shell ${CXX} -dumpmachine) - -# MinGW32 GCC 4.5 link problem fix -ifdef WINDOWS -DMACH := windows -ifeq ($(findstring 4.5.,$(shell g++ -dumpversion)), 4.5.) -LDFLAGS += -static-libstdc++ -static-libgcc -endif -endif - -# Misc. system commands -ifdef WINDOWS -RM = del /Q -else -RM = rm -f -endif - -# File endings -ifdef WINDOWS -EXE = .exe -else -EXE = -endif - -CC := ${CXX} - -BASEFLAGS := -Wall -Wextra ${INCDIRS} $(MARCH) \ - -D_REENTRANT -fno-exceptions -fno-rtti - -GCCVER5 := $(shell expr `${CXX} -dumpversion | cut -f1 -d.` \>= 5) -ifeq "$(GCCVER5)" "1" - BASEFLAGS += -Wno-implicit-fallthrough -endif - -GCCVER8 := $(shell expr `${CXX} -dumpversion | cut -f1 -d.` \>= 8) -ifeq "$(GCCVER8)" "1" - BASEFLAGS += -Wno-class-memaccess -endif - -#add the link-time optimization flag if gcc version > 4.5 -GCC_VERSION:=$(subst ., ,$(shell gcc -dumpversion)) -GCC_MAJOR:=$(word 1,$(GCC_VERSION)) -GCC_MINOR:=$(word 2,$(GCC_VERSION)) -#GCC_SUB:=$(word 3,$(GCC_VERSION)) -GCC_SUB:=x - -GCC45OPTS := -GCC45OPTMAIN := - -ifneq (,$(filter %release %nodebug, $(MAKECMDGOALS))) - # -- release build - CXXFLAGS := $(if $(CXXFLAGS),$(CXXFLAGS),-g -O3) - CXXFLAGS += -DNDEBUG $(BASEFLAGS) - ifeq ($(shell expr $(GCC_MAJOR).$(GCC_MINOR) '>=' 4.5),1) - CXXFLAGS += -flto - GCC45OPTS := -flto - GCC45OPTMAIN := -fwhole-program - endif -else - # -- debug build - CXXFLAGS := $(if $(CXXFLAGS),$(CXXFLAGS),-g -O0) - ifneq (, $(findstring darwin, $(DMACH))) - CXXFLAGS += -gdwarf-3 - endif - CXXFLAGS += -DDEBUG -D_DEBUG -DGDEBUG $(BASEFLAGS) -endif - -%.o : %.cpp - ${CXX} ${CXXFLAGS} -c $< -o $@ - - -.PHONY : all -all: htest -#mdtest -nodebug: all -release: all -debug: all - -OBJS := GBase.o GStr.o GArgs.o GResUsage.o - -version: ; @echo "GCC Version is: "$(GCC_MAJOR)":"$(GCC_MINOR)":"$(GCC_SUB) - @echo "> GCC Opt. string is: "$(GCC45OPTS) -htest: $(OBJS) htest.o GHash.hh - ${LINKER} ${LDFLAGS} $(GCC45OPTS) $(GCC45OPTMAIN) -o $@ ${filter-out %.a %.so, $^} ${LIBS} -mdtest: $(OBJS) mdtest.o - ${LINKER} ${LDFLAGS} $(GCC45OPTS) $(GCC45OPTMAIN) -o $@ ${filter-out %.a %.so, $^} ${LIBS} -# target for removing all object files - -.PHONY : clean -clean:: - @${RM} $(OBJS) *.o mdtest$(EXE) htest$(EXE) - @${RM} core.* View it on GitLab: https://salsa.debian.org/med-team/libgclib/-/commit/0748c2bcd48bc9df8d250af81c2a455f94d228db -- View it on GitLab: https://salsa.debian.org/med-team/libgclib/-/commit/0748c2bcd48bc9df8d250af81c2a455f94d228db You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ debian-med-commit mailing list debian-med-com...@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit