blob: c6a45a0b63674b76c825ee5bcdc44d8202ce0892 (
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
|
# Copyright (c) 2006 Nanorex, Inc. All rights reserved.
CC=C:/Dev-Cpp/bin/gcc.exe
CFLAGS=-IC:/Dev-Cpp/include
LDFLAGS=-LC:/Dev-Cpp/lib
PYREXOBJS=allocate.o \
dynamics.o \
globals.o \
hashtable.o \
interpolate.o \
jigs.o \
lin-alg.o \
minimize.o \
minstructure.o \
newtables.o \
part.o \
potential.o \
printers.o \
readmmp.o \
readxyz.o \
structcompare.o \
writemovie.o
all: sim.dll
# I'm now trained to type "make pyx"
pyx: sim.dll
clean:
rm -f *~ *.o *.a *.dll sim.c *.def
sim.c: simhelp.c sim.pyx
python c:/Python23/Scripts/pyrexc.py sim.pyx
libpython23.a: libpython23.a.gz
gunzip < libpython23.a.gz > libpython23.a
sim.dll: sim.c $(PYREXOBJS) libpython23.a
gcc -shared -I"C:/Python23/include" -o sim.dll sim.c $(PYREXOBJS) \
-Wl,--output-def,sim.def -L. -lpython23
|