Peter Collingbourne | eee71ae | 2013-08-07 22:47:26 +0000 | [diff] [blame^] | 1 | #===- lib/dfsan/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 | |
| 10 | ModuleName := dfsan |
| 11 | SubDirs := |
| 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) |
| 20 | Dependencies += $(wildcard $(Dir)/../sanitizer_common/*.h) |
| 21 | |
| 22 | # Define a convenience variable for all the dfsan functions. |
| 23 | DfsanFunctions := $(Sources:%.cc=%) |