-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
158 lines (127 loc) · 5.96 KB
/
makefile
File metadata and controls
158 lines (127 loc) · 5.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
########################################################################
# Makefile for MD Visualizer.
# Copyright (c) 2019-2025 Oliver Kreylos
#
# This file is part of the MD Visualizer (MDVisualizer).
#
# The MD Visualizer is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# The MD Visualizer is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with the MD Visualizer; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA
########################################################################
# Directory containing the Vrui build system. The directory below
# matches the default Vrui installation; if Vrui's installation
# directory was changed during Vrui's installation, the directory below
# must be adapted.
VRUI_MAKEDIR = /usr/local/share/Vrui-14.1/make
# Base installation directory for the MD Visualizer. If this is set to
# the default of $(PROJECT_ROOT), the MD Visualizer does not have to be
# installed to be run. Created executables, configuration files, and
# resources will be installed in the bin, etc, and share directories
# under the given base directory, respectively.
# Important note: Do not use ~ as an abbreviation for the user's home
# directory here; use $(HOME) instead.
INSTALLDIR = $(PROJECT_ROOT)
########################################################################
# Everything below here should not have to be changed
########################################################################
# Name of the project
PROJECT_NAME = MDVisualizer
PROJECT_DISPLAYNAME = MD Visualizer
# Version number for installation subdirectories. This is used to keep
# subsequent release versions of the MD Visualizer from clobbering each
# other. The value should be identical to the major.minor version number
# found in VERSION in the root package directory.
PROJECT_MAJOR = 1
PROJECT_MINOR = 5
# Include definitions for the system environment and system-provided
# packages
include $(VRUI_MAKEDIR)/SystemDefinitions
include $(VRUI_MAKEDIR)/Packages.System
include $(VRUI_MAKEDIR)/Configuration.Vrui
include $(VRUI_MAKEDIR)/Packages.Vrui
include $(VRUI_MAKEDIR)/Configuration.Collaboration
include $(VRUI_MAKEDIR)/Packages.Collaboration
########################################################################
# Specify additional compiler and linker flags
########################################################################
CFLAGS += -Wall -pedantic
########################################################################
# List common packages used by all components of this project
# (Supported packages can be found in $(VRUI_MAKEDIR)/Packages.*)
########################################################################
PACKAGES =
########################################################################
# Specify all final targets
########################################################################
EXECUTABLES = $(EXEDIR)/MDVisualizer
.PHONY: all
all: $(EXECUTABLES)
########################################################################
# Pseudo-target to print configuration options and configure the package
########################################################################
.PHONY: config config-invalidate
config: config-invalidate $(DEPDIR)/config
config-invalidate:
@mkdir -p $(DEPDIR)
@touch $(DEPDIR)/Configure-Begin
$(DEPDIR)/Configure-Begin:
@mkdir -p $(DEPDIR)
@echo "---- $(PROJECT_FULLDISPLAYNAME) configuration options: ----"
@touch $(DEPDIR)/Configure-Begin
$(DEPDIR)/Configure-Package: $(DEPDIR)/Configure-Begin
@echo "Collaborative visualization enabled"
@touch $(DEPDIR)/Configure-Package
$(DEPDIR)/Configure-Install: $(DEPDIR)/Configure-Package
@echo "---- $(PROJECT_FULLDISPLAYNAME) installation configuration ----"
@echo "Installation directory: $(INSTALLDIR)"
@echo "Executable directory: $(EXECUTABLEINSTALLDIR)"
@touch $(DEPDIR)/Configure-Install
$(DEPDIR)/Configure-End: $(DEPDIR)/Configure-Install
@echo "---- End of $(PROJECT_FULLDISPLAYNAME) configuration options ----"
@touch $(DEPDIR)/Configure-End
$(DEPDIR)/config: $(DEPDIR)/Configure-End $(CONFIGFILES)
@touch $(DEPDIR)/config
########################################################################
# Specify other actions to be performed on a `make clean'
########################################################################
.PHONY: extraclean
extraclean:
.PHONY: extrasqueakyclean
extrasqueakyclean:
# Include basic makefile
include $(VRUI_MAKEDIR)/BasicMakefile
########################################################################
# Specify build rules for executables
########################################################################
MDVISUALIZER_SOURCES = Color.cpp \
Atom.cpp \
Trace.cpp \
CharmmTrace.cpp \
LammpsTrace.cpp \
EspressoTrace.cpp \
MDVisualizer.cpp
$(MDVISUALIZER_SOURCES:%.cpp=$(OBJDIR)/%.o): | $(DEPDIR)/config
$(EXEDIR)/MDVisualizer: PACKAGES += MYCOLLABORATION2CLIENT VRUIALL
$(EXEDIR)/MDVisualizer: $(MDVISUALIZER_SOURCES:%.cpp=$(OBJDIR)/%.o)
.PHONY: MDVisualizer
MDVisualizer: $(EXEDIR)/MDVisualizer
########################################################################
# Specify installation rules for header files, libraries, executables,
# configuration files, and shared files.
########################################################################
install: $(ALL)
@echo Installing $(PROJECT_DISPLAYNAME) in $(INSTALLDIR)...
@install -d $(INSTALLDIR)
@install -d $(EXECUTABLEINSTALLDIR)
@install $(EXECUTABLES) $(EXECUTABLEINSTALLDIR)