Fixes for PR214. Use the SHLIBEXT variable instead of hardcoding .so into
[oota-llvm.git] / tools / llee / Makefile
1 ##===- tools/llee/Makefile ------------------------------*- Makefile -*-===##
2
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 ##===----------------------------------------------------------------------===##
9 LEVEL = ../..
10 LIBRARYNAME = execve
11 SHARED_LIBRARY = 1
12 include $(LEVEL)/Makefile.common
13
14 all:: llee
15
16 llee: $(DESTTOOLCURRENT)/llee
17
18 $(DESTTOOLCURRENT)/llee: Makefile
19         echo exec env LD_PRELOAD=$(DESTLIBCURRENT)/execve$(SHLIBEXT) $$\* > $@
20         chmod u+x $@
21
22 clean::
23         rm -f $(DESTTOOLCURRENT)/llee