1 #===-- Makefile.rules - Common make rules for LLVM ---------*- Makefile -*--===#
3 # The LLVM Compiler Infrastructure
5 # This file was developed by the LLVM research group and is distributed under
6 # the University of Illinois Open Source License. See LICENSE.TXT for details.
8 #===------------------------------------------------------------------------===#
10 # This file is included by all of the LLVM makefiles. For details on how to use
11 # it properly, please see the document MakefileGuide.html in the docs directory.
13 #===-----------------------------------------------------------------------====
15 ################################################################################
16 # TARGETS: Define standard targets that can be invoked
17 ################################################################################
19 #--------------------------------------------------------------------
20 # Define the various target sets
21 #--------------------------------------------------------------------
22 RecursiveTargets := all clean clean-all check install uninstall
23 LocalTargets := all-local clean-local clean-all-local check-local \
24 install-local printvars uninstall-local
25 TopLevelTargets := dist dist-check dist-clean tags dist-gzip dist-bzip2 \
27 UserTargets := $(RecursiveTargets) $(LocalTargets) $(TopLevelTargets)
28 InternalTargets := preconditions distdir dist-hook
30 ################################################################################
31 # INITIALIZATION: Basic things the makefile needs
32 ################################################################################
34 #--------------------------------------------------------------------
35 # Set the VPATH so that we can find source files.
36 #--------------------------------------------------------------------
37 VPATH=$(BUILD_SRC_DIR)
39 #--------------------------------------------------------------------
40 # Reset the list of suffixes we know how to build
41 #--------------------------------------------------------------------
43 .SUFFIXES: .c .cpp .h .hpp .y .l .lo .o .a .bc .td .ps .dot
44 .SUFFIXES: $(SHLIBEXT) $(SUFFIXES)
46 #--------------------------------------------------------------------
47 # Mark all of these targets as phony to avoid implicit rule search
48 #--------------------------------------------------------------------
49 .PHONY: $(UserTargets) $(InternalTargets)
51 #--------------------------------------------------------------------
52 # Make sure all the user-target rules are double colon rules and
53 # they are defined first.
54 #--------------------------------------------------------------------
58 ################################################################################
59 # PRECONDITIONS: that which must be built/checked first
60 ################################################################################
62 SrcMakefiles := $(filter %Makefile %Makefile.rules %Makefile.tests \
63 %Makefile.JIT,$(wildcard $(BUILD_SRC_DIR)/Makefile*))
64 ObjMakefiles := $(subst $(BUILD_SRC_DIR),$(BUILD_OBJ_DIR),$(SrcMakefiles))
65 ConfigureScript := $(LLVM_SRC_ROOT)/configure
66 ConfigStatusScript := $(LLVM_OBJ_ROOT)/config.status
67 MakefileConfigIn := $(LLVM_SRC_ROOT)/Makefile.config.in
68 MakefileConfig := $(LLVM_OBJ_ROOT)/Makefile.config
69 PreConditions := $(ConfigStatusScript) $(MakefileConfig) $(ObjMakefiles)
71 preconditions : $(PreConditions)
73 #------------------------------------------------------------------------
74 # Make sure the BUILT_SOURCES are built first
75 #------------------------------------------------------------------------
76 $(filter-out clean clean-local,UserTargets):: $(BUILT_SOURCES)
79 ifneq ($(strip $(BUILT_SOURCES)),)
80 -$(Verb) $(RM) -f $(BUILT_SOURCES)
83 $(BUILT_SOURCES) : $(ObjMakefiles)
85 #------------------------------------------------------------------------
86 # Make sure we're not using a stale configuration
87 #------------------------------------------------------------------------
88 .PRECIOUS: $(ConfigStatusScript)
89 $(ConfigStatusScript): $(ConfigureScript)
90 $(Echo) Reconfiguring with $<
91 $(Verb) $(ConfigStatusScript) --recheck $(ConfigureScriptFLAGS)
92 $(Verb) $(ConfigStatusScript)
94 #------------------------------------------------------------------------
95 # Make sure the configuration makefile is up to date
96 #------------------------------------------------------------------------
97 $(MakefileConfig): $(MakefileConfigIn) $(ConfigStatusScript)
98 $(Echo) Regenerating $@
99 $(Verb) cd $(LLVM_OBJ_ROOT) ; $(ConfigStatusScript) Makefile.config
101 #------------------------------------------------------------------------
102 # If the Makefile in the source tree has been updated, copy it over into the
103 # build tree. But, only do this if the source and object makefiles differ
104 #------------------------------------------------------------------------
105 ifneq ($(BUILD_OBJ_DIR),$(BUILD_SRC_DIR))
107 $(BUILD_OBJ_DIR)/Makefile : $(BUILD_SRC_DIR)/Makefile
108 $(Echo) "Updating Makefile"
109 $(Verb) $(MKDIR) $(@D)
112 # Copy the Makefile.* files unless we're in the root directory which avoids
113 # the copying of Makefile.config.in or other things that should be explicitly
115 $(BUILD_OBJ_DIR)/Makefile% : $(BUILD_SRC_DIR)/Makefile%
117 *Makefile.rules) ;; \
119 *) $(Echo) "Updating $(@F)" ; \
126 #------------------------------------------------------------------------
127 # Set up the basic dependencies
128 #------------------------------------------------------------------------
129 $(UserTargets):: $(PreConditions)
134 clean-all:: clean-local clean-all-local
135 install:: install-local
136 uninstall:: uninstall-local
137 check-local:: all-local
138 install-local:: all-local
140 ###############################################################################
141 # VARIABLES: Set up various variables based on configuration data
142 ###############################################################################
144 #--------------------------------------------------------------------
145 # Variables derived from configuration we are building
146 #--------------------------------------------------------------------
148 ifdef ENABLE_PROFILING
150 CXX.Flags := -O3 -DNDEBUG -felide-constructors -finline-functions -pg
151 C.Flags := -O3 -DNDEBUG -pg
152 LD.Flags := -O3 -DNDEBUG -pg
154 ifdef ENABLE_OPTIMIZED
156 CXX.Flags := -O3 -DNDEBUG -finline-functions -felide-constructors -fomit-frame-pointer
157 C.Flags := -O3 -DNDEBUG -fomit-frame-pointer
158 LD.Flags := -O3 -DNDEBUG
161 CXX.Flags := -g -D_DEBUG
162 C.Flags := -g -D_DEBUG
163 LD.Flags := -g -D_DEBUG
168 CXX.Flags += $(CXXFLAGS)
170 CPP.Flags += $(CPPFLAGS)
171 LD.Flags += $(LDFLAGS)
173 LibTool.Flags := --tag=CXX
175 #--------------------------------------------------------------------
176 # Directory locations
177 #--------------------------------------------------------------------
178 ObjDir := $(BUILD_OBJ_DIR)/$(BuildMode)
179 LibDir := $(BUILD_OBJ_ROOT)/lib/$(BuildMode)
180 ToolDir := $(BUILD_OBJ_ROOT)/tools/$(BuildMode)
181 LLVMLibDir := $(LLVM_OBJ_ROOT)/lib/$(BuildMode)
182 LLVMToolDir := $(LLVM_OBJ_ROOT)/tools/$(BuildMode)
184 #--------------------------------------------------------------------
185 # Full Paths To Compiled Tools and Utilities
186 #--------------------------------------------------------------------
187 EchoCmd := $(ECHO) llvm[$(MAKELEVEL)]:
190 LIBTOOL := $(LLVM_OBJ_ROOT)/mklib
193 LLVMAS := $(LLVMToolDir)/llvm-as$(EXEEXT)
196 BURG := $(LLVMToolDir)/burg$(EXEEXT)
199 TBLGEN := $(LLVMToolDir)/tblgen$(EXEEXT)
202 GCCLD := $(LLVMToolDir)/gccld$(EXEEXT)
205 LLVMGCC := PATH=$(LLVMToolDir):$(PATH) $(LLVMGCCDIR)/bin/gcc
208 LLVMGXX := PATH=$(LLVMToolDir):$(PATH) $(LLVMGCCDIR)/bin/g++
211 # Need a better way to compute this.
212 LLVMGCCLibDir := $(dir $(shell $(LLVMGCC) -print-file-name=libgcc.a))/
214 #--------------------------------------------------------------------
215 # Adjust to user's request
216 #--------------------------------------------------------------------
218 # Adjust LIBTOOL flags for shared libraries, or not.
219 ifndef SHARED_LIBRARY
220 LibTool.Flags += --tag=disable-shared
222 LD.Flags += -rpath $(LibDir)
229 BCLinkLib.Flags += -v
233 # Adjust settings for verbose mode
236 LibTool.Flags += --silent
237 AR.Flags += >/dev/null 2>/dev/null
238 ConfigureScriptFLAGS += >$(BUILD_OBJ_DIR)/configure.out 2>&1
240 ConfigureScriptFLAGS :=
243 # By default, strip symbol information from executable
245 Strip := $(PLATFORMSTRIPOPTS)
246 StripWarnMsg := "(without symbols)"
249 # Adjust linker flags for building an executable
251 LD.Flags += -rpath $(ToolDir) -export-dynamic
254 #----------------------------------------------------------
255 # Options To Invoke Tools
256 #----------------------------------------------------------
258 CompileCommonOpts := -Wall -W -Wwrite-strings -Wno-unused
260 LD.Flags += -L$(LibDir) -L$(LLVMLibDir)
261 CPP.Flags += -I$(BUILD_OBJ_DIR) \
263 -I$(BUILD_SRC_ROOT)/include \
264 -I$(BUILD_OBJ_ROOT)/include \
265 -I$(LLVM_OBJ_ROOT)/include \
266 -I$(LLVM_SRC_ROOT)/include \
267 -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
269 Compile.C = $(CC) $(CPP.Flags) $(CompileCommonOpts) -c $(C.Flags)
270 LTCompile.C = $(LIBTOOL) $(LibTool.Flags) --mode=compile $(Compile.C)
271 BCCompile.C = $(LLVMGCC) $(CPP.Flags) $(CompileCommonOpts) $(C.Flags) -c
272 Compile.CXX = $(CXX) $(CPP.Flags) $(CompileCommonOpts) $(CXX.Flags) -c
273 LTCompile.CXX = $(LIBTOOL) $(LibTool.Flags) --mode=compile $(Compile.CXX)
274 BCCompile.CXX = $(LLVMGXX) $(CPP.Flags) $(CompileCommonOpts) $(CXX.Flags) -c
275 Link = $(LIBTOOL) $(LibTool.Flags) --mode=link $(CXX) $(CPP.Flags) \
276 $(CompileCommonOpts) $(LD.Flags) $(Strip)
277 Relink = $(LIBTOOL) $(LibTool.Flags) --mode=link $(CXX) $(CPP.Flags) \
279 BCLinkLib = $(LLVMGCC) -shared -nostdlib $(BCLinkLib.Flags)
280 LTInstall = $(LIBTOOL) $(LibTool.Flags) --mode=install $(INSTALL)
281 Burg = $(BURG) -I $(BUILD_SRC_DIR)
282 TableGen = $(TBLGEN) -I $(BUILD_SRC_DIR)
283 Archive = $(AR) $(AR.Flags)
284 LArchive = $(ToolDir)/llvm-ar rcsf
291 #----------------------------------------------------------
292 # Get the list of source files
293 #----------------------------------------------------------
295 Sources := $(notdir $(wildcard $(BUILD_SRC_DIR)/*.cpp \
296 $(BUILD_SRC_DIR)/*.cc $(BUILD_SRC_DIR)/*.c $(BUILD_SRC_DIR)/*.y \
297 $(BUILD_SRC_DIR)/*.l))
299 Sources := $(SOURCES)
303 Sources += $(filter %.cpp %.c %.cc %.y %.l,$(BUILT_SOURCES))
306 #----------------------------------------------------------
307 # Types of objects that can be built from sources
308 #----------------------------------------------------------
309 BaseNameSources := $(sort $(basename $(Sources)))
310 ObjectsO := $(BaseNameSources:%=$(ObjDir)/%.o)
311 ObjectsLO := $(BaseNameSources:%=$(ObjDir)/%.lo)
312 ObjectsBC := $(BaseNameSources:%=$(ObjDir)/%.bc)
314 ###############################################################################
315 # DIRECTORIES: Handle recursive descent of directory structure
316 ###############################################################################
318 #---------------------------------------------------------
319 # Provide rules to make install dirs. This must be early
320 # in the file so they get built before dependencies
321 #---------------------------------------------------------
324 $(Verb) $(MKDIR) $(bindir)
327 $(Verb) $(MKDIR) $(libdir)
330 $(Verb) $(MKDIR) $(bytecode_libdir)
333 $(Verb) $(MKDIR) $(sysconfdir)
335 # To create other directories, as needed, and timestamp their creation
337 $(Verb) $(MKDIR) $* > /dev/null
340 .PRECIOUS: $(ObjDir)/.dir $(LibDir)/.dir $(ToolDir)/.dir $(LLVMLibDir)/.dir
341 .PRECIOUS: $(LLVMToolDir)/.dir
343 #---------------------------------------------------------
344 # Handle the DIRS options for sequential construction
345 #---------------------------------------------------------
350 $(RecursiveTargets)::
351 $(Verb) for dir in $(DIRS); do \
352 if [ ! -f $$dir/Makefile ]; then \
354 cp $(BUILD_SRC_DIR)/$$dir/Makefile $$dir/Makefile; \
356 ($(MAKE) -C $$dir $@ ) || exit 1; \
360 #---------------------------------------------------------
361 # Handle the EXPERIMENTAL_DIRS options ensuring success
362 # after each directory is built.
363 #---------------------------------------------------------
364 ifdef EXPERIMENTAL_DIRS
365 $(RecursiveTargets)::
366 $(Verb) for dir in $(EXPERIMENTAL_DIRS); do \
367 if [ ! -f $$dir/Makefile ]; then \
369 cp $(BUILD_SRC_DIR)/$$dir/Makefile $$dir/Makefile; \
371 ($(MAKE) -C $$dir $@ ) || exit 0; \
375 #---------------------------------------------------------
376 # Handle the PARALLEL_DIRS options for parallel construction
377 #---------------------------------------------------------
380 SubDirs += $(PARALLEL_DIRS)
382 # Unfortunately, this list must be maintained if new
383 # recursive targets are added.
384 all :: $(addsuffix /.makeall ,$(PARALLEL_DIRS))
385 clean :: $(addsuffix /.makeclean ,$(PARALLEL_DIRS))
386 clean-all:: $(addsuffix /.makeclean-all,$(PARALLEL_DIRS))
387 check :: $(addsuffix /.makecheck ,$(PARALLEL_DIRS))
388 install :: $(addsuffix /.makeinstall ,$(PARALLEL_DIRS))
389 uninstall:: $(addsuffix /.makeuninstall,$(PARALLEL_DIRS))
391 Parallel_Targets := $(foreach T,$(RecursiveTargets),%/.make$(T))
393 $(Parallel_Targets) :
394 $(Verb) if [ ! -f $(@D)/Makefile ]; then \
396 cp $(BUILD_SRC_DIR)/$(@D)/Makefile $(@D)/Makefile; \
398 $(MAKE) -C $(@D) $(subst $(@D)/.make,,$@)
401 #---------------------------------------------------------
402 # Handle the OPTIONAL_DIRS options for directores that may
404 #---------------------------------------------------------
407 SubDirs += $(OPTIONAL_DIRS)
409 $(RecursiveTargets)::
410 $(Verb) for dir in $(OPTIONAL_DIRS); do \
411 if [ -d $(BUILD_SRC_DIR)/$$dir ]; then\
412 if [ ! -f $$dir/Makefile ]; then \
414 cp $(BUILD_SRC_DIR)/$$dir/Makefile $$dir/Makefile; \
416 ($(MAKE) -C$$dir $@ ) || exit 1; \
421 #---------------------------------------------------------
422 # Handle the CONFIG_FILES options
423 #---------------------------------------------------------
426 install-local:: $(sysconfdir) $(CONFIG_FILES)
427 $(Echo) Installing Configuration Files To $(sysconfdir)
428 $(Verb)for file in $(CONFIG_FILES); do \
429 $(INSTALL) $(BUILD_SRC_DIR)/$${file} $(sysconfdir) ; \
433 $(Echo) Uninstalling Configuration Files From $(sysconfdir)
434 $(Verb)for file in $(CONFIG_FILES); do \
435 $(RM) -f $(sysconfdir)/$${file} ; \
440 ###############################################################################
441 # Library Build Rules: Four ways to build a library
442 ###############################################################################
445 # if we're building a library ...
448 # Make sure there isn't any extranous whitespace on the LIBRARYNAME option
449 LIBRARYNAME := $(strip $(LIBRARYNAME))
450 LibName.LA := $(LibDir)/lib$(LIBRARYNAME).la
451 LibName.A := $(LibDir)/lib$(LIBRARYNAME).a
452 LibName.O := $(LibDir)/$(LIBRARYNAME).o
453 LibName.BC := $(LibDir)/lib$(LIBRARYNAME).bc
455 #---------------------------------------------------------
456 # Shared Library Targets:
457 # If the user asked for a shared library to be built
458 # with the SHARED_LIBRARY variable, then we provide
459 # targets for building them.
460 #---------------------------------------------------------
463 all-local:: $(LibName.LA)
465 $(LibName.LA): $(BUILT_SOURCES) $(ObjectsLO) $(LibDir)/.dir
466 $(Echo) Linking $(BuildMode) Shared Library $(LIBRARYNAME)$(SHLIBEXT)
467 $(Verb) $(Link) -o $@ $(ObjectsLO)
468 $(Verb) $(LTInstall) $@ $(LibDir)
471 ifneq ($(strip $(LibName.LA)),)
472 -$(Verb) $(RM) -f $(LibName.LA)
475 DestSharedLib = $(libdir)/lib$(LIBRARYNAME)$(SHLIBEXT)
477 install-local:: $(DestSharedLib)
479 $(DestSharedLib): $(libdir) $(LibName.LA)
480 $(Echo) Installing $(BuildMode) Shared Library $(DestSharedLib)
481 $(Verb) $(LTInstall) $(LibName.LA) $(DestSharedLib)
482 $(Verb) $(LIBTOOL) --finish $(libdir)
485 $(Echo) Uninstalling $(BuildMode) Shared Library $(DestSharedLib)
486 -$(Verb) $(RM) -f $(libdir)/lib$(LIBRARYNAME).*
490 #---------------------------------------------------------
491 # Bytecode Library Targets:
492 # If the user asked for a bytecode library to be built
493 # with the BYTECODE_LIBRARY variable, then we provide
494 # targets for building them.
495 #---------------------------------------------------------
496 ifdef BYTECODE_LIBRARY
498 ifdef EXPORTED_SYMBOL_LIST
499 BCLinkLib += -Xlinker -internalize-public-api-list=$(EXPORTED_SYMBOL_LIST)
501 ifdef EXPORTED_SYMBOL_FILE
502 BCLinkLib += -Xlinker -internalize-public-api-file=$(EXPORTED_SYMBOL_FILE)
504 BCLinkLib += -Xlinker -disable-internalize
508 all-local:: $(LibName.BC)
510 $(LibName.BC): $(BUILT_SOURCES) $(ObjectsBC) $(LibDir)/.dir
511 $(Echo) Linking $(BuildMode) Bytecode Library $(notdir $@)
512 $(Verb) $(BCLinkLib) -o $@ $(ObjectsBC)
515 ifneq ($(strip $(LibName.BC)),)
516 -$(Verb) $(RM) -f $(LibName.BC)
519 DestBytecodeLib = $(bytecode_libdir)/lib$(LIBRARYNAME).bc
521 install-local:: $(DestBytecodeLib)
523 $(DestBytecodeLib): $(bytecode_libdir) $(LibName.BC)
524 $(Echo) Installing $(BuildMode) Bytecode Library $(DestBytecodeLib)
525 $(Verb) $(INSTALL) $(LibName.BC) $@
528 $(Echo) Uninstalling $(BuildMode) Bytecode Library $(DestBytecodeLib)
529 -$(Verb) $(RM) -f $(DestBytecodeLib)
533 #---------------------------------------------------------
534 # ReLinked Library Targets:
535 # If the user didn't explicitly forbid building a
536 # relinked then we provide targets for building them.
537 #---------------------------------------------------------
538 ifndef DONT_BUILD_RELINKED
540 all-local:: $(LibName.O)
542 $(LibName.O): $(BUILT_SOURCES) $(ObjectsO) $(LibDir)/.dir
543 $(Echo) Linking $(BuildMode) Object Library $(notdir $@)
544 $(Verb) $(Relink) -o $@ $(ObjectsO)
547 ifneq ($(strip $(LibName.O)),)
548 -$(Verb) $(RM) -f $(LibName.O)
551 DestRelinkedLib = $(libdir)/$(LIBRARYNAME).o
553 install-local:: $(DestRelinkedLib)
555 $(DestRelinkedLib): $(libdir) $(LibName.O)
556 $(Echo) Installing $(BuildMode) Object Library $(DestRelinkedLib)
557 $(Verb) $(LTInstall) $(LibName.O) $(DestRelinkedLib)
560 $(Echo) Uninstalling $(BuildMode) Object Library $(DestRelinkedLib)
561 -$(Verb) $(RM) -f $(DestRelinkedLib)
565 #---------------------------------------------------------
566 # Archive Library Targets:
567 # If the user wanted a regular archive library built,
568 # then we provide targets for building them.
569 #---------------------------------------------------------
572 all-local:: $(LibName.A)
574 $(LibName.A): $(BUILT_SOURCES) $(ObjectsO) $(LibDir)/.dir
575 $(Echo) Building $(BuildMode) Archive Library $(notdir $@)
577 $(Verb) $(Archive) $@ $(ObjectsO)
581 ifneq ($(strip $(LibName.A)),)
582 -$(Verb) $(RM) -f $(LibName.A)
585 DestArchiveLib := $(libdir)/lib$(LIBRARYNAME).a
587 install-local:: $(DestArchiveLib)
589 $(DestArchiveLib): $(libdir) $(LibName.A)
590 $(Echo) Installing $(BuildMode) Archive Library $(DestArchiveLib)
591 $(Verb) $(MKDIR) $(libdir)
592 $(Verb) $(LTInstall) $(LibName.A) $(DestArchiveLib)
595 $(Echo) Uninstalling $(BuildMode) Archive Library $(DestArchiveLib)
596 -$(Verb) $(RM) -f $(DestArchiveLib)
603 ###############################################################################
604 # Tool Build Rules: Build executable tool based on TOOLNAME option
605 ###############################################################################
609 #---------------------------------------------------------
610 # Set up variables for building a tool.
611 #---------------------------------------------------------
612 ToolBuildPath := $(ToolDir)/$(TOOLNAME)$(EXEEXT)
613 ProjLibsOptions := $(patsubst %.a.o, -l%, $(addsuffix .o, $(USEDLIBS)))
614 ProjLibsOptions := $(patsubst %.o, $(LibDir)/%.o, $(ProjLibsOptions))
615 LLVMLibsOptions := $(patsubst %.a.o, -l%, $(addsuffix .o, $(LLVMLIBS)))
616 LLVMLibsOptions := $(patsubst %.o, $(LLVMLibDir)/%.o, $(LLVMLibsOptions))
617 ProjUsedLibs := $(patsubst %.a.o, lib%.a, $(addsuffix .o, $(USEDLIBS)))
618 LLVMUsedLibs := $(patsubst %.a.o, lib%.a, $(addsuffix .o, $(LLVMLIBS)))
619 ProjLibsPaths := $(addprefix $(LibDir)/,$(ProjUsedLibs))
620 LLVMLibsPaths := $(addprefix $(LLVMLibDir)/,$(LLVMUsedLibs))
622 #---------------------------------------------------------
623 # Handle optional compression libraries automatically
624 #---------------------------------------------------------
626 ifeq ($(HAVE_BZIP2),1)
629 ifeq ($(HAVE_ZLIB),1)
633 #---------------------------------------------------------
634 # Tell make that we need to rebuild subdirectories before
635 # we can link the tool. This affects things like LLI which
636 # has library subdirectories.
637 #---------------------------------------------------------
638 $(ToolBuildPath): $(addsuffix /.makeall, $(PARALLEL_DIRS))
640 #---------------------------------------------------------
641 # Provide targets for building the tools
642 #---------------------------------------------------------
643 all-local:: $(ToolBuildPath)
646 ifneq ($(strip $(ToolBuildPath)),)
647 -$(Verb) $(RM) -f $(ToolBuildPath)
650 $(ToolBuildPath): $(BUILT_SOURCES) $(ObjectsO) $(ProjLibsPaths) $(LLVMLibsPaths)\
652 $(Echo) Linking $(BuildMode) executable $(TOOLNAME) $(StripWarnMsg)
653 $(Verb) $(Link) -o $@ $(TOOLLINKOPTS) $(ObjectsO) $(ProjLibsOptions) \
654 $(LLVMLibsOptions) $(ExtraLibs) $(TOOLLINKOPTSB)
655 $(Echo) ======= Finished Linking $(BuildMode) Executable $(TOOLNAME) $(StripWarnMsg)
657 DestTool = $(bindir)/$(TOOLNAME)
659 install-local:: $(DestTool)
661 $(DestTool): $(bindir) $(ToolBuildPath)
662 $(Echo) Installing $(BuildMode) $(DestTool)
663 $(Verb) $(INSTALL) $(ToolBuildPath) $(DestTool)
666 $(Echo) Uninstalling $(BuildMode) $(DestTool)
667 -$(Verb) $(RM) -f $(DestTool)
671 ###############################################################################
672 # Object Build Rules: Build object files based on sources
673 ###############################################################################
675 # Provide rule sets for when dependency generation is enabled
676 ifndef DISABLE_AUTO_DEPENDENCIES
678 #---------------------------------------------------------
679 # Create .lo files in the ObjDir directory from the .cpp and .c files...
680 #---------------------------------------------------------
683 $(ObjDir)/%.lo $(ObjDir)/%.o: %.cpp $(ObjDir)/.dir
684 $(Echo) "Compiling $*.cpp for $(BuildMode) build (PIC)"
685 $(Verb) if $(LTCompile.CXX) -MD -MT $@ -MP -MF $(ObjDir)/$*.LACXXd $< -o $@ ; \
686 then $(MV) -f "$(ObjDir)/$*.LACXXd" "$(ObjDir)/$*.d"; \
687 else $(RM) -f "$(ObjDir)/$*.LACXXd"; exit 1; fi
689 $(ObjDir)/%.lo $(ObjDir)/%.o: %.c $(ObjDir)/.dir
690 $(Echo) "Compiling $*.c for $(BuildMode) build (PIC)"
691 $(Verb) if $(LTCompile.C) -MD -MT $@ -MP -MF $(ObjDir)/$*.LACd $< -o $@ ; \
692 then $(MV) -f "$(ObjDir)/$*.LACd" "$(ObjDir)/$*.d"; \
693 else $(RM) -f "$(ObjDir)/$*.LACd"; exit 1; fi
695 #---------------------------------------------------------
696 # Create .o files in the ObjDir directory from the .cpp and .c files...
697 #---------------------------------------------------------
700 $(ObjDir)/%.o: %.cpp $(ObjDir)/.dir
701 $(Echo) "Compiling $*.cpp for $(BuildMode) build"
702 $(Verb) if $(Compile.CXX) -MD -MT $@ -MP -MF $(ObjDir)/$*.CXXd $< -o $@ ; \
703 then $(MV) -f "$(ObjDir)/$*.CXXd" "$(ObjDir)/$*.d"; \
704 else $(RM) -f "$(ObjDir)/$*.CXXd"; exit 1; fi
706 $(ObjDir)/%.o: %.c $(ObjDir)/.dir
707 $(Echo) "Compiling $*.c for $(BuildMode) build"
708 $(Verb) if $(Compile.C) -MD -MT $@ -MP -MF $(ObjDir)/$*.Cd $< -o $@ ; \
709 then $(MV) -f "$(ObjDir)/$*.Cd" "$(ObjDir)/$*.d"; \
710 else $(RM) -f "$(ObjDir)/$*.Cd"; exit 1; fi
714 #---------------------------------------------------------
715 # Create .bc files in the ObjDir directory from .cpp and .c files...
716 #---------------------------------------------------------
717 $(ObjDir)/%.bc: %.cpp $(ObjDir)/.dir
718 $(Echo) "Compiling $*.cpp for $(BuildMode) build (bytecode)"
719 $(Verb) if $(BCCompile.CXX) -MD -MT $@ -MP -MF "$(ObjDir)/$*.BCCXXd" $< -o $@ ; \
720 then $(MV) -f "$(ObjDir)/$*.BCCXXd" "$(ObjDir)/$*.d"; \
721 else $(RM) -f "$(ObjDir)/$*.BCCXXd"; exit 1; fi
723 $(ObjDir)/%.bc: %.c $(ObjDir)/.dir
724 $(Echo) "Compiling $*.c for $(BuildMode) build (bytecode)"
725 $(Verb) if $(BCCompile.C) -MD -MT $@ -MP -MF "$(ObjDir)/$*.BCCd" $< -o $@ ; \
726 then $(MV) -f "$(ObjDir)/$*.BCCd" "$(ObjDir)/$*.d"; \
727 else $(RM) -f "$(ObjDir)/$*.BCCd"; exit 1; fi
729 # Provide alternate rule sets if dependencies are disabled
734 $(ObjDir)/%.lo $(ObjDir)/%.o: %.cpp $(ObjDir)/.dir
735 $(Echo) "Compiling $*.cpp for $(BuildMode) build (PIC)"
736 $(LTCompile.CXX) $< -o $@
738 $(ObjDir)/%.lo $(ObjDir)/%.o: %.c $(ObjDir)/.dir
739 $(Echo) "Compiling $*.cpp for $(BuildMode) build (PIC)"
740 $(LTCompile.C) $< -o $@
744 $(ObjDir)/%.o: %.cpp $(ObjDir)/.dir
745 $(Echo) "Compiling $*.cpp for $(BuildMode) build"
746 $(Compile.CXX) $< -o $@
748 $(ObjDir)/%.o: %.c $(ObjDir)/.dir
749 $(Echo) "Compiling $*.cpp for $(BuildMode) build"
750 $(Compile.C) $< -o $@
753 $(ObjDir)/%.bc: %.cpp $(ObjDir)/.dir
754 $(Echo) "Compiling $*.cpp for $(BuildMode) build (bytecode)"
755 $(BCCompile.CXX) $< -o $@
757 $(ObjDir)/%.bc: %.c $(ObjDir)/.dir
758 $(Echo) "Compiling $*.c for $(BuildMode) build (bytecode)"
759 $(BCCompile.C) $< -o $@
763 #---------------------------------------------------------
764 # Provide rule to build .bc files from .ll sources,
765 # regardless of dependencies
766 #---------------------------------------------------------
767 $(ObjDir)/%.bc: %.ll $(ObjDir)/.dir $(LLVMAS)
768 $(Echo) "Compiling $*.ll for $(BuildMode) build"
769 $(Verb) $(LLVMAS) $< -f -o $@
771 ###############################################################################
772 # TABLEGEN: Provide rules for running tblgen to produce *.inc files
773 ###############################################################################
777 TDFiles := $(strip $(wildcard $(BUILD_SRC_DIR)/*.td) $(LLVM_SRC_ROOT)/lib/Target/Target.td)
778 INCFiles := $(filter %.inc,$(BUILT_SOURCES))
780 $(INCFiles) : $(TBLGEN) $(TDFiles)
782 %GenRegisterNames.inc : %.td
783 $(Echo) "Building $(<F) register names with tblgen"
784 $(Verb) $(TableGen) -gen-register-enums -o $@ $<
786 %GenRegisterInfo.h.inc : %.td
787 $(Echo) "Building $(<F) register information header with tblgen"
788 $(Verb) $(TableGen) -gen-register-desc-header -o $@ $<
790 %GenRegisterInfo.inc : %.td
791 $(Echo) "Building $(<F) register info implementation with tblgen"
792 $(Verb) $(TableGen) -gen-register-desc -o $@ $<
794 %GenInstrNames.inc : %.td
795 $(Echo) "Building $(<F) instruction names with tblgen"
796 $(Verb) $(TableGen) -gen-instr-enums -o $@ $<
798 %GenInstrInfo.inc : %.td
799 $(Echo) "Building $(<F) instruction information with tblgen"
800 $(Verb) $(TableGen) -gen-instr-desc -o $@ $<
802 %GenAsmWriter.inc : %.td
803 $(Echo) "Building $(<F) assembly writer with tblgen"
804 $(Verb) $(TableGen) -gen-asm-writer -o $@ $<
806 %GenATTAsmWriter.inc : %.td
807 $(Echo) "Building $(<F) AT&T assembly writer with tblgen"
808 $(Verb) $(TableGen) -gen-asm-writer -o $@ $<
810 %GenIntelAsmWriter.inc : %.td
811 $(Echo) "Building $(<F) Intel assembly writer with tblgen"
812 $(Verb) $(TableGen) -gen-asm-writer -asmwriternum=1 -o $@ $<
814 %GenInstrSelector.inc: %.td
815 $(Echo) "Building $(<F) instruction selector with tblgen"
816 $(Verb) $(TableGen) -gen-instr-selector -o $@ $<
818 %GenCodeEmitter.inc:: %.td
819 $(Echo) "Building $(<F) code emitter with tblgen"
820 $(Verb) $(TableGen) -gen-emitter -o $@ $<
823 -$(Verb) $(RM) -f $(INCFiles)
827 ###############################################################################
828 # LEX AND YACC: Provide rules for generating sources with lex and yacc
829 ###############################################################################
831 #---------------------------------------------------------
832 # Provide rules for generating a .cpp source file from
833 # (f)lex input sources.
834 #---------------------------------------------------------
836 LexFiles := $(filter %.l,$(Sources))
840 LexOutput := $(strip $(patsubst %.l,%.cpp,$(LexFiles)))
842 .PRECIOUS: $(LexOutput)
844 # Note the extra sed filtering here, used to cut down on the warnings emited
845 # by GCC. The last line is a gross hack to work around flex aparently not
846 # being able to resize the buffer on a large token input. Currently, for
847 # uninitialized string buffers in LLVM we can generate very long tokens, so
848 # this is a hack around it.
849 # FIXME. (f.e. char Buffer[10000] )
852 $(Verb) $(FLEX) -t $< | \
853 $(SED) 's/void yyunput/inline void yyunput/' | \
854 $(SED) 's/void \*yy_flex_realloc/inline void *yy_flex_realloc/' | \
855 $(SED) 's/#define YY_BUF_SIZE 16384/#define YY_BUF_SIZE (16384*64)/' \
859 -$(Verb) $(RM) -f $(LexOutput)
860 $(Verb) $(RM) -f $(LexOutput)
864 #---------------------------------------------------------
865 # Provide rules for generating a .cpp and .h source files
866 # from yacc (bison) input sources.
867 #---------------------------------------------------------
869 YaccFiles := $(filter %.y,$(Sources))
870 ifneq ($(YaccFiles),)
871 YaccOutput := $(addprefix $(patsubst %.y,%,$(YaccFiles)),.h .cpp .output)
873 .PRECIOUS: $(YaccOutput)
875 # Cancel built-in rules for yacc
880 # Rule for building the bison parsers...
882 $(Echo) "Bisoning $*.y"
883 $(Verb) $(BISON) -v -d -p $(<F:%Parser.y=%) -o $*.tab.c $<
884 $(Verb) $(MV) -f $*.tab.c $*.cpp
885 $(Verb) $(MV) -f $*.tab.h $*.h
888 -$(Verb) $(RM) -f $(YaccOutput)
889 $(Verb) $(RM) -f $(YaccOutput)
892 ###############################################################################
893 # OTHER RULES: Other rules needed
894 ###############################################################################
896 # To create postscript files from dot files...
899 $(DOT) -Tps < $< > $@
902 $(Echo) "Cannot build $@: The program dot is not installed"
905 # This rules ensures that header files that are removed still have a rule for
906 # which they can be "generated." This allows make to ignore them and
907 # reproduce the dependency lists.
910 # Define clean-local to clean the current directory. Note that this uses a
911 # very conservative approach ensuring that empty variables do not cause
912 # errors or disastrous removal.
914 ifneq ($(strip $(ObjDir)),)
915 -$(Verb) $(RM) -rf $(ObjDir)
917 -$(Verb) $(RM) -f core core.[0-9][0-9]* *.o *.d *~ *.flc
918 ifneq ($(strip $(SHLIBEXT)),) # Extra paranoia - make real sure SHLIBEXT is set
919 -$(Verb) $(RM) -f *$(SHLIBEXT)
923 -$(Verb) $(RM) -rf Debug Release Profile
925 # Build tags database for Emacs/Xemacs:
929 find $(BUILD_SRC_ROOT)/include $(BUILD_SRC_ROOT)/lib \
930 $(BUILD_SRC_ROOT)/tools $(BUILD_SRC_ROOT)/examples \
931 $(BUILD_OBJ_ROOT)/include $(BUILD_OBJ_ROOT)/lib \
932 $(BUILD_OBJ_ROOT)/tools $(BUILD_OBJ_ROOT)/examples \
933 -name '*.cpp' -o -name '*.h' | \
934 $(ETAGS) $(ETAGSFLAGS) -
937 find $(BUILD_SRC_ROOT)/include $(BUILD_SRC_ROOT)/lib \
938 $(BUILD_SRC_ROOT)/tools $(BUILD_SRC_ROOT)/examples \
939 $(BUILD_OBJ_ROOT)/include $(BUILD_OBJ_ROOT)/lib \
940 $(BUILD_OBJ_ROOT)/tools $(BUILD_OBJ_ROOT)/examples \
941 \( -name '*.cpp' -o -name '*.h' \) -print | \
942 ctags -ImtT -o $(BUILD_OBJ_ROOT)/CTAGS -L -
945 ###############################################################################
946 # DEPENDENCIES: Include the dependency files if we should
947 ###############################################################################
948 ifndef DISABLE_AUTO_DEPENDENCIES
950 # If its not one of the cleaning targets
951 ifneq ($strip($(filter-out clean clean-local dist-clean,$(MAKECMDGOALS))),)
953 # Get the list of dependency files
954 DependFiles := $(basename $(filter %.cpp %.c %.cc, $(Sources)))
955 DependFiles := $(patsubst %,$(BUILD_OBJ_DIR)/$(BuildMode)/%.d,$(DependFiles))
957 -include /dev/null $(DependFiles)
963 ###############################################################################
964 # DISTRIBUTION: Handle construction of a distribution tarball
965 ###############################################################################
967 #------------------------------------------------------------------------
968 # Define distribution related variables
969 #------------------------------------------------------------------------
970 DistName := $(LLVM_TARBALL_NAME)
971 DistDir := $(BUILD_OBJ_ROOT)/$(DistName)
972 TopDistDir := $(BUILD_OBJ_ROOT)/$(DistName)
973 DistTarGZip := $(BUILD_OBJ_ROOT)/$(DistName).tar.gz
974 DistZip := $(BUILD_OBJ_ROOT)/$(DistName).zip
975 DistTarBZ2 := $(BUILD_OBJ_ROOT)/$(DistName).tar.bz2
976 DistAlways := CREDITS.TXT LICENSE.TXT README.txt README AUTHORS COPYING \
977 ChangeLog INSTALL NEWS Makefile Makefile.common Makefile.rules \
978 Makefile.config.in configure autoconf
979 DistOther := $(notdir $(wildcard \
980 $(BUILD_SRC_DIR)/*.h \
981 $(BUILD_SRC_DIR)/*.td \
982 $(BUILD_SRC_DIR)/*.def \
983 $(BUILD_SRC_DIR)/*.ll \
984 $(BUILD_SRC_DIR)/*.in))
985 DistSources := $(Sources) $(EXTRA_DIST)
986 DistSubDirs := $(SubDirs)
987 DistFiles := $(DistAlways) $(DistSources) $(DistOther)
989 #------------------------------------------------------------------------
990 # We MUST build distribution with OBJ_DIR != SRC_DIR
991 #------------------------------------------------------------------------
992 ifeq ($(BUILD_SRC_DIR),$(BUILD_OBJ_DIR))
993 dist dist-check dist-clean dist-gzip dist-bzip2 dist-zip ::
994 $(Echo) ERROR: Target $@ only available with OBJ_DIR != SRC_DIR
999 DistCheckTop := check
1001 #------------------------------------------------------------------------
1002 # Prevent catastrophic remove
1003 #------------------------------------------------------------------------
1004 ifeq ($(LLVM_TARBALL_NAME),)
1005 $(error LLVM_TARBALL_NAME is empty. Please rerun configure)
1008 #------------------------------------------------------------------------
1009 # Prevent attempt to run dist targets from anywhere but the top level
1010 #------------------------------------------------------------------------
1013 dist dist-check dist-clean dist-gzip dist-bzip2 dist-zip ::
1014 $(Echo) ERROR: You must run $@ from $(BUILD_OBJ_ROOT)
1018 #------------------------------------------------------------------------
1019 # Provide the top level targets
1020 #------------------------------------------------------------------------
1022 dist-gzip:: $(DistTarGZip)
1024 $(DistTarGZip) : distdir
1025 $(Echo) Packing gzipped distribution tar file.
1026 $(Verb) cd $(BUILD_OBJ_ROOT) ; $(TAR) chf - "$(DistName)" | gzip -c > "$(DistTarGZip)"
1028 dist-bzip2:: $(DistTarBZ2)
1030 $(DistTarBZ2) : distdir
1031 $(Echo) Packing bzipped distribution tar file.
1032 $(Verb) cd $(BUILD_OBJ_ROOT) ; $(TAR) chf - $(DistName) | $(BZIP2) -c >$(DistTarBZ2)
1034 dist-zip:: $(DistZip)
1036 $(DistZip) : distdir
1037 $(Echo) Packing zipped distribution file.
1038 $(Verb) rm -f $(DistZip)
1039 $(Verb) cd $(BUILD_OBJ_ROOT) ; $(ZIP) -rq $(DistZip) $(DistName)
1041 dist :: $(DistTarGZip) $(DistTarBZ2) $(DistZip)
1042 $(Echo) ===== DISTRIBUTION PACKAGING SUCESSFUL =====
1044 DistCheckDir := $(LLVM_OBJ_ROOT)/_distcheckdir
1046 dist-check:: $(DistCheckTop) $(DistTarGZip)
1047 $(Echo) Checking distribution tar file.
1048 $(Verb) if test -d $(DistCheckDir) ; then \
1049 $(RM) -rf $(DistCheckDir) ; \
1051 $(Verb) $(MKDIR) $(DistCheckDir)
1052 $(Verb) cd $(DistCheckDir) && \
1053 $(MKDIR) $(DistCheckDir)/build && \
1054 $(MKDIR) $(DistCheckDir)/install && \
1055 gunzip -c $(DistTarGZip) | $(TAR) xf - && \
1057 ../$(DistName)/configure --prefix="$(DistCheckDir)/install" \
1058 --srcdir=../$(DistName) --with-llvmgccdir="$(LLVMGCCDIR)" && \
1060 $(MAKE) install && \
1061 $(MAKE) uninstall && \
1064 $(MAKE) dist-clean && \
1065 $(EchoCmd) ===== $(DistTarGZip) Ready For Distribution =====
1068 $(Echo) Cleaning distribution files
1069 -$(Verb) $(RM) -rf $(DistTarGZip) $(DistTarBZ2) $(DistZip) $(DistName) $(DistCheckDir)
1073 #------------------------------------------------------------------------
1074 # Provide the recursive distdir target for building the distribution directory
1075 #------------------------------------------------------------------------
1076 distdir : $(DistSources)
1077 $(Echo) Building Distribution Directory $(DistDir)
1078 $(Verb) if test "$(DistDir)" = "$(TopDistDir)" ; then \
1079 if test -d "$(DistDir)" ; then \
1080 find $(DistDir) -type d ! -perm -200 -exec chmod u+w {} ';' || \
1083 $(EchoCmd) Removing $(DistDir) ; \
1084 $(RM) -rf $(DistDir); \
1086 $(Verb) $(MKDIR) $(DistDir)
1087 $(Verb) srcdirstrip=`echo "$(BUILD_SRC_DIR)" | sed 's|.|.|g'`; \
1088 srcrootstrip=`echo "$(BUILD_SRC_ROOT)" | sed 's|.|.|g'`; \
1089 for file in $(DistFiles) ; do \
1091 $(BUILD_SRC_DIR)/*) file=`echo "$$file" | sed "s#^$$srcdirstrip/##"`;; \
1092 $(BUILD_SRC_ROOT)/*) file=`echo "$$file" | sed "s#^$$srcrootstrip/#$(BUILD_OBJ_ROOT)/#"`;; \
1094 if test -f "$$file" || test -d "$$file" ; then \
1097 from_dir=$(BUILD_SRC_DIR); \
1099 to_dir=`echo "$$file" | sed -e 's#/[^/]*$$##'`; \
1100 if test "$$to_dir" != "$$file" && test "$$to_dir" != "."; then \
1101 to_dir="$(DistDir)/$$dir"; \
1102 $(MKDIR) "$$to_dir" ; \
1104 to_dir="$(DistDir)"; \
1106 mid_dir=`echo "$$file" | sed -n -e 's#^\(.*\)/[^/]*$$#\1#p'`; \
1107 if test -n "$$mid_dir" ; then \
1108 $(MKDIR) "$$to_dir/$$mid_dir" || exit 1; \
1110 if test -d "$$from_dir/$$file"; then \
1111 if test -d "$(BUILD_SRC_DIR)/$$file" && \
1112 test "$$from_dir" != "$(BUILD_SRC_DIR)" ; then \
1113 cp -pR "$(BUILD_SRC_DIR)/$$file" "$$to_dir" || exit 1; \
1115 cp -pR $$from_dir/$$file $$to_dir || exit 1; \
1116 elif test -f "$$from_dir/$$file" ; then \
1117 cp -p "$$from_dir/$$file" "$(DistDir)/$$file" || exit 1; \
1118 elif test -L "$$from_dir/$$file" ; then \
1119 cp -pd "$$from_dir/$$file" $(DistDir)/$$file || exit 1; \
1120 elif echo "$(DistAlways)" | grep -v "$$file" >/dev/null ; then \
1121 $(EchoCmd) "===== WARNING: Distribution Source $$from_dir/$$file Not Found!" ; \
1122 elif test "$(Verb)" != '@' ; then \
1123 $(EchoCmd) "Skipping non-existent $$from_dir/$$file" ; \
1126 $(Verb) for subdir in $(DistSubDirs) ; do \
1127 if test "$$subdir" \!= "." ; then \
1128 new_distdir="$(DistDir)/$$subdir" ; \
1129 test -d "$$new_distdir" || $(MKDIR) "$$new_distdir" || exit 1; \
1130 ( cd $$subdir && $(MAKE) DistDir="$$new_distdir" distdir ) || exit 1; \
1133 $(Verb) $(MAKE) DistDir="$(DistDir)" dist-hook || exit 1
1134 -$(Verb) find $(DistDir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
1135 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
1136 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
1137 ! -type d ! -perm -444 -exec $(SHELL) $(INSTALL_SH) -c -m a+r {} {} \; \
1138 || chmod -R a+r $(DistDir)
1140 # This is invoked by distdir target, define it as a no-op to avoid errors if not
1146 ###############################################################################
1147 # TOP LEVEL - targets only to apply at the top level directory
1148 ###############################################################################
1152 #------------------------------------------------------------------------
1153 # Install support for project's include files:
1154 #------------------------------------------------------------------------
1156 $(Echo) Installing include files
1157 $(Verb) $(MKDIR) $(includedir)
1158 $(Verb) if [ -d "$(BUILD_SRC_ROOT)/include" ] ; then \
1159 cd $(BUILD_SRC_ROOT)/include && \
1160 find . -path '*/Internal' -prune -o '(' -type f \
1161 '!' '(' -name '*~' -o -name '.cvsignore' -o -name '.#*' ')' \
1162 -print ')' | grep -v CVS | pax -rwdvpe $(includedir) ; \
1166 $(Echo) Uninstalling include files
1167 $(Verb) if [ -d "$(BUILD_SRC_ROOT)/include" ] ; then \
1168 cd $(BUILD_SRC_ROOT)/include && \
1169 $(RM) -f `find . -path '*/Internal' -prune -o '(' -type f \
1170 '!' '(' -name '*~' -o -name '.cvsignore' -o -name '.#*' ')' \
1171 -print ')' | grep -v CVS | sed 's#^#$(includedir)/#'` ; \
1176 #------------------------------------------------------------------------
1177 # Print out the directories used for building
1178 #------------------------------------------------------------------------
1180 $(Echo) "BuildMode : " '$(BuildMode)'
1181 $(Echo) "BUILD_SRC_ROOT : " '$(BUILD_SRC_ROOT)'
1182 $(Echo) "BUILD_SRC_DIR : " '$(BUILD_SRC_DIR)'
1183 $(Echo) "BUILD_OBJ_ROOT : " '$(BUILD_OBJ_ROOT)'
1184 $(Echo) "BUILD_OBJ_DIR : " '$(BUILD_OBJ_DIR)'
1185 $(Echo) "LLVM_SRC_ROOT : " '$(LLVM_SRC_ROOT)'
1186 $(Echo) "LLVM_OBJ_ROOT : " '$(LLVM_OBJ_ROOT)'
1187 $(Echo) "libdir : " '$(libdir)'
1188 $(Echo) "bindir : " '$(bindir)'
1189 $(Echo) "sysconfdir : " '$(sysconfdir)'
1190 $(Echo) "bytecode_libdir: " '$(bytecode_libdir)'
1191 $(Echo) "UserTargets : " '$(UserTargets)'
1192 $(Echo) "ObjMakefiles : " '$(ObjMakefiles)'
1193 $(Echo) "SrcMakefiles : " '$(SrcMakefiles)'
1194 $(Echo) "ObjDir : " '$(ObjDir)'
1195 $(Echo) "LibDir : " '$(LibDir)'
1196 $(Echo) "ToolDir : " '$(ToolDir)'
1197 $(Echo) "TDFiles : " '$(TDFiles)'
1198 $(Echo) "INCFiles : " '$(INCFiles)'
1199 $(Echo) "Compile.CXX : " '$(Compile.CXX)'
1200 $(Echo) "Compile.C : " '$(Compile.C)'
1201 $(Echo) "Archive : " '$(Archive)'
1202 $(Echo) "YaccFiles : " '$(YaccFiles)'
1203 $(Echo) "LexFiles : " '$(LexFiles)'