source: trunk/base/src/cflib1.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: 593 bytes
Line 
1OBJS=           CFLib.o
2SHLIB_NAME=     CFLib
3LDADD+=         -ltcl
4INSTALLDIR= ${DESTDIR}${PREFIX}/share/darwinports/Tcl/cflib1.0
5LINK=           ../../scripts/config.sh link
6COMPILE=        ../../scripts/config.sh compile
7SHLIB_SO=       `../../scripts/config.sh shlibname ${SHLIB_NAME}`
8
9.c.o:
10        ${COMPILE} ${CFLAGS} $< -o $@
11
12CFLib.dylib: ${OBJS}
13        ${LINK} ${SHLIB_NAME} ${OBJS} -framework CoreFoundation
14
15all: CFLib.dylib
16
17clean:
18        rm -f ${OBJS} ${SHLIB_SO}
19
20install: all
21        mkdir -p ${INSTALLDIR}
22        install -c -o "${DSTUSR}" -g "${DSTGRP}" -m 444 ${SHLIB_SO} ${INSTALLDIR}
23        ../pkg_mkindex.tcl ${INSTALLDIR}
24
25include ../../Mk/dports.mk
Note: See TracBrowser for help on using the repository browser.