freebsd-ports/databases/py-PyGreSQL/files/Makefile

27 lines
677 B
Makefile
Raw Normal View History

2000-10-03 09:52:51 -04:00
# grr, commit_prep wants the next line
# $FreeBSD$
1998-11-13 18:16:25 -05:00
.SUFFIXES: .py .pyc
2000-10-03 09:52:51 -04:00
all: _pgmodule.so pg.pyc pgdb.pyc
1998-11-13 18:16:25 -05:00
install:
2000-10-03 09:52:51 -04:00
@${MKDIR} ${PYTHON_SITELIBDIR}
${BSD_INSTALL_PROGRAM} _pgmodule.so ${PYTHON_SITELIBDIR}
${BSD_INSTALL_DATA} pg.py pg.pyc pgdb.py pgdb.pyc \
${PYTHON_SITELIBDIR}
1998-11-13 18:16:25 -05:00
clean:
2000-10-03 09:52:51 -04:00
rm -f *.so *.o *.pyc
1998-11-13 18:16:25 -05:00
1999-02-22 19:28:15 -05:00
_pgmodule.so: pgmodule.o
2000-10-03 09:52:51 -04:00
${LD} -Bshareable -lc_r -L${PYTHON_LIBDIR}/config \
-l${PYTHON_VERSION} -L${PREFIX}/pgsql/lib -lpq \
${.ALLSRC} -o ${.TARGET}
1998-11-13 18:16:25 -05:00
pgmodule.o: pgmodule.c
2000-10-03 09:52:51 -04:00
${CC} -c -I${PREFIX}/include/${PYTHON_VERSION} \
-I${PREFIX}/pgsql/include ${.ALLSRC}
1998-11-13 18:16:25 -05:00
.py.pyc:
${SETENV} PYTHONPATH=${.CURDIR} ${PYTHON} -c 'import ${.IMPSRC:.py=}'