source: trunk/base/src/darwintracelib1.0/Makefile.in @ 136621

Last change on this file since 136621 was 122044, checked in by cal@…, 6 years ago

base: Makefiles: Quote DSTUSR/DSTGRP/DSTMODE, INSTALLDIR and RUNUSR in an attempt to fix #43875

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 911 bytes
Line 
1srcdir = @srcdir@
2VPATH  = @srcdir@
3
4include ../../Mk/macports.autoconf.mk
5
6# This Makefile will only be run on Darwin systems; we can safely use
7# Apple-specifics here
8SRCS=           $(wildcard *.c)
9OBJS=           $(SRCS:%.c=%.o)
10SHLIB_NAME=     darwintrace${SHLIB_SUFFIX}
11INSTALLDIR=     ${DESTDIR}${TCL_PACKAGE_PATH}/darwintrace1.0
12
13# Yes, we know having $ signs in identifiers is not a very good idea; in the
14# case of darwintrace we still need them, though.
15CFLAGS_PEDANTIC=
16CFLAGS+= -fPIC ${UNIVERSAL_ARCHFLAGS}
17SHLIB_LDFLAGS+=${UNIVERSAL_ARCHFLAGS}
18
19all:: ${SHLIB_NAME}
20
21$(SHLIB_NAME):: ${OBJS}
22        ${SHLIB_LD} ${OBJS} -o ${SHLIB_NAME} ${SHLIB_LDFLAGS} ${LIBS}
23
24clean::
25        rm -f ${OBJS} ${SHLIB_NAME} so_locations
26
27distclean:: clean
28        rm -f Makefile
29
30install:: all
31        $(INSTALL) -d -o "${DSTUSR}" -g "${DSTGRP}" -m "${DSTMODE}" "${INSTALLDIR}"
32        $(INSTALL)    -o "${DSTUSR}" -g "${DSTGRP}" -m 444 "${SHLIB_NAME}" "${INSTALLDIR}"
33
34test::
Note: See TracBrowser for help on using the repository browser.