source: trunk/base/src/pextlib1.0/Makefile @ 2379

Last change on this file since 2379 was 2379, checked in by jkh, 18 years ago

Move all the scripts into a common location in preparation for making
darwinports more tcl version-agile.

  • Property svn:eol-style set to native
File size: 544 bytes
Line 
1OBJS=           Pextlib.o strsed.o
2SHLIB_NAME=     Pextlib
3LDADD+=         -ltcl
4INSTALLDIR= ${DESTDIR}${PREFIX}/share/darwinports/Tcl/pextlib1.0
5COMPILE=        ../../scripts/compile.sh
6LINK=           ../../scripts/link.sh
7
8
9.c.o:
10        ${COMPILE} ${CFLAGS} $< -o $@
11
12Pextlib.dylib: ${OBJS}
13        @${LINK} ${SHLIB_NAME} ${OBJS}
14
15all: Pextlib.dylib
16
17clean:
18        rm -f ${OBJS} `${LINK} -n ${SHLIB_NAME}`
19
20install: all
21        mkdir -p ${INSTALLDIR}
22        install -c -o "${DSTUSR}" -g "${DSTGRP}" -m 444 `${LINK} -n ${SHLIB_NAME}` ${INSTALLDIR}
23        ../pkg_mkindex.tcl ${INSTALLDIR}
24
25include ../../Mk/dports.mk
Note: See TracBrowser for help on using the repository browser.