Makefile revision 1447
1193N/A#
1447N/A# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
1193N/A#
1193N/A# Permission is hereby granted, free of charge, to any person obtaining a
1193N/A# copy of this software and associated documentation files (the "Software"),
1193N/A# to deal in the Software without restriction, including without limitation
1193N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
1193N/A# and/or sell copies of the Software, and to permit persons to whom the
1193N/A# Software is furnished to do so, subject to the following conditions:
1193N/A#
1193N/A# The above copyright notice and this permission notice (including the next
1193N/A# paragraph) shall be included in all copies or substantial portions of the
1193N/A# Software.
1193N/A#
1193N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1193N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1193N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
1193N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1193N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1193N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1193N/A# DEALINGS IN THE SOFTWARE.
1193N/A#
1193N/A
1193N/A# LD_PRELOADable shared objects to interpose on time calls to make builds
1193N/A# more reproducible.
1193N/A
1193N/Aall: time-$(MACH).so
1193N/A
1193N/Ainstall: $(DESTDIR)/time-$(MACH).so
1193N/A
1195N/Atime-%.o: $(srcdir)/time.c
1193N/A $(CC) -Kpic $(CFLAGS) -c -o $@ $<
1193N/A
1193N/Atime-%.so: time-%.o
1447N/A $(CC) -G $(CFLAGS) -o $@ $< -lc
1193N/A
1193N/Aclean:
1193N/A $(RM) time-*.o time-*.so
1193N/A
1193N/A$(DESTDIR)/time-%.so: time-%.so
1193N/A $(INSTALL) $< $@