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

Last change on this file since 2426 was 2426, checked in by landonf (Landon Fuller), 17 years ago

Allow DarwinPorts to build out of the box on newer Darwin releases with Tcl 8.4

  • Remove references to 'tclsh8.3', replacing them with 'tclsh'. This will work everywhere except FreeBSD
  • Remove compile.sh, link.sh, and tcldir.sh, replacing them with config.sh. config.sh references the config data provided by TEA and allows us to steer clear of autoconf.
  • Modify all Makefiles to use config.sh
  • Property svn:eol-style set to native
File size: 571 bytes
Line 
1OBJS=           Pextlib.o strsed.o
2SHLIB_NAME=     Pextlib
3INSTALLDIR= ${DESTDIR}${PREFIX}/share/darwinports/Tcl/pextlib1.0
4COMPILE=        ../../scripts/config.sh compile
5LINK=           ../../scripts/config.sh link
6SHLIB_SO=       `../../scripts/config.sh shlibname ${SHLIB_NAME}`
7
8.c.o:
9        ${COMPILE} ${CFLAGS} $< -o $@
10
11Pextlib.dylib: ${OBJS}
12        ${LINK} ${SHLIB_NAME} ${OBJS}
13
14all: Pextlib.dylib
15
16clean:
17        rm -f ${OBJS} ${SHLIB_SO}
18
19install: all
20        mkdir -p ${INSTALLDIR}
21        install -c -o "${DSTUSR}" -g "${DSTGRP}" -m 444 ${SHLIB_SO} ${INSTALLDIR}
22        ../pkg_mkindex.tcl ${INSTALLDIR}
23
24include ../../Mk/dports.mk
Note: See TracBrowser for help on using the repository browser.