File: makefile

package info (click to toggle)
python-kjbuckets 2.2-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 264 kB
  • ctags: 266
  • sloc: ansic: 2,581; python: 363; makefile: 53
file content (25 lines) | stat: -rw-r--r-- 699 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
# Makefile for building a shared library containing
# the kjbuckets module.  Configured for Linux using gcc
# and local paths.

CC=gcc -DSOLARIS -Wall

# the src and bld directories for include files and libraries
blddir=		/usr/local/lib/python1.4/lib
srcdir=		/usr/local/include/python1.4
cfgdir=		/usr/local/lib/python1.4/config
#objdir=		/big/arw/Python-1.3/Objects

# Compiler flags
OPT=		-g
INCLUDES=	-I$(srcdir) -I$(blddir) -I$(cfgdir)
DEFINES=	-DHAVE_CONFIG_H
CFLAGS=		$(OPT) $(DEFINES) $(INCLUDES)

all:		kjbucketsmodule.so

kjbucketsmodule.o:	kjbucketsmodule.c
		$(CC) $(CFLAGS) -c kjbucketsmodule.c

kjbucketsmodule.so:	kjbucketsmodule.o
		$(LD) -G kjbucketsmodule.o -o kjbucketsmodule.so