File: Makefile

package info (click to toggle)
python-biopython 1.68%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 46,860 kB
  • ctags: 13,237
  • sloc: python: 160,306; xml: 93,216; ansic: 9,118; sql: 1,208; makefile: 155; sh: 63
file content (31 lines) | stat: -rw-r--r-- 592 bytes parent folder | download | duplicates (2)
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
PYTHON_INC_DIR=-I/usr/include/python2.3/ -I/usr/include/python2.3/Numeric/
CC=gcc
LEX=flex
 
all:	MMCIFlexmodule.so mmcif_test

MMCIFlexmodule.so: lex.yy.o MMCIFlexmodule.o
	$(CC) -fPIC -shared -o $@ $^ -lfl 

MMCIFlexmodule.o: MMCIFlexmodule.c
	$(CC) -c -fPIC $(PYTHON_INC_DIR) -o $@ $<

#mmcifparser.o: mmcifparser.c
#	$(CC) -c -fPIC $(PYTHON_INC_DIR)  $<

lex.yy.c: mmcif.lex
	$(LEX) mmcif.lex 

lex.yy.o: lex.yy.c
	$(CC) -fPIC -c $<

mmcif_test: mmcif_test.o lex.yy.o
	$(CC) $^ -lfl -o $@

.PHONY:	links clean veryclean

clean:
	rm *.o

veryclean: clean
	- rm *.so lex.yy.c mmcif_test *~