Kostya Serebryany | 1e172b4 | 2011-11-30 01:07:02 +0000 | [diff] [blame] | 1 | #===- lib/asan/Makefile.mk ---------------------------------*- Makefile -*--===# |
| 2 | # |
| 3 | # The LLVM Compiler Infrastructure |
| 4 | # |
| 5 | # This file is distributed under the University of Illinois Open Source |
| 6 | # License. See LICENSE.TXT for details. |
| 7 | # |
| 8 | #===------------------------------------------------------------------------===# |
| 9 | |
Daniel Dunbar | f06648a | 2011-12-02 02:42:07 +0000 | [diff] [blame] | 10 | ModuleName := asan |
Alexander Potapenko | 7c2a3bb | 2013-02-20 15:46:02 +0000 | [diff] [blame] | 11 | SubDirs := |
Daniel Dunbar | cc080e5 | 2011-12-01 23:35:56 +0000 | [diff] [blame] | 12 | |
| 13 | Sources := $(foreach file,$(wildcard $(Dir)/*.cc),$(notdir $(file))) |
| 14 | ObjNames := $(Sources:%.cc=%.o) |
| 15 | |
| 16 | Implementation := Generic |
| 17 | |
| 18 | # FIXME: use automatic dependencies? |
| 19 | Dependencies := $(wildcard $(Dir)/*.h) |
Alexey Samsonov | 3dc47e5 | 2012-08-01 14:55:49 +0000 | [diff] [blame] | 20 | Dependencies += $(wildcard $(Dir)/../interception/*.h) |
Alexey Samsonov | 1069b9a | 2012-08-27 13:47:28 +0000 | [diff] [blame] | 21 | Dependencies += $(wildcard $(Dir)/../sanitizer_common/*.h) |
Daniel Dunbar | cc080e5 | 2011-12-01 23:35:56 +0000 | [diff] [blame] | 22 | |
| 23 | # Define a convenience variable for all the asan functions. |
| 24 | AsanFunctions := $(Sources:%.cc=%) |