-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
executable file
·57 lines (50 loc) · 1.82 KB
/
Makefile
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
DESTDIR=$(shell pwd)
ARCH=$(shell getconf LONG_BIT)
VMDVER="1.9.4a57"
OPTIX=
OSPRAY=
ifeq ($(ARCH),64)
PLUGINTEXT=LINUXAMD64
#OPTIX=LIBOPTIX #Uncomment this if you want to add in the OptiX renderer.
#OSPRAY=LIBOSPRAY2 #Uncomment this if you want to add in the OSPRAY renderer.
else
PLUGINTEXT=LINUX
endif
PLUGINDIR=$(DESTDIR)/../vmd-plugins/usr/lib/vmd/plugins
PLUGINBINDIR=$(DESTDIR)/../vmd-plugins/usr/bin
TCL_INCLUDE_DIR=/usr/include/tcl8.6/
TCL_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu
TK_INCLUDE_DIR=/usr/include/tcl8.6/
TK_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu
PYTHON_INCLUDE_DIR=/usr/include/python3.10
export
all: compileplugins compilevmd
compileplugins:
cd plugins; make $(PLUGINTEXT) TCLINC=-I/usr/include/tcl8.6 TCLLIB=-L/usr/lib \
NETCDFLIB=-L/usr/lib NETCDFINC=-I/usr/include/ -j ; make distrib PLUGINDIR=$(DESTDIR)/vmd/plugins ; \
# TNGLIB=-L/usr/local/lib TNGINC=-I/usr/local/include
copyvmd:
cp -r vmd vmd-cuda
compilevmd: copyvmd
cd vmd; \
./configure $(PLUGINTEXT) OPENGL TK FLTK IMD ACTC XINERAMA LIBTACHYON ZLIB LIBPNG NETCDF TCL PYTHON PTHREADS NUMPY COLVARS $(OSPRAY) ; \
cd src ; make -j
cd vmd-cuda; \
./configure $(PLUGINTEXT) OPENGL TK FLTK IMD ACTC XINERAMA LIBTACHYON ZLIB LIBPNG NETCDF TCL PYTHON PTHREADS NUMPY COLVARS $(OSPRAY) CUDA $(OPTIX); \
cd src ; make -j
installplugins:
@echo "Destination Directory:"
@echo $(DESTDIR)
@echo $(PLUGINDIR)
cd plugins ; make distrib
installvmd:
cd vmd/src; make install
cd vmd-cuda/src; make install
install: installplugins installvmd
cp vmd.png debian/vmd/usr/share/pixmaps/
cp vmd.png debian/vmd-cuda/usr/share/pixmaps/
cp debian/vmd.desktop debian/vmd/usr/share/applications/
cp debian/vmd.desktop debian/vmd-cuda/usr/share/applications/
clean:
cd plugins; make clean ; cd ../vmd ; rm -rf plugins; cd src; make veryclean ; \
cd ../.. ; rm -rf vmd-cuda