blob: ab2256fa60a97d4cc5e434304ad15319a9671ff2 [file] [log] [blame]
#===-- Makefile.common - Common make rules for LLVM-TV -----*- Makefile -*--===#
#
# The LLVM Compiler Infrastructure
#
# This file was developed by the LLVM research group and is distributed under
# the University of Illinois Open Source License. See LICENSE.TXT for details.
#
#===------------------------------------------------------------------------===#
# Include the local config file
include $(LEVEL)/Makefile.config
# Include LLVM's Master Makefile.
include $(LLVM_SRC_ROOT)/Makefile.rules
# Make sure we can access PoolAlloc's headers and libraries
PALibDir = $(POOLALLOC_OBJ_ROOT)/$(BuildMode)/lib
CPP.Flags += -I$(POOLALLOC_SRC_ROOT)/include
LD.Flags += -L$(PALibDir)
# Link in PoolAlloc libraries
ifdef PALIBS
PALibsOptions := $(patsubst %.a.o, -l%, $(addsuffix .o, $(PALIBS)))
PALibsOptions := $(patsubst %.o, $(PALibDir)/%.o, $(PALibsOptions))
PAUsedLibs := $(patsubst %.a.o, lib%.a, $(addsuffix .o, $(PALIBS)))
PALibsPaths := $(addprefix $(PALibDir)/,$(PAUsedLibs))
ProjLibsOptions += $(PALibsOptions)
ProjLibsPaths += $(PALibsPaths)
ProjUsedLibs += $(PAUsedLibs)
endif