summaryrefslogtreecommitdiff
path: root/cad/src/experimental/pyrex-atoms-bonds/iguana/Makefile
blob: 9fa332a46ed286e84ee9f01c4436adee70deb37b (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
# Copyright 2006-2007 Nanorex, Inc.  See LICENSE file for details. 
# $Id$

CC=gcc
#CFLAGS=-g -Wall -I/usr/include/python2.4
CFLAGS=-O3 -Wall -I/usr/include/python2.4

all: ighelp.so

clean:
	rm -f *.o *.so core* *~ ighelp2.* *.pyc

ighelp.so: ighelp.o ighelp2.o
	gcc -shared -o ighelp.so ighelp.o ighelp2.o

ighelp2.c: ops.b procops.py
	python procops.py > ighelp2.c

ighelp2.o: ighelp2.c ighelp.h
ighelp.o: ighelp.c ighelp.h

test: ighelp.so
	python iguanatest.py

shar:
	shar ighelp.c ighelp.h iguana.py Makefile \
		ops.b procops.py > ../ig.shar