summaryrefslogtreecommitdiff
path: root/sim/src/Makefile.am
blob: b293d91457e5b03952c9c4c185e9db3fab1a822d (plain)
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

INCLUDES = -I@PYTHON_BASE@/include/python${PYTHON_VERSION}
CFLAGS = $(shell python distutils_compile_options.py compiler_so)

ne1bindir = $(bindir)/NanoEngineer-$(PACKAGE_VERSION).app/bin
ne1bin_LTLIBRARIES = sim.la

sim_la_LIBADD = \
	-L@PYTHON_BASE@/lib/python$(PYTHON_VERSION)/config \
	-lm \
	-lpython$(PYTHON_VERSION) \
	libstructcompare.a
sim_la_LDFLAGS = -module

sim_la_SOURCES = \
	allocate.c allocate.h \
	amber_patterns.c amber_patterns.h \
	debug.h \
	dynamics.c dynamics.h \
	globals.c globals.h \
	hashtable.c hashtable.h \
	interpolate.c interpolate.h \
	jigs.c jigs.h \
	lin-alg.c lin-alg.h \
	minimize.c minimize.h \
	minstructure.c minstructure.h \
	newtables.c newtables.h \
	pam5_patterns.c pam5_patterns.h \
	pattern.c pattern.h \
	part.c part.h \
	potential.c potential.h \
	printGromacsTopology.c printGromacsTopology.h \
	printers.c printers.h \
	read_amber_itp.c read_amber_itp.h \
	readmmp.c readmmp.h \
	readxyz.c readxyz.h \
	rigid.c rigid.h \
	rigid-ode.c rigid-ode.h \
	structcompare.c structcompare.h \
	writemovie.c writemovie.h \
	sim.c

# -std-c99 gets us isnormal()
noinst_LIBRARIES = libstructcompare.a
libstructcompare_a_SOURCES = structcompare.c simulator.h
libstructcompare_a_CFLAGS = -std=c99

BUILT_SOURCES = bonds.gen bends.gen version.h sim.c
bonds.gen: stretch.py stretch.parms
	python stretch.py stretch.parms > bonds.gen
bends.gen: bend.py bending.parms
	python bend.py bending.parms > bends.gen
version.h:
	python makehelp.py "$(CFLAGS)" "$(LDFLAGS)" "@UNAME_A@" \
		| grep -v "^running " > version.h
sim.c: sim.pyx simhelp.c
	pyrexc sim.pyx

EXTRA_DIST = \
	stretch.py stretch.parms bend.py bending.parms makehelp.py sim.pyx \
	simhelp.c distutils_compile_options.py