Home | History | Annotate | Download | only in lib
      1 #===- lib/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 := builtins
     11 SubDirs :=
     12 
     13 # Add arch specific optimized implementations.
     14 SubDirs += i386 ppc x86_64 arm
     15 
     16 # Add other submodules.
     17 SubDirs += asan
     18 SubDirs += interception
     19 SubDirs += profile
     20 SubDirs += sanitizer_common
     21 SubDirs += tsan
     22 SubDirs += msan
     23 SubDirs += ubsan
     24 
     25 # FIXME: We don't currently support building an atomic library, and as it must
     26 # be a separate library from the runtime library, we need to remove its source
     27 # code from the source files list.
     28 ExcludedSources := atomic.c
     29 
     30 # Define the variables for this specific directory.
     31 Sources := $(foreach file,$(wildcard $(Dir)/*.c),$(filter-out $(ExcludedSources),$(notdir $(file))))
     32 ObjNames := $(Sources:%.c=%.o)
     33 Implementation := Generic
     34 
     35 # FIXME: use automatic dependencies?
     36 Dependencies := $(wildcard $(Dir)/*.h)
     37