1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/databases/py-PyGreSQL/files/Makefile

29 lines
729 B
Makefile
Raw Normal View History

1998-11-13 23:16:25 +00:00
.SUFFIXES: .py .pyc
1999-02-23 00:28:15 +00:00
SITE_PACKAGES=${PREFIX}/lib/python1.5/site-packages
all: _pgmodule.so pg.pyc pgtools.pyc
1998-11-13 23:16:25 +00:00
install:
1999-02-23 00:28:15 +00:00
@${MKDIR} ${SITE_PACKAGES}
${BSD_INSTALL_PROGRAM} _pgmodule.so ${SITE_PACKAGES}
${BSD_INSTALL_DATA} pg.py pg.pyc pgtools.py pgtools.pyc \
${SITE_PACKAGES}
1998-11-13 23:16:25 +00:00
clean:
rm -f *.so *.o *.pyc pgtools.py
pgtools.py: tutorial/pgtools.py
${LN} -fs ${.ALLSRC} ${.TARGET}
1999-02-23 00:28:15 +00:00
_pgmodule.so: pgmodule.o
1998-11-13 23:16:25 +00:00
${LD} -Bshareable -lc_r -L${PREFIX}/lib/python1.5/config -lpython1.5 \
-L${PREFIX}/pgsql/lib -lpq ${.ALLSRC} -o ${.TARGET}
pgmodule.o: pgmodule.c
${CC} -c -I${PREFIX}/include/python1.5 -I${PREFIX}/pgsql/include \
${.ALLSRC}
.py.pyc:
${SETENV} PYTHONPATH=${.CURDIR} ${PYTHON} -c 'import ${.IMPSRC:.py=}'