Commit a3e1301a by Maarten L. Hekkelman

config setup

parents
.vscode
node_modules
rsrc/version.txt
version-info*.txt
docroot/fonts
docroot/scripts
obj
obj.dbg
mini-ibs
make.config
docroot/css/google-font*.css
autom4te.cache/
GNUmakefile
config.status
config.log
aclocal.m4
# Makefile for example app using libzeep
#
# Copyright Maarten L. Hekkelman, UMC St. Radboud 2008-2013.
# Copyright Maarten L. Hekkelman, 2014-2019
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
#
# Use the make.config file in the uplevel directory to
# change the settings for this build
SHELL := /bin/bash
firstTarget: all
CXX = @CXX@
CXXFLAGS = @CXXFLAGS@ @CPPFLAGS@ @BOOST_CPPFLAGS@ @PTHREAD_CFLAGS@
LDFLAGS = @LDFLAGS@ @BOOST_LDFLAGS@ @PTHREAD_CFLAGS@
LIBS = @LIBS@
BOOST_LIBS = program_options
LIBS += $(BOOST_LIBS:%=-lboost_%)
prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
includedir = @includedir@
GNUmakefile: config.status GNUmakefile.in
$(SHELL) ./config.status
config.status: configure
$(SHELL) ./config.status --recheck
configure: configure.ac
autoconf
# main build variables
CXXFLAGS += -Wall -Wno-multichar
PACKAGES +=
ifneq ($(PACKAGES),)
CXXFLAGS += $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --cflags $(PACKAGES))
LDFLAGS += $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config --libs $(PACKAGES) )
endif
# Use the DEBUG flag to build debug versions of the code
DEBUG = @DEBUG@
ifeq "$(DEBUG)" "1"
DEFINES += DEBUG
CXXFLAGS += -g -O0
LDFLAGS += -g
else
CXXFLAGS += -O2
DEFINES += NDEBUG
endif
# targets
VPATH += src:test
CXXFLAGS += $(DEFINES:%=-D%)
OBJDIR = obj
ifeq "$(DEBUG)" "1"
OBJDIR := $(OBJDIR).dbg
endif
$(OBJDIR):
mkdir -p $(OBJDIR)
APPLICATION = @PACKAGE_NAME@
OBJECTS = $(APPLICATION:%=$(OBJDIR)/%.o)
-include $(OBJECTS:%.o=%.d)
$(OBJECTS:.o=.d):
$(OBJDIR)/%.o: %.cpp | $(OBJDIR) GNUmakefile
@ echo ">>" $<
@ $(CXX) -MD -c -o $@ $< $(CFLAGS) $(CXXFLAGS)
all: $(APPLICATION)
.PHONY: all
$(APPLICATION): %: $(OBJECTS)
@ echo '->' $@
@ $(CXX) -o $@ $^ $(LDFLAGS) $(LIBS)
.PHONY: clean
clean:
rm -rf $(OBJDIR)/* $(APPLICATION)
.PHONY: distclean
distclean: clean
rm -f config.status config.cache config.log configure.lineno config.status.lineno
rm -f GNUmakefile
.PHONY: FORCE
FORCE:
This source diff could not be displayed because it is too large. You can view the blob instead.
AC_INIT([dssp], 3.0, [m.hekkelman@nki.nl])
dnl Switch to a C++ compiler, and check if it works.
AC_LANG(C++)
AX_CXX_COMPILE_STDCXX_17([noext])
AC_CONFIG_SRCDIR([src/dssp.cpp])
AC_CONFIG_AUX_DIR(config)
dnl AC_CONFIG_MACRO_DIR([config/m4])
AC_PREFIX_DEFAULT(/usr/local)
AC_PROG_INSTALL
AC_ARG_VAR([DEBUG], [Build a debug version of the application])
AC_PATH_PROG([PKG_CONFIG], [pkg-config])
AX_PTHREAD
AX_BOOST_BASE([1.65.1], [], [AC_MSG_ERROR([Could not find a recent version of boost])])
AC_ARG_WITH([cif++],
AS_HELP_STRING([--with-cif++=@<:@location@:>@],
[Use the cif++ library as specified.]),
[
CPPFLAGS="$CPPFLAGS -I ${withval}/include"
CXXFLAGS="$CXXFLAGS -I ${withval}/include"
LDFLAGS="$LDFLAGS -L${withval}/.libs"
])
AX_CHECK_LIBRARY([LIBCIFPP], [cif++/Config.h], [cif++],
[],
[AC_MSG_ERROR([libcif++ not found - cannot continue])])
dnl Process Makefile.in to create Makefile
AC_OUTPUT([GNUmakefile])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment