File: Makefile.in

package info (click to toggle)
python-gd 0.26-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 216 kB
  • ctags: 103
  • sloc: ansic: 1,350; makefile: 64; python: 26
file content (45 lines) | stat: -rw-r--r-- 874 bytes parent folder | download
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
# Makefile for gdmodule
# Based on:
#
# Makefile for 2fishmodule
# Copyright 2000 Enhanced Software Technologies Inc.
# All Rights Reserved
#
# Released for public use under the BSD license.
# see file LICENSE for details.

VERSION=0.7

CC=@CC@

INCLUDES=-I@PYTHON_INCLUDE@

LIBS=

#CFLAGS=-g -O2

CFLAGS=-g $(INCLUDES)

all: gdmodule.so

gdmodule.so: gdmodule.o
	gcc -fPIC -shared -o gdmodule.so gdmodule.o -lgd
	# ld -E -shared -o gdmodule.so gdmodule.o

clean:
	@rm -f *.pyc
	@rm -f *.o *~ *.so

distclean: clean
	@rm -f config.h config.cache config.guess config.log config.status Makefile

dist:	clean
	@rm -f config.h config.cache config.guess config.log config.status Makefile 
	./makedist $(VERSION)

install:
	@cp gdmodule.so @PYTHON_LIB@/gdmodule.so
	#@cp *.py @PYTHON_PREFIX@/

gdmodule.o: gdmodule.c
	$(CC) -fPIC -c $(CFLAGS) gdmodule.c -DGD2_VERS=1 -DHAVE_XPM=1