2004-04-24 02:10:56 +02:00
|
|
|
#===- ./Makefile -------------------------------------------*- Makefile -*--===#
|
2003-10-21 00:26:57 +02: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 02:10:56 +02:00
|
|
|
#===------------------------------------------------------------------------===#
|
2001-06-06 22:29:01 +02:00
|
|
|
LEVEL = .
|
2004-08-29 21:33:21 +02:00
|
|
|
DIRS = lib/System lib/Support utils lib tools
|
2001-06-06 22:29:01 +02:00
|
|
|
|
2004-02-04 00:05:24 +01:00
|
|
|
ifneq ($(MAKECMDGOALS),tools-only)
|
2004-11-29 05:57:55 +01:00
|
|
|
DIRS += runtime docs
|
2004-08-24 18:32:21 +02:00
|
|
|
OPTIONAL_DIRS = examples projects
|
2004-02-04 00:05:24 +01:00
|
|
|
endif
|
|
|
|
|
2004-10-26 09:05:09 +02:00
|
|
|
EXTRA_DIST := test llvm.spec include
|
|
|
|
|
2001-06-06 22:29:01 +02:00
|
|
|
include $(LEVEL)/Makefile.common
|
|
|
|
|
2004-11-25 10:08:54 +01: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 10:27:37 +02:00
|
|
|
dist-hook::
|
2004-10-30 11:19:36 +02:00
|
|
|
$(Echo) Eliminating files constructed by configure
|
|
|
|
$(Verb) $(RM) -f \
|
2004-10-26 09:05:09 +02: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 10:27:37 +02:00
|
|
|
|
2004-12-04 00:57:00 +01:00
|
|
|
check :
|
2004-12-04 07:25:08 +01:00
|
|
|
$(MAKE) -C test check TESTSUITE=$(TESTSUITE)
|
2003-08-12 20:51:51 +02:00
|
|
|
|
2004-02-03 23:56:40 +01:00
|
|
|
tools-only: all
|