KIM API V2
Makefile
Go to the documentation of this file.
1 #
2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the Common Development
5 # and Distribution License Version 1.0 (the "License").
6 #
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.
10 #
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:
15 #
16 # Portions Copyright (c) [yyyy] [name of copyright owner]. All rights reserved.
17 #
18 # CDDL HEADER END
19 #
20 
21 #
22 # Copyright (c) 2013--2018, Regents of the University of Minnesota.
23 # All rights reserved.
24 #
25 # Contributors:
26 # Ryan S. Elliott
27 # Andrew Akerson
28 #
29 
30 
31 # load all basic KIM make configuration
32 KIM_API_BUILD_CONFIG = kim-api-v2-build-config
33 ifeq ($(shell $(KIM_API_BUILD_CONFIG) --version 2> /dev/null),)
34  $(error $(KIM_API_BUILD_CONFIG) utility is not available. Something is wrong with your KIM API package setup)
35 endif
36 include $(shell $(KIM_API_BUILD_CONFIG) --master-config)
37 
38 
39 # set model driver specific details
40 MODEL_DRIVER_NAME := LennardJones612__MD_414112407348_003
41 MODEL_DRIVER_CREATE_FUNCTION_NAME := model_driver_create
42 MODEL_DRIVER_CREATE_FUNCTION_LANG := cpp
43 
44 LOCALOBJ = LennardJones612.o LennardJones612Implementation.o
45 
46 LennardJones612.o: LennardJones612.hpp LennardJones612Implementation.hpp
47 LennardJones612Implementation.o: LennardJones612Implementation.hpp \
48  LennardJones612ImplementationComputeDispatch.cpp
49 LennardJones612ImplementationComputeDispatch.cpp: CreateDispatch.sh
50  @./CreateDispatch.sh
51  @printf "Creating... $@.\n"
52 
53 LOCALCLEAN = LennardJones612ImplementationComputeDispatch.cpp
54 
55 # APPEND to compiler option flag lists
56 #FFLAGS +=
57 #CFLAGS +=
58 #CXXFLAGS +=
59 #LDFLAGS +=
60 #LDLIBS +=
61 
62 # load remaining KIM make configuration
63 include $(KIM_DIR)/$(builddir)/Makefile.ModelDriver