source: branches/gsoc13-tests/Mk/macports.tea.mk @ 140015

Last change on this file since 140015 was 111323, checked in by marius@…, 7 years ago

Merge from trunk.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 766 bytes
Line 
1# $Id: macports.tea.mk 111323 2013-09-18 23:11:02Z marius@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.