Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dssp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
dssp
Commits
56adb0fd
Unverified
Commit
56adb0fd
authored
Feb 22, 2021
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new makefile setup
parent
1147b4c4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
49 additions
and
64 deletions
+49
-64
GNUmakefile.in
+29
-50
configure
+12
-12
configure.ac
+7
-1
rsrc/mmcif_pdbx.dic
+0
-0
src/mkdssp.cpp
+1
-1
No files found.
GNUmakefile.in
View file @
56adb0fd
...
@@ -23,10 +23,16 @@
...
@@ -23,10 +23,16 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
firstTarget
:
all
firstTarget
:
all
empty
=
space
=
$(empty)
$(empty)
CXX
=
@CXX@
CXX
=
@CXX@
CXXFLAGS
=
@CXXFLAGS@ @CPPFLAGS@ @PTHREAD_CFLAGS@ @CIFPP_CFLAGS@
CXXFLAGS
=
@CXXFLAGS@
\
LDFLAGS
=
@LDFLAGS@ @PTHREAD_CFLAGS@
@CPPFLAGS@
\
@PTHREAD_CFLAGS@
\
@CIFPP_CFLAGS@
LDFLAGS
=
@LDFLAGS@
\
@PTHREAD_CFLAGS@
LIBS
=
@CIFPP_LIBS@
\
LIBS
=
@CIFPP_LIBS@
\
@BOOST_IOSTREAMS_LIB@
\
@BOOST_IOSTREAMS_LIB@
\
@BOOST_PROGRAM_OPTIONS_LIB@
\
@BOOST_PROGRAM_OPTIONS_LIB@
\
...
@@ -44,26 +50,19 @@ mandir = @mandir@
...
@@ -44,26 +50,19 @@ mandir = @mandir@
GNUmakefile
:
config.status GNUmakefile.in
GNUmakefile
:
config.status GNUmakefile.in
$(SHELL)
./config.status
$(SHELL)
./config.status
ifneq
"$(CHECK_CONFIG)"
""
# main build variables
PROGRAM
=
@PACKAGE_NAME@
config.status
:
configure
VERSION
=
@PACKAGE_VERSION@
$(SHELL)
./config.status
--recheck
configure
:
configure.ac
SEARCH_PATHS
=
src
test
@LIBCIFPP_DATA_DIR@
autoconf
endif
OBJECTS
=
$(PROGRAM)
.o
# main build variables
RESOURCES
=
mmcif_pdbx_v50.dic
VERSION
=
@PACKAGE_VERSION@.0
DEFINES
+=
VERSION
=
'"
$(VERSION)
"'
CXXFLAGS
+=
-Wall
-Wno-multichar
LIBCIFPP_DATA_DIR
=
@LIBCIFPP_DATA_DIR@
# Use the DEBUG flag to build debug versions of the code
# Use the DEBUG flag to build debug versions of the code
DEBUG
=
@DEBUG@
DEBUG
=
@DEBUG@
ifeq
"$(DEBUG)"
"1"
ifeq
"$(DEBUG)"
"1"
DEFINES
+=
DEBUG
DEFINES
+=
DEBUG
...
@@ -77,10 +76,9 @@ endif
...
@@ -77,10 +76,9 @@ endif
MRC
=
@MRC@
MRC
=
@MRC@
USE_RSRC
=
@USE_RSRC@
USE_RSRC
=
@USE_RSRC@
# targets
VPATH
+=
$
(
subst
$(space)
,:,
$(SEARCH_PATHS)
)
VPATH
+=
src:test
CXXFLAGS
+=
-Wall
-Wno-multichar
CXXFLAGS
+=
$
(
DEFINES:%
=
-D
%
)
CXXFLAGS
+=
$
(
DEFINES:%
=
-D
%
)
OBJDIR
=
obj
OBJDIR
=
obj
...
@@ -105,7 +103,7 @@ REVISION_FILE = version-info-$(REVISION).txt
...
@@ -105,7 +103,7 @@ REVISION_FILE = version-info-$(REVISION).txt
$(REVISION_FILE)
:
$(REVISION_FILE)
:
rm
-f
version-info-
*
.txt
rm
-f
version-info-
*
.txt
@
echo
dssp
-version:
$(VERSION)
>
$@
@
echo
$(PROGRAM)
-version
:
$(VERSION)
>
$@
@
git describe
--match
=
build
--dirty
>>
$@
@
git describe
--match
=
build
--dirty
>>
$@
@
git log
--pretty
=
medium
--date
=
iso8601
-1
>>
$@
@
git log
--pretty
=
medium
--date
=
iso8601
-1
>>
$@
...
@@ -118,45 +116,26 @@ else
...
@@ -118,45 +116,26 @@ else
src/revision.hpp
:
src/revision.hpp
:
@
echo
'const char kRevision[] = R"('
>
$@
@
echo
'const char kRevision[] = R"('
>
$@
@
echo
dssp
-version:
$(VERSION)
>>
$@
@
echo
$(PROGRAM)
-version
:
$(VERSION)
>>
$@
@
echo
Date:
$$
(
date
--iso-8601
)
>>
$@
@
echo
Date:
$$
(
date
--iso-8601
)
>>
$@
@
echo
')";'
>>
$@
@
echo
')";'
>>
$@
endif
endif
ifneq
"$(USE_RSRC)"
"0"
rsrc/version.txt
:
$(REVISION_FILE)
cp
$?
$@
endif
# The program rules
# The program rules
OBJECTS
=
\
$(OBJDIR)
/dssp.o
ifneq
"$(USE_RSRC)"
"0"
ifneq
"$(USE_RSRC)"
"0"
OBJECTS
+=
$(OBJDIR)
/dssp_rsrc.o
OBJECTS
+=
$(PROGRAM)
_rsrc.o
rsrc
:
@
mkdir
-p
$@
rsrc/%.dic
:
$(LIBCIFPP_DATA_DIR)/%.dic.gz | rsrc
zcat
$^
>
$@
rsrc/%.dic
:
$(LIBCIFPP_DATA_DIR)/%.dic | rsrc
ln
-fs
$^
$@
$(OBJDIR)/
dssp_rsrc.o
:
rsrc/mmcif_pdbx_v50.dic
$(OBJDIR)/
$(PROGRAM)_rsrc.o
:
$(RESOURCES)
$(MRC)
-o
$@
$^
$(MRC)
-o
$@
$^
endif
endif
$(OBJDIR)/
dssp
.o
:
src/revision.hpp
$(OBJDIR)/
$(PROGRAM)
.o
:
src/revision.hpp
mkdssp
:
$(OBJECTS
)
$(PROGRAM)
:
$(OBJECTS:%.o=$(OBJDIR)/%.o
)
@
echo
'->'
$@
@
echo
'->'
$@
@
$(CXX)
-o
$@
$^
$(CXXFLAGS)
$(LDFLAGS)
$(LIBS)
@
$(CXX)
-o
$@
$^
$(CXXFLAGS)
$(LDFLAGS)
$(LIBS)
...
@@ -166,17 +145,17 @@ $(OBJDIR)/%.d: $(OBJDIR)/%.o
...
@@ -166,17 +145,17 @@ $(OBJDIR)/%.d: $(OBJDIR)/%.o
.PHONY
:
clean all
.PHONY
:
clean all
clean
:
clean
:
rm
-rf
mkdssp
$(OBJDIR)
/
*
src/revision.hpp
rm
-rf
$(PROGRAM)
$(OBJDIR)
/
*
src/revision.hpp
all
:
mkdssp
all
:
$(PROGRAM)
.PHONY
:
install
.PHONY
:
install
install
:
mkdssp
install
:
$(PROGRAM)
install
-d
$(bindir)
install
-d
$(bindir)
install
mkdssp
$(bindir)
/mkdssp
install
$(PROGRAM)
$(bindir)
/
$(PROGRAM)
install
-d
$(mandir)
/man1
install
-d
$(mandir)
/man1
install
-m
644
mkdssp.1
$(mandir)
/man1/mkdssp
.1
;
install
-m
644
doc/
$(PROGRAM)
.1
$(mandir)
/man1/
$(PROGRAM)
.1
;
gzip
$(mandir)
/man1/
mkdssp
.1
;
gzip
$(mandir)
/man1/
$(PROGRAM)
.1
;
.PHONY
:
FORCE
.PHONY
:
FORCE
FORCE
:
FORCE
:
...
...
configure
View file @
56adb0fd
#! /bin/sh
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for
dssp 4
.0.
# Generated by GNU Autoconf 2.69 for
mkdssp 4.0
.0.
#
#
# Report bugs to <m.hekkelman@nki.nl>.
# Report bugs to <m.hekkelman@nki.nl>.
#
#
...
@@ -578,10 +578,10 @@ MFLAGS=
...
@@ -578,10 +578,10 @@ MFLAGS=
MAKEFLAGS
=
MAKEFLAGS
=
# Identity of this package.
# Identity of this package.
PACKAGE_NAME
=
'dssp'
PACKAGE_NAME
=
'
mk
dssp'
PACKAGE_TARNAME
=
'dssp'
PACKAGE_TARNAME
=
'
mk
dssp'
PACKAGE_VERSION
=
'4.0'
PACKAGE_VERSION
=
'4.0
.0
'
PACKAGE_STRING
=
'
dssp 4
.0'
PACKAGE_STRING
=
'
mkdssp 4.0
.0'
PACKAGE_BUGREPORT
=
'm.hekkelman@nki.nl'
PACKAGE_BUGREPORT
=
'm.hekkelman@nki.nl'
PACKAGE_URL
=
''
PACKAGE_URL
=
''
...
@@ -1309,7 +1309,7 @@ if test "$ac_init_help" = "long"; then
...
@@ -1309,7 +1309,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
# This message is too long to be a string in the A/UX 3.1 sh.
cat
<<
_ACEOF
cat
<<
_ACEOF
\`configure' configures
dssp 4
.0 to adapt to many kinds of systems.
\`configure' configures
mkdssp 4.0
.0 to adapt to many kinds of systems.
Usage:
$0
[OPTION]... [VAR=VALUE]...
Usage:
$0
[OPTION]... [VAR=VALUE]...
...
@@ -1358,7 +1358,7 @@ Fine tuning of the installation directories:
...
@@ -1358,7 +1358,7 @@ Fine tuning of the installation directories:
--infodir=DIR info documentation [DATAROOTDIR/info]
--infodir=DIR info documentation [DATAROOTDIR/info]
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
--mandir=DIR man documentation [DATAROOTDIR/man]
--mandir=DIR man documentation [DATAROOTDIR/man]
--docdir=DIR documentation root [DATAROOTDIR/doc/dssp]
--docdir=DIR documentation root [DATAROOTDIR/doc/
mk
dssp]
--htmldir=DIR html documentation [DOCDIR]
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
...
@@ -1375,7 +1375,7 @@ fi
...
@@ -1375,7 +1375,7 @@ fi
if
test
-n
"
$ac_init_help
"
;
then
if
test
-n
"
$ac_init_help
"
;
then
case
$ac_init_help
in
case
$ac_init_help
in
short
|
recursive
)
echo
"Configuration of
dssp 4
.0:"
;;
short
|
recursive
)
echo
"Configuration of
mkdssp 4.0
.0:"
;;
esac
esac
cat
<<
\
_ACEOF
cat
<<
\
_ACEOF
...
@@ -1522,7 +1522,7 @@ fi
...
@@ -1522,7 +1522,7 @@ fi
test
-n
"
$ac_init_help
"
&&
exit
$ac_status
test
-n
"
$ac_init_help
"
&&
exit
$ac_status
if
$ac_init_version
;
then
if
$ac_init_version
;
then
cat
<<
\
_ACEOF
cat
<<
\
_ACEOF
dssp configure 4
.0
mkdssp configure 4.0
.0
generated by GNU Autoconf 2.69
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
Copyright (C) 2012 Free Software Foundation, Inc.
...
@@ -1945,7 +1945,7 @@ cat >config.log <<_ACEOF
...
@@ -1945,7 +1945,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
running configure, to aid debugging if configure makes a mistake.
It was created by
dssp
$as_me
4
.0, which was
It was created by
mkdssp
$as_me
4.0
.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0
$@
$ $0
$@
...
@@ -8095,7 +8095,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
...
@@ -8095,7 +8095,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
# values after options handling.
ac_log="
ac_log="
This file was extended by
dssp
$as_me
4
.0, which was
This file was extended by
mkdssp
$as_me
4.0
.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES =
$CONFIG_FILES
CONFIG_FILES =
$CONFIG_FILES
...
@@ -8157,7 +8157,7 @@ _ACEOF
...
@@ -8157,7 +8157,7 @@ _ACEOF
cat
>>
$CONFIG_STATUS
<<
_ACEOF
|| ac_write_fail=1
cat
>>
$CONFIG_STATUS
<<
_ACEOF
|| ac_write_fail=1
ac_cs_config="`
$as_echo
"
$ac_configure_args
" | sed 's/^ //; s/[\\""\`\
$]
/\\\\&/g'`"
ac_cs_config="`
$as_echo
"
$ac_configure_args
" | sed 's/^ //; s/[\\""\`\
$]
/\\\\&/g'`"
ac_cs_version="\\
ac_cs_version="\\
dssp config.status 4
.0
mkdssp config.status 4.0
.0
configured by
$0
, generated by GNU Autoconf 2.69,
configured by
$0
, generated by GNU Autoconf 2.69,
with options \\"\
$ac_cs_config
\\"
with options \\"\
$ac_cs_config
\\"
...
...
configure.ac
View file @
56adb0fd
AC_PREREQ([2.69])
AC_PREREQ([2.69])
AC_INIT([dssp], 4.0, [m.hekkelman@nki.nl])
m4_define([dssp_version_major],[4])
m4_define([dssp_version_minor],[0])
m4_define([dssp_version_micro],[0])
m4_define([dssp_version_extra],[])
m4_define([dssp_version],[dssp_version_major().dssp_version_minor().dssp_version_micro()dssp_version_extra])
AC_INIT([mkdssp], [dssp_version], [m.hekkelman@nki.nl])
dnl Switch to a C++ compiler, and check if it works.
dnl Switch to a C++ compiler, and check if it works.
AC_LANG(C++)
AC_LANG(C++)
...
...
rsrc/mmcif_pdbx.dic
deleted
100644 → 0
View file @
1147b4c4
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/dssp.cpp
→
src/
mk
dssp.cpp
View file @
56adb0fd
...
@@ -76,7 +76,7 @@ void load_version_info()
...
@@ -76,7 +76,7 @@ void load_version_info()
const
std
::
regex
const
std
::
regex
rxVersionNr
(
R"(build-(\d+)-g[0-9a-f]{7}(-dirty)?)"
),
rxVersionNr
(
R"(build-(\d+)-g[0-9a-f]{7}(-dirty)?)"
),
rxVersionDate
(
R"(Date: +(\d{4}-\d{2}-\d{2}).*)"
),
rxVersionDate
(
R"(Date: +(\d{4}-\d{2}-\d{2}).*)"
),
rxVersionNr2
(
R"(dssp-version: (\d+(?:\.\d+)+))"
);
rxVersionNr2
(
R"(
mk
dssp-version: (\d+(?:\.\d+)+))"
);
#include "revision.hpp"
#include "revision.hpp"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment