4 # The contents of this file are subject to the terms of the Common Development
5 # and Distribution License Version 1.0 (the "License").
7 # You can obtain a copy of the license at
8 # http://www.opensource.org/licenses/CDDL-1.0. See the License for the
9 # specific language governing permissions and limitations under the License.
11 # When distributing Covered Code, include this CDDL HEADER in each file and
12 # include the License file in a prominent location with the name LICENSE.CDDL.
13 # If applicable, add the following below this CDDL HEADER, with the fields
14 # enclosed by brackets "[]" replaced with your own identifying information:
16 # Portions Copyright (c) [yyyy] [name of copyright owner]. All rights reserved.
22 # Copyright (c) 2013--2018, Regents of the University of Minnesota.
23 # All rights reserved.
30 # Release: This file is part of the kim-api-v2.0.0-beta.1 package.
33 ifeq ($(wildcard ../../Makefile.KIM_Config),)
34 $(error Makefile.KIM_Config does not exist. Something is wrong with your KIM API package setup)
36 include ../../Makefile.KIM_Config
38 INCLDS = KIM_LOG_MAXIMUM_LEVEL.inc KIM_Version.hpp
41 # Main build settings and rules
45 # add local Makefile to KIM_MAKE_FILES
46 KIM_MAKE_FILES += $(KIM_DIR)/cpp/include/Makefile
52 KIM_LOG_MAXIMUM_LEVEL.inc: $(KIM_MAKE_FILES)
53 @printf "Creating... include file....... $@.\n"
54 $(QUELL)printf "#define KIM_LOG_MAXIMUM_LEVEL $(KIM_LOG_MAXIMUM_LEVEL)\n" > $@
56 KIM_Version.hpp: KIM_Version.hpp.tpl $(KIM_MAKE_FILES)
57 @printf "Creating... include file....... $@.\n"
58 $(QUELL)cat KIM_Version.hpp.tpl | sed -e 's/versionMajor/$(VERSION_MAJOR)/g' \
59 -e 's/versionMinor/$(VERSION_MINOR)/g' \
60 -e 's/versionPatch/$(VERSION_PATCH)/g' \
61 -e 's/versionPrerelease/"$(VERSION_PRERELEASE)"/g' \
62 -e 's/versionBuildMetadata/"$(VERSION_BUILD_METADATA)"/g' \
63 -e 's/versionString/"$(VERSION_FULL)"/g' \
68 # Main clean settings and rules
73 @printf "Cleaning... cpp/include.\n"
74 $(QUELL)rm -f $(INCLDS)