Skip to content

Commit

Permalink
libbiosig2 and libbiosig are merged into libbiosig v1.9.3, improved a…
Browse files Browse the repository at this point in the history
…utoconf/prefix support
  • Loading branch information
schloegl committed Jan 2, 2019
1 parent 6c1d85f commit c0947af
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 14 deletions.
37 changes: 24 additions & 13 deletions Makefile.static
Expand Up @@ -214,7 +214,17 @@ CFLAGS = $(DEFINES) $(shell $(WXCONF) --cflags) -fstack-protector -O2
CPPFLAGS = $(DEFINES) $(shell $(WXCONF) --cppflags) -std=gnu++11 -fstack-protector -O2 CPPFLAGS = $(DEFINES) $(shell $(WXCONF) --cppflags) -std=gnu++11 -fstack-protector -O2
CXXFLAGS = $(DEFINES) $(shell $(WXCONF) --cxxflags) -std=gnu++11 -fstack-protector -O2 CXXFLAGS = $(DEFINES) $(shell $(WXCONF) --cxxflags) -std=gnu++11 -fstack-protector -O2
LIBS += $(shell $(WXCONF) --libs net,adv,aui,core,base) LIBS += $(shell $(WXCONF) --libs net,adv,aui,core,base)
PREFIX ?= /usr

prefix ?= $(PREFIX)
exec_prefix = ${prefix}
datarootdir = ${prefix}/share
datadir = ${datarootdir}
libdir = ${exec_prefix}/lib
includedir = ${prefix}/include
bindir = ${exec_prefix}/bin
mandir = ${datarootdir}/man

PKGCONF ?= $(CROSS)pkg-config PKGCONF ?= $(CROSS)pkg-config


ifeq (5,$(shell $(CXX) -v 2>&1 | awk '/gcc version / {print substr($$3,1,1)}' )) ifeq (5,$(shell $(CXX) -v 2>&1 | awk '/gcc version / {print substr($$3,1,1)}' ))
Expand All @@ -231,17 +241,17 @@ ifneq ($(CROSS),)
else else
ifneq ($(wildcard /usr/lib/libhdf5*),) ifneq ($(wildcard /usr/lib/libhdf5*),)
## Debian/Wheezy ## Debian/Wheezy
CPPFLAGS += -I$(PREFIX)/include CPPFLAGS += -I$(includedir)
LIBS += -lhdf5_hl -lhdf5 LIBS += -lhdf5_hl -lhdf5
else ifneq ($(wildcard $(PREFIX)/$(TARGET)/lib/libhdf5*),) else ifneq ($(wildcard $(prefix)/$(TARGET)/lib/libhdf5*),)
CPPFLAGS += -I$(PREFIX)/$(TARGET)/include CPPFLAGS += -I$(prefix)/$(TARGET)/include
CXXFLAGS += -I$(PREFIX)/$(TARGET)/include CXXFLAGS += -I$(prefix)/$(TARGET)/include
LDFLAGS += -L$(PREFIX)/$(TARGET)/lib LDFLAGS += -L$(prefix)/$(TARGET)/lib
LIBS += -lhdf5_hl -lhdf5 LIBS += -lhdf5_hl -lhdf5
else ifneq ($(wildcard $(PREFIX)/lib/libhdf5*),) else ifneq ($(wildcard $(libdir)/libhdf5*),)
CPPFLAGS += -I$(PREFIX)/include CPPFLAGS += -I$(includedir)
CXXFLAGS += -I$(PREFIX)/include CXXFLAGS += -I$(includedir)
LDFLAGS += -L$(PREFIX)/lib LDFLAGS += -L$(libdir)
LIBS += -lhdf5_hl -lhdf5 LIBS += -lhdf5_hl -lhdf5
else else
PLATFORM = $(shell dpkg-architecture -q DEB_TARGET_MULTIARCH) PLATFORM = $(shell dpkg-architecture -q DEB_TARGET_MULTIARCH)
Expand All @@ -258,7 +268,7 @@ endif


## BIOSIG related stuff ## ## BIOSIG related stuff ##
ifneq (,$(findstring WITH_BIOSIG2, $(DEFINES))) ifneq (,$(findstring WITH_BIOSIG2, $(DEFINES)))
LIBS += -lbiosig2 LIBS += -lbiosig
else else
ifneq (,$(findstring WITH_BIOSIG, $(DEFINES))) ifneq (,$(findstring WITH_BIOSIG, $(DEFINES)))
LIBS += -lbiosig LIBS += -lbiosig
Expand All @@ -275,6 +285,7 @@ ifeq (mingw,$(findstring mingw, $(WXCONF)))
LIBS += -lgfortran -lquadmath LIBS += -lgfortran -lquadmath
LIBS += -liberty -liconv LIBS += -liberty -liconv
endif endif
LIBS += -liconv -ltinyxml -lstdc++




############################################################## ##############################################################
Expand Down Expand Up @@ -307,8 +318,8 @@ clean:
rm -f stimfit rm -f stimfit


install: $(TARGET) install: $(TARGET)
install $(TARGET) $(PREFIX)/bin/ install $(TARGET) $(bindir)


uninstall: uninstall:
rm $(PREFIX)/bin/stimfit rm $(bindir)/stimfit


2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -147,7 +147,7 @@ AM_CONDITIONAL(WITH_BIOSIGLITE, test "$with_biosiglite" = "yes")


if test "$with_biosig2" = "yes" ; then if test "$with_biosig2" = "yes" ; then
CPPFLAGS="${CPPFLAGS} -DWITH_BIOSIG2" CPPFLAGS="${CPPFLAGS} -DWITH_BIOSIG2"
LIBBIOSIG_LDFLAGS="-lbiosig2 -lcholmod" LIBBIOSIG_LDFLAGS="-lbiosig -lcholmod"
elif test "$with_biosig" = "yes" ; then elif test "$with_biosig" = "yes" ; then
CPPFLAGS="${CPPFLAGS} -DWITH_BIOSIG" CPPFLAGS="${CPPFLAGS} -DWITH_BIOSIG"
LIBBIOSIG_LDFLAGS="-lbiosig -lcholmod" LIBBIOSIG_LDFLAGS="-lbiosig -lcholmod"
Expand Down

0 comments on commit c0947af

Please sign in to comment.