blob: 59a82af2e96d04be6ba6113a9d222712e4f6e11b [file] [log] [blame]
Misha Brukmanac09e252004-09-08 19:48:15 +00001##===- tools/llee/Makefile ---------------------------------*- Makefile -*-===##
John Criswelle2fab732003-10-20 22:29:16 +00002#
3# The LLVM Compiler Infrastructure
4#
5# This file was developed by the LLVM research group and is distributed under
6# the University of Illinois Open Source License. See LICENSE.TXT for details.
7#
8##===----------------------------------------------------------------------===##
Misha Brukman0abaaf42003-08-11 22:29:36 +00009LEVEL = ../..
Reid Spencer6cb21d42004-10-27 23:18:45 +000010LIBRARYNAME = LLVMexecve
Misha Brukman2e1fbdd2003-09-29 22:37:00 +000011SHARED_LIBRARY = 1
Reid Spencercc2d1e22004-10-30 09:19:36 +000012DONT_BUILD_RELINKED = 1
Misha Brukman2e1fbdd2003-09-29 22:37:00 +000013include $(LEVEL)/Makefile.common
Misha Brukman0abaaf42003-08-11 22:29:36 +000014
Misha Brukman2e1fbdd2003-09-29 22:37:00 +000015all:: llee
Misha Brukman0abaaf42003-08-11 22:29:36 +000016
Misha Brukmana1527532004-11-07 22:26:43 +000017llee: $(LLVMToolDir)/llee
Misha Brukman0abaaf42003-08-11 22:29:36 +000018
Misha Brukmana1527532004-11-07 22:26:43 +000019$(LLVMToolDir)/llee: Makefile
Reid Spencercc2d1e22004-10-30 09:19:36 +000020 $(Echo) Constructing llee shell script
Misha Brukman4ad0b112004-10-31 17:30:52 +000021 $(Verb) echo exec env LD_PRELOAD=$(LibDir)/libLLVMexecve$(SHLIBEXT) $$\* > $@
Reid Spencercc2d1e22004-10-30 09:19:36 +000022 $(Verb) chmod u+x $@
Misha Brukman0abaaf42003-08-11 22:29:36 +000023
Misha Brukman2e1fbdd2003-09-29 22:37:00 +000024clean::
Misha Brukmana1527532004-11-07 22:26:43 +000025 $(Verb) rm -f $(LLVMToolDir)/llee