source: trunk/base/Mk/macports.tea.mk @ 136298

Last change on this file since 136298 was 108227, checked in by cal@…, 7 years ago

pextlib1.0/registry2.0: add dependency $SHLIB -> dependent library

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 766 bytes
Line 
1# $Id: macports.tea.mk 108227 2013-07-16 23:24:10Z cal@macports.org $
2
3.SUFFIXES: .m
4
5.m.o:
6        ${CC} -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED ${OBJCFLAGS} ${CPPFLAGS} ${SHLIB_CFLAGS} $< -o $@
7
8.c.o:
9        ${CC} -c -DUSE_TCL_STUBS -DTCL_NO_DEPRECATED ${CFLAGS} ${CPPFLAGS} ${SHLIB_CFLAGS} $< -o $@
10
11all:: ${SHLIB_NAME} pkgIndex.tcl
12
13$(SHLIB_NAME): ${OBJS}
14        ${SHLIB_LD} ${OBJS} -o ${SHLIB_NAME} ${TCL_STUB_LIB_SPEC} ${SHLIB_LDFLAGS} ${LIBS}
15
16pkgIndex.tcl: $(SHLIB_NAME)
17        $(SILENT) ../pkg_mkindex.sh . || ( rm -rf $@ && exit 1 )
18
19clean::
20        rm -f ${OBJS} ${SHLIB_NAME} so_locations pkgIndex.tcl
21
22distclean:: clean
23
24install:: all
25        $(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m ${DSTMODE} ${INSTALLDIR}
26        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 ${SHLIB_NAME} ${INSTALLDIR}
27        $(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 pkgIndex.tcl ${INSTALLDIR}
Note: See TracBrowser for help on using the repository browser.