2004-04-24 00:10:56 +00:00
|
|
|
#===- ./Makefile -------------------------------------------*- Makefile -*--===#
|
2003-10-20 22:26:57 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
2004-04-24 00:10:56 +00:00
|
|
|
#===------------------------------------------------------------------------===#
|
2001-06-06 20:29:01 +00:00
|
|
|
LEVEL = .
|
2005-05-25 21:03:17 +00:00
|
|
|
DIRS = lib/System lib/Support utils lib
|
2001-06-06 20:29:01 +00:00
|
|
|
|
2005-05-25 21:03:17 +00:00
|
|
|
ifeq ($(MAKECMDGOALS),tools-only)
|
|
|
|
DIRS += tools
|
|
|
|
else
|
|
|
|
ifneq ($(MAKECMDGOALS),libs-only)
|
|
|
|
DIRS += runtime docs
|
|
|
|
OPTIONAL_DIRS = examples projects
|
|
|
|
endif
|
2004-02-03 23:05:24 +00:00
|
|
|
endif
|
|
|
|
|
2004-10-26 07:05:09 +00:00
|
|
|
EXTRA_DIST := test llvm.spec include
|
|
|
|
|
2001-06-06 20:29:01 +00:00
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
|
2005-05-24 02:33:20 +00:00
|
|
|
# Specify options to pass to configure script when we're
|
|
|
|
# running the dist-check target
|
|
|
|
DIST_CHECK_CONFIG_OPTIONS = --with-llvmgccdir=$(LLVMGCCDIR)
|
|
|
|
|
2004-11-25 09:08:54 +00:00
|
|
|
.PHONY: debug-opt-prof
|
|
|
|
debug-opt-prof:
|
|
|
|
$(Echo) Building Debug Version
|
|
|
|
$(Verb) $(MAKE)
|
|
|
|
$(Echo)
|
|
|
|
$(Echo) Building Optimized Version
|
|
|
|
$(Echo)
|
|
|
|
$(Verb) $(MAKE) ENABLE_OPTIMIZED=1
|
|
|
|
$(Echo)
|
|
|
|
$(Echo) Building Profiling Version
|
|
|
|
$(Echo)
|
|
|
|
$(Verb) $(MAKE) ENABLE_PROFILING=1
|
|
|
|
|
2004-10-25 08:27:37 +00:00
|
|
|
dist-hook::
|
2004-10-30 09:19:36 +00:00
|
|
|
$(Echo) Eliminating files constructed by configure
|
|
|
|
$(Verb) $(RM) -f \
|
2004-10-26 07:05:09 +00:00
|
|
|
$(TopDistDir)/include/llvm/ADT/hash_map \
|
|
|
|
$(TopDistDir)/include/llvm/ADT/hash_set \
|
|
|
|
$(TopDistDir)/include/llvm/ADT/iterator \
|
|
|
|
$(TopDistDir)/include/llvm/Config/config.h \
|
|
|
|
$(TopDistDir)/include/llvm/Support/DataTypes.h \
|
|
|
|
$(TopDistDir)/include/llvm/Support/ThreadSupport.h
|
2004-10-25 08:27:37 +00:00
|
|
|
|
2004-02-03 22:56:40 +00:00
|
|
|
tools-only: all
|
2005-05-25 21:03:17 +00:00
|
|
|
libs-only: all
|