2009-06-27 00:47:03 +08:00
|
|
|
#===- lib/Makefile.mk --------------------------------------*- Makefile -*--===#
|
|
|
|
#
|
|
|
|
# The LLVM Compiler Infrastructure
|
|
|
|
#
|
|
|
|
# This file is distributed under the University of Illinois Open Source
|
|
|
|
# License. See LICENSE.TXT for details.
|
|
|
|
#
|
|
|
|
#===------------------------------------------------------------------------===#
|
|
|
|
|
2011-11-17 08:12:10 +08:00
|
|
|
SubDirs :=
|
2009-06-27 00:47:03 +08:00
|
|
|
|
2011-11-17 08:12:10 +08:00
|
|
|
# Add arch specific optimized implementations.
|
|
|
|
SubDirs += i386 ppc x86_64 arm
|
|
|
|
|
|
|
|
# Add other submodules.
|
|
|
|
SubDirs += profile
|
|
|
|
|
|
|
|
# Define the variables for this specific directory.
|
2009-06-27 00:47:03 +08:00
|
|
|
Sources := $(foreach file,$(wildcard $(Dir)/*.c),$(notdir $(file)))
|
|
|
|
ObjNames := $(Sources:%.c=%.o)
|
2010-01-18 14:49:09 +08:00
|
|
|
Implementation := Generic
|
2009-06-27 00:47:03 +08:00
|
|
|
|
|
|
|
# FIXME: use automatic dependencies?
|
|
|
|
Dependencies := $(wildcard $(Dir)/*.h)
|