summaryrefslogtreecommitdiff
path: root/cad/src/experimental/pyrex-atoms-bonds/Makefile
blob: 8adb011a24331427124f79178974265804268aba (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


# Copyright 2006-2007 Nanorex, Inc.  See LICENSE file for details. 

CC=gcc
#CFLAGS=-I/usr/include/python2.4 -Wall -g -O0
#CFLAGS=-I/usr/include/python2.4 -Wall -g -O3
CFLAGS=-I/usr/include/python2.4 -Wall -g
LDFLAGS=-L/usr/lib/python2.4/config -lm -lpython2.4

all: bases.so

clean:
	rm -f *~ *.o *.so *.pyc bases.c

bases.c: bases.pyx basehelp.c Makefile
	pyrexc bases.pyx

bases.o: bases.c

bases.so: bases.o
	$(CC) -shared -o bases.so bases.o $(LDFLAGS)

basehelp.o: basehelp.c
	$(CC) -c -o basehelp.o -D__TEST__ basehelp.c $(CFLAGS) -pg

proto.so: proto.o
	$(CC) -shared -o proto.so proto.o $(LDFLAGS)