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