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 #===-----------------------------------------------------------------------====
16 # Set the VPATH so that we can find source files.
18 VPATH=$(BUILD_SRC_DIR)
20 ###############################################################################
21 # TARGETS: Define standard targets that can be invoked
22 ###############################################################################
24 #--------------------------------------------------------------------
25 # Define the various target sets
26 #--------------------------------------------------------------------
27 RECURSIVE_TARGETS := all clean check install uninstall
28 LOCAL_TARGETS := all-local clean-local check-local install-local \
29 printvars uninstall-local
30 TOPLEV_TARGETS := dist dist-check dist-clean tags
31 USER_TARGETS := $(RECURSIVE_TARGETS) $(LOCAL_TARGETS) $(TOPLEV_TARGETS)
32 INTERNAL_TARGETS := preconditions \
33 install-config-dir install-shared-library install-bytecode-library \
34 install-archive-library install-relinked-library install-tool \
35 uninstall-config-dir uninstall-shared-library uninstall-bytecode-library \
36 uninstall-archive-library uninstall-relinked-library uninstall-tool
38 ###############################################################################
39 # INITIALIZATION: Basic things the makefile needs
40 ###############################################################################
42 #--------------------------------------------------------------------
43 # Reset the list of suffixes we know how to build
44 #--------------------------------------------------------------------
46 .SUFFIXES: .c .cpp .h .hpp .y .l .lo .o .a $(SHLIBEXT) .bc .td .ps .dot $(SUFFIXES)
48 #--------------------------------------------------------------------
49 # Mark all of these targets as phony to avoid implicit rule search
50 #--------------------------------------------------------------------
51 .PHONY: $(USER_TARGETS) $(INTERNAL_TARGETS)
53 #--------------------------------------------------------------------
54 # Make sure all the user-target rules are double colon rules and
55 # they are defined first.
56 #--------------------------------------------------------------------
60 ################################################################################
61 # PRECONDITIONS: that which must be built/checked first
62 ################################################################################
64 SRCMKFILES := $(filter-out Makefile.rules %.in,\
65 $(wildcard $(BUILD_SRC_DIR)/Makefile.*))
66 OBJMKFILES := $(subst $(BUILD_SRC_DIR),$(BUILD_OBJ_DIR),$(SRCMKFILES))
67 CONFIGURE := $(LLVM_SRC_ROOT)/configure
68 CONFIG_STATUS := $(LLVM_OBJ_ROOT)/config.status
69 MAKE_CONFIG_IN:= $(LLVM_SRC_ROOT)/Makefile.config.in
70 MAKE_CONFIG := $(LLVM_OBJ_ROOT)/Makefile.config
71 PRECONDITIONS := $(CONFIG_STATUS) $(MAKE_CONFIG) $(OBJMKFILES)
73 preconditions : $(PRECONDITIONS)
75 #------------------------------------------------------------------------
76 # Make sure the BUILT_SOURCES are built first
77 #------------------------------------------------------------------------
78 $(filter-out clean clean-local,USER_TARGETS):: $(BUILT_SOURCES)
81 ifneq ($(strip $(BUILT_SOURCES)),)
82 $(VERB) $(RM) -f $(BUILT_SOURCES)
85 #------------------------------------------------------------------------
86 # Make sure we're not using a stale configuration
87 #------------------------------------------------------------------------
88 .PRECIOUS: $(CONFIG_STATUS)
89 $(CONFIG_STATUS): $(CONFIGURE)
90 @$(ECHO) Reconfiguring with $<
91 $(VERB) $(CONFIG_STATUS) --recheck $(CONFIGUREFLAGS)
93 #------------------------------------------------------------------------
94 # Make sure the configuration makefile is up to date
95 #------------------------------------------------------------------------
96 $(MAKE_CONFIG): $(MAKE_CONFIG_IN) $(CONFIG_STATUS)
97 @$(ECHO) Regenerating $@
98 $(VERB) cd $(LLVM_OBJ_ROOT) ; $(CONFIG_STATUS) Makefile.config
100 #------------------------------------------------------------------------
101 # If the Makefile in the source tree has been updated, copy it over into the
102 # build tree. But, only do this if the source and object makefiles differ
103 #------------------------------------------------------------------------
104 ifneq ($(BUILD_OBJ_DIR),$(BUILD_SRC_DIR))
106 $(BUILD_OBJ_DIR)/Makefile : $(BUILD_SRC_DIR)/Makefile
107 @$(ECHO) "Updating Makefile"
108 $(VERB) $(MKDIR) $(@D)
111 # Copy the Makefile.* files unless we're in the root directory which avoids
112 # the copying of Makefile.config.in or other things that should be explicitly
114 $(BUILD_OBJ_DIR)/Makefile% : $(BUILD_SRC_DIR)/Makefile%
116 *Makefile.rules) ;; \
118 *) $(ECHO) "Updating $(@F)" ; \
125 #------------------------------------------------------------------------
126 # Set up the basic dependencies
127 #------------------------------------------------------------------------
128 $(USER_TARGETS):: $(PRECONDITIONS)
133 install:: install-local
134 uninstall:: uninstall-local
135 check-local:: all-local
136 install-local:: all-local
138 ###############################################################################
139 # VARIABLES: Set up various variables based on configuration data
140 ###############################################################################
142 #--------------------------------------------------------------------
143 # Variables derived from configuration we are building
144 #--------------------------------------------------------------------
146 ifdef ENABLE_PROFILING
147 CONFIGURATION := Profile
148 CXXFLAGS += -O3 -DNDEBUG -felide-constructors -finline-functions -pg
149 CFLAGS += -O3 -DNDEBUG -pg
150 LDFLAGS += -O3 -DNDEBUG -pg
152 ifdef ENABLE_OPTIMIZED
153 CONFIGURATION := Release
154 CXXFLAGS += -O3 -DNDEBUG -finline-functions -felide-constructors -fomit-frame-pointer
155 CFLAGS += -O3 -DNDEBUG -fomit-frame-pointer
156 LDFLAGS += -O3 -DNDEBUG
158 CONFIGURATION := Debug
159 CXXFLAGS += -g -D_DEBUG
160 CFLAGS += -g -D_DEBUG
161 LDFLAGS += -g -D_DEBUG
168 #--------------------------------------------------------------------
169 # Directory locations
170 #--------------------------------------------------------------------
171 OBJDIR := $(BUILD_OBJ_DIR)/$(CONFIGURATION)
172 LIBDIR := $(BUILD_OBJ_ROOT)/lib/$(CONFIGURATION)
173 TOOLDIR := $(BUILD_OBJ_ROOT)/tools/$(CONFIGURATION)
174 LLVMLIBDIR := $(LLVM_OBJ_ROOT)/lib/$(CONFIGURATION)
175 LLVMTOOLDIR := $(LLVM_OBJ_ROOT)/tools/$(CONFIGURATION)
177 #--------------------------------------------------------------------
178 # Full Paths To Compiled Tools and Utilities
179 #--------------------------------------------------------------------
180 LIBTOOL := $(LLVM_OBJ_ROOT)/mklib
181 LLVMAS := $(LLVMTOOLDIR)/llvm-as$(EXEEXT)
182 BURG := $(LLVMTOOLDIR)/burg$(EXEEXT)
183 TBLGEN := $(LLVMTOOLDIR)/tblgen$(EXEEXT)
184 GCCLD := $(LLVMTOOLDIR)/gccld$(EXEEXT)
185 LLVMGCC := PATH=$(LLVMTOOLDIR):$(PATH) $(LLVMGCCDIR)/bin/gcc
186 LLVMGXX := PATH=$(LLVMTOOLDIR):$(PATH) $(LLVMGCCDIR)/bin/g++
188 # Need a better way to compute this.
189 LLVMGCCLIBDIR := $(dir $(shell $(LLVMGCC) -print-file-name=libgcc.a))/
191 #--------------------------------------------------------------------
192 # Adjust to user's request
193 #--------------------------------------------------------------------
195 # Adjust LIBTOOL options for shared libraries, or not.
196 ifndef SHARED_LIBRARY
197 LIBTOOL += --tag=disable-shared
199 LDFLAGS += -rpath $(LIBDIR)
202 # Adjust settings for verbose mode
206 AR += >/dev/null 2>/dev/null
207 CONFIGUREFLAGS += >$(BUILD_OBJ_DIR)/configure.out 2>&1
212 # By default, strip symbol information from executable
214 STRIP = $(PLATFORMSTRIPOPTS)
215 STRIP_WARN_MSG = "(without symbols)"
218 # Adjust linker flags for building an executable
220 LDFLAGS += -rpath $(TOOLDIR) -export-dynamic $(TOOLLINKOPTS)
223 # Use TOOLLINKOPTSB to pass options to the linker like library search
225 # Note that this is different from TOOLLINKOPTS, these options
226 # are passed to the linker *before* the USEDLIBS options are passed.
227 # e.g. usage TOOLLINKOPTSB = -L/home/xxx/lib
229 LDFLAGS += $(TOOLLINKOPTSB)
232 #----------------------------------------------------------
233 # Options To Invoke Tools
234 #----------------------------------------------------------
236 CompileCommonOpts := -Wall -W -Wwrite-strings -Wno-unused
238 LDFLAGS += -L$(LIBDIR) -L$(LLVMLIBDIR)
239 CPPFLAGS += -I$(BUILD_OBJ_DIR) \
241 -I$(BUILD_SRC_ROOT)/include \
242 -I$(BUILD_OBJ_ROOT)/include \
243 -I$(LLVM_OBJ_ROOT)/include \
244 -I$(LLVM_SRC_ROOT)/include \
245 -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
247 Compile.C = $(CC) $(CPPFLAGS) $(CompileCommonOpts) -c $(CFLAGS)
248 Compile.CXX = $(CXX) $(CPPFLAGS) $(CompileCommonOpts) $(CXXFLAGS) -c
249 LTCompile.C = $(LIBTOOL) --mode=compile $(Compile.C)
250 LTCompile.CXX = $(LIBTOOL) --tag=CXX --mode=compile $(Compile.CXX)
251 BCCompile.CXX = $(LLVMGXX) $(CPPFLAGS) $(CompileCommonOpts) $(CXXFLAGS) -c
252 BCCompile.C = $(LLVMGCC) $(CPPFLAGS) $(CompileCommonOpts) $(CFLAGS) -c
253 Link = $(LIBTOOL) --tag=CXX --mode=link $(CXX) $(CPPFLAGS) \
254 $(CompileCommonOpts) $(LDFLAGS) $(STRIP)
255 Relink = $(LIBTOOL) --tag=CXX --mode=link $(CXX)
256 BCLinkLib = $(LLVMGCC) -shared -nostdlib
257 Burg = $(BURG) -I $(BUILD_SRC_DIR)
258 TableGen = $(TBLGEN) -I $(BUILD_SRC_DIR)
259 Archive = $(AR) $(ARFLAGS)
266 #----------------------------------------------------------
267 # Get the list of source files
268 #----------------------------------------------------------
270 SOURCES := $(notdir $(wildcard $(BUILD_SRC_DIR)/*.cpp \
271 $(BUILD_SRC_DIR)/*.cc $(BUILD_SRC_DIR)/*.c $(BUILD_SRC_DIR)/*.y \
272 $(BUILD_SRC_DIR)/*.l))
276 SOURCES += $(filter %.cpp %.c %.cc %.y %.l,$(BUILT_SOURCES))
279 #----------------------------------------------------------
280 # Types of objects that can be built from sources
281 #----------------------------------------------------------
282 BASENAME_SOURCES := $(sort $(basename $(SOURCES)))
283 ObjectsO := $(BASENAME_SOURCES:%=$(OBJDIR)/%.o)
284 ObjectsLO := $(BASENAME_SOURCES:%=$(OBJDIR)/%.lo)
285 ObjectsBC := $(BASENAME_SOURCES:%=$(OBJDIR)/%.bc)
288 ###############################################################################
289 # DIRECTORIES: Handle recursive descent of directory structure
290 ###############################################################################
292 #---------------------------------------------------------
293 # Handle the DIRS options for sequential construction
294 #---------------------------------------------------------
299 $(RECURSIVE_TARGETS)::
300 $(VERB) for dir in $(DIRS); do \
301 if [ ! -f $$dir/Makefile ]; then \
303 cp $(BUILD_SRC_DIR)/$$dir/Makefile $$dir/Makefile; \
305 ($(MAKE) -C $$dir $@ ) || exit 1; \
309 #---------------------------------------------------------
310 # Handle the EXPERIMENTAL_DIRS options ensuring success
311 # after each directory is built.
312 #---------------------------------------------------------
313 ifdef EXPERIMENTAL_DIRS
314 $(RECURSIVE_TARGETS)::
315 $(VERB) for dir in $(EXPERIMENTAL_DIRS); do \
316 if [ ! -f $$dir/Makefile ]; then \
318 cp $(BUILD_SRC_DIR)/$$dir/Makefile $$dir/Makefile; \
320 ($(MAKE) -C $$dir $@ ) || exit 0; \
324 #---------------------------------------------------------
325 # Handle the PARALLEL_DIRS options for parallel construction
326 #---------------------------------------------------------
329 SUBDIRS += $(PARALLEL_DIRS)
330 # Unfortunately, this list must be maintained if new
331 # recursive targets are added.
332 all :: $(addsuffix /.makeall , $(PARALLEL_DIRS))
333 clean :: $(addsuffix /.makeclean , $(PARALLEL_DIRS))
334 check :: $(addsuffix /.makecheck , $(PARALLEL_DIRS))
335 install :: $(addsuffix /.makeinstall , $(PARALLEL_DIRS))
336 uninstall:: $(addsuffix /.makeuninstall,$(PARALLEL_DIRS))
338 Parallel_Targets := $(foreach T,$(RECURSIVE_TARGETS),%/.make$(T))
340 $(Parallel_Targets) :
341 $(VERB) if [ ! -f $(@D)/Makefile ]; then \
343 cp $(BUILD_SRC_DIR)/$(@D)/Makefile $(@D)/Makefile; \
345 $(MAKE) -C $(@D) $(subst $(@D)/.make,,$@)
348 #---------------------------------------------------------
349 # Handle the OPTIONAL_DIRS options for directores that may
351 #---------------------------------------------------------
354 SUBDIRS += $(OPTIONAL_DIRS)
356 $(RECURSIVE_TARGETS)::
357 $(VERB) for dir in $(OPTIONAL_DIRS); do \
358 if [ -d $(BUILD_SRC_DIR)/$$dir ]; then\
359 if [ ! -f $$dir/Makefile ]; then \
361 cp $(BUILD_SRC_DIR)/$$dir/Makefile $$dir/Makefile; \
363 ($(MAKE) -C$$dir $@ ) || exit 1; \
368 #---------------------------------------------------------
369 # Handle the CONFIG_FILES options
370 #---------------------------------------------------------
373 install-local:: install-config-dir
375 install-config-dir: $(sysconfdir) $(CONFIG_FILES)
376 $(VERB)$(ECHO) Installing Configuration Files To $(sysconfdir)
377 $(VERB)for file in $(CONFIG_FILES); do \
378 $(INSTALL) $(BUILD_SRC_DIR)/$${file} $(sysconfdir) ; \
381 uninstall-local:: uninstall-config-dir
383 uninstall-config-dir:
384 $(VERB)$(ECHO) Uninstalling Configuration Files From $(sysconfdir)
385 $(VERB)for file in $(CONFIG_FILES); do \
386 $(RM) -f $(sysconfdir)/$${file} ; \
390 $(VERB) $(MKDIR) $(sysconfdir)
394 ###############################################################################
395 # Library Build Rules: Four ways to build a library
396 ###############################################################################
399 $(VERB) $(MKDIR) $(libdir)
402 $(VERB) $(MKDIR) $(bytecode_libdir)
406 # if we're building a library ...
409 # Make sure there isn't any extranous whitespace on the LIBRARYNAME option
410 LIBRARYNAME := $(strip $(LIBRARYNAME))
411 LIBNAME_LA := $(LIBDIR)/lib$(LIBRARYNAME).la
412 LIBNAME_A := $(LIBDIR)/lib$(LIBRARYNAME).a
413 LIBNAME_O := $(LIBDIR)/$(LIBRARYNAME).o
414 LIBNAME_BC := $(LIBDIR)/lib$(LIBRARYNAME).bc
416 #---------------------------------------------------------
417 # Shared Library Targets:
418 # If the user asked for a shared library to be built
419 # with the SHARED_LIBRARY variable, then we provide
420 # targets for building them.
421 #---------------------------------------------------------
424 all-local:: $(LIBNAME_LA)
426 $(LIBNAME_LA): $(BUILT_SOURCES) $(ObjectsLO) $(LIBDIR)/.dir
427 @$(ECHO) Linking $(CONFIGURATION) Shared Library $(notdir $@)
428 $(VERB) $(Link) -o $@ $(ObjectsLO)
429 $(VERB) $(LIBTOOL) --mode=install $(INSTALL) $@ $(LIBDIR)
432 ifneq ($(strip $(LIBNAME_LA)),)
433 $(VERB) $(RM) -f $(LIBNAME_LA)
436 DestSharedLib = $(libdir)/lib$(LIBRARYNAME)$(SHLIBEXT)
437 install-local:: install-shared-library
439 install-shared-library: $(libdir) $(DestSharedLib)
441 $(DestSharedLib): $(LIBNAME_LA)
442 @$(ECHO) Installing $(CONFIGURATION) Shared Library $(DestSharedLib)
443 $(VERB) $(LIBTOOL) --mode=install $(INSTALL) $(LIBNAME_LA) $(DestSharedLib)
444 $(VERB) $(LIBTOOL) --finish $(libdir)
446 uninstall-local:: uninstall-shared-library
448 uninstall-shared-library:
449 @$(ECHO) Uninstalling $(CONFIGURATION) Shared Library $(DestSharedLib)
450 $(VERB) $(RM) -f $(DestSharedLib)
454 #---------------------------------------------------------
455 # Bytecode Library Targets:
456 # If the user asked for a bytecode library to be built
457 # with the BYTECODE_LIBRARY variable, then we provide
458 # targets for building them.
459 #---------------------------------------------------------
460 ifdef BYTECODE_LIBRARY
462 ifdef EXPORTED_SYMBOL_LIST
463 BCLinkLib += -Xlinker -internalize-public-api-list=$(EXPORTED_SYMBOL_LIST)
465 ifdef EXPORTED_SYMBOL_FILE
466 BCLinkLib += -Xlinker -internalize-public-api-file=$(EXPORTED_SYMBOL_FILE)
468 BCLinkLib += -Xlinker -disable-internalize
472 all-local:: $(LIBNAME_BC)
474 $(LIBNAME_BC): $(BUILT_SOURCES) $(ObjectsBC) $(LIBDIR)/.dir
475 @$(ECHO) Linking $(CONFIGURATION) Bytecode Library $(notdir $@)
476 $(VERB) $(BCLinkLib) -o $@ $(ObjectsBC)
479 ifneq ($(strip $(LIBNAME_BC)),)
480 $(VERB) $(RM) -f $(LIBNAME_BC)
483 DestBytecodeLib = $(bytecode_libdir)/lib$(LIBRARYNAME).bc
485 install-local:: install-bytecode-library
487 install-bytecode-library: $(bytecode_libdir) $(DestBytecodeLib)
489 $(DestBytecodeLib): $(LIBNAME_BC) $(bytecode_libdir)
490 @$(ECHO) Installing $(CONFIGURATION) Bytecode Library $(DestBytecodeLib)
491 $(VERB) $(INSTALL) $< $@
493 uninstall-local:: uninstall-bytecode-library
495 uninstall-bytecode-library:
496 @$(ECHO) Uninstalling $(CONFIGURATION) Bytecode Library $(DestBytecodeLib)
497 $(VERB) $(RM) -f $(DestBytecodeLib)
501 # Does the library want a .o version built?
502 ifndef DONT_BUILD_RELINKED
503 all-local:: $(LIBNAME_O)
505 $(LIBNAME_O): $(BUILT_SOURCES) $(ObjectsO) $(LIBDIR)/.dir
506 @$(ECHO) Linking $(CONFIGURATION) Object Library $(notdir $@)
507 $(VERB) $(Relink) -o $@ $(ObjectsO)
510 ifneq ($(strip $(LIBNAME_O)),)
511 $(VERB) $(RM) -f $(LIBNAME_O)
514 DestRelinkedLib = $(libdir)/$(LIBRARYNAME).o
516 install-local:: install-relinked-library
518 install-relinked-library: $(libdir) $(DestRelinkedLib)
520 $(DestRelinkedLib): $(LIBNAME_O)
521 @$(ECHO) Installing $(CONFIGURATION) Object Library $(DestRelinkedLib)
522 $(VERB) $(MKDIR) $(libdir)
523 $(VERB) $(LIBTOOL) --mode=install $(INSTALL) $(LIBNAME_O) $(DestRelinkedLib)
525 uninstall-local:: uninstall-relinked-library
527 uninstall-relinked-library:
528 @$(ECHO) Uninstalling $(CONFIGURATION) Object Library $(DestRelinkedLib)
529 $(VERB) $(RM) -f $(DestRelinkedLib)
533 # Does the library want an archive version built?
535 all-local:: $(LIBNAME_A)
537 $(LIBNAME_A): $(BUILT_SOURCES) $(ObjectsO) $(LIBDIR)/.dir
538 @$(ECHO) Building $(CONFIGURATION) Archive Library $(notdir $@)
540 $(VERB) $(Archive) $@ $(ObjectsO)
544 ifneq ($(strip $(LIBNAME_A)),)
545 $(VERB) $(RM) -f $(LIBNAME_A)
548 DestArchiveLib := $(libdir)/lib$(LIBRARYNAME).a
550 install-local:: install-archive-library
552 install-archive-library: $(libdir) $(DestArchiveLib)
554 $(DestArchiveLib): $(LIBNAME_A)
555 @$(ECHO) Installing $(CONFIGURATION) Archive Library $(DestArchiveLib)
556 $(VERB) $(LIBTOOL) --mode=install $(INSTALL) $(LIBNAME_A) $(DestArchiveLib)
558 uninstall-local:: uninstall-archive-library
560 uninstall-archive-library:
561 @$(ECHO) Uninstalling $(CONFIGURATION) Archive Library $(DestArchiveLib)
562 $(VERB) $(RM) -f $(DestArchiveLib)
569 ###############################################################################
570 # Tool Build Rules: Build executable tool based on TOOLNAME option
571 ###############################################################################
575 #---------------------------------------------------------
576 # TOOLLINKOPTSB to pass options to the linker like library search path etc
577 # Note that this is different from TOOLLINKOPTS, these options
578 # are passed to the linker *before* the USEDLIBS options are passed.
579 # e.g. usage TOOLLINKOPTSB = -L/home/xxx/lib
580 #---------------------------------------------------------
582 Link += $(TOOLLINKOPTSB)
585 # TOOLEXENAME - This is the output filenames to generate
586 TOOLEXENAME := $(TOOLDIR)/$(TOOLNAME)
588 # LIBS_OPTIONS - Compute the options lines that add -llib1 -llib2, etc.
589 PROJ_LIBS_OPTIONS := $(patsubst %.a.o, -l%, $(addsuffix .o, $(USEDLIBS)))
590 PROJ_LIBS_OPTIONS := $(patsubst %.o, $(LIBDIR)/%.o, $(PROJ_LIBS_OPTIONS))
591 LLVM_LIBS_OPTIONS := $(patsubst %.a.o, -l%, $(addsuffix .o, $(LLVMLIBS)))
592 LLVM_LIBS_OPTIONS := $(patsubst %.o, $(LLVMLIBDIR)/%.o, $(LLVM_LIBS_OPTIONS))
594 # USED_LIBS/LIBS_PATHS - Compute dependent library file paths
595 PROJ_USED_LIBS := $(patsubst %.a.o, lib%.a, $(addsuffix .o, $(USEDLIBS)))
596 LLVM_USED_LIBS := $(patsubst %.a.o, lib%.a, $(addsuffix .o, $(LLVMLIBS)))
597 PROJ_LIBS_PATHS := $(addprefix $(LIBDIR)/,$(PROJ_USED_LIBS))
598 LLVM_LIBS_PATHS := $(addprefix $(LLVMLIBDIR)/,$(LLVM_USED_LIBS))
600 # Concatenate all the optoins
601 LINK_OPTS := $(TOOLLINKOPTS) $(PROJ_LIBS_OPTIONS) $(LLVM_LIBS_OPTIONS)
603 # Handle compression libraries automatically
604 ifeq ($(HAVE_BZIP2),1)
607 ifeq ($(HAVE_ZLIB),1)
611 # Tell make that we need to rebuild subdirectories before we can link the tool.
612 # This affects things like LLI which has library subdirectories.
613 $(TOOLEXENAME): $(addsuffix /.makeall, $(PARALLEL_DIRS))
615 all-local:: $(TOOLEXENAME)
618 ifneq ($(strip $(TOOLEXENAME)),)
619 $(VERB) $(RM) -f $(TOOLEXENAME)
622 $(TOOLEXENAME): $(BUILT_SOURCES) $(ObjectsO) $(PROJ_LIBS_PATHS) $(LLVM_LIBS_PATHS) $(TOOLDIR)/.dir
623 @$(ECHO) Linking $(CONFIGURATION) executable $(TOOLNAME) $(STRIP_WARN_MSG)
624 $(VERB) $(Link) -o $@ $(ObjectsO) $(PROJ_LIBS_OPTIONS) $(LLVM_LIBS_OPTIONS) $(LIBS)
625 @$(ECHO) ======= Finished Linking $(CONFIGURATION) Executable $(TOOLNAME) $(STRIP_WARN_MSG)
627 DestTool = $(bindir)/$(TOOLNAME)
629 install-local:: install-tool
631 install-tool: $(bindir) $(DestTool)
633 $(DestTool): $(TOOLEXENAME)
634 @$(ECHO) Installing $(CONFIGURATION) $(DestTool)
635 $(VERB) $(INSTALL) $(TOOLEXENAME) $(DestTool)
638 $(VERB) $(MKDIR) $(bindir)
640 uninstall-local:: uninstall-tool
643 @$(ECHO) Uninstalling $(CONFIGURATION) $(DestTool)
644 $(VERB) $(RM) -f $(DestTool)
648 ifndef DISABLE_AUTO_DEPENDENCIES
650 # Create .lo files in the OBJDIR directory from the .cpp and .c files...
653 $(OBJDIR)/%.lo $(OBJDIR)/%.o: %.cpp $(OBJDIR)/.dir
654 @$(ECHO) "Compiling $*.cpp (PIC)"
655 $(VERB) if $(LTCompile.CXX) -MD -MT $@ -MP -MF $(OBJDIR)/$*.LACXXd $< -o $@ ; \
656 then $(MV) -f "$(OBJDIR)/$*.LACXXd" "$(OBJDIR)/$*.d"; \
657 else $(RM) -f "$(OBJDIR)/$*.LACXXd"; exit 1; fi
659 $(OBJDIR)/%.lo $(OBJDIR)/%.o: %.c $(OBJDIR)/.dir
660 @$(ECHO) "Compiling $*.c (PIC)"
661 $(VERB) if $(LTCompile.C) -MD -MT $@ -MP -MF $(OBJDIR)/$*.LACd $< -o $@ ; \
662 then $(MV) -f "$(OBJDIR)/$*.LACd" "$(OBJDIR)/$*.d"; \
663 else $(RM) -f "$(OBJDIR)/$*.LACd"; exit 1; fi
667 $(OBJDIR)/%.o: %.cpp $(OBJDIR)/.dir
668 @$(ECHO) "Compiling $*.cpp"
669 $(VERB) if $(Compile.CXX) -MD -MT $@ -MP -MF $(OBJDIR)/$*.CXXd $< -o $@ ; \
670 then $(MV) -f "$(OBJDIR)/$*.CXXd" "$(OBJDIR)/$*.d"; \
671 else $(RM) -f "$(OBJDIR)/$*.CXXd"; exit 1; fi
673 $(OBJDIR)/%.o: %.c $(OBJDIR)/.dir
674 @$(ECHO) "Compiling $*.c"
675 $(VERB) if $(Compile.C) -MD -MT $@ -MP -MF $(OBJDIR)/$*.Cd $< -o $@ ; \
676 then $(MV) -f "$(OBJDIR)/$*.Cd" "$(OBJDIR)/$*.d"; \
677 else $(RM) -f "$(OBJDIR)/$*.Cd"; exit 1; fi
681 # Create .bc files in the OBJDIR directory from .cpp and .c files...
682 $(OBJDIR)/%.bc: %.cpp $(OBJDIR)/.dir
683 @$(ECHO) "Compiling $*.cpp (bytecode)"
684 $(VERB) if $(BCCompile.CXX) -MD -MT $@ -MP -MF "$(OBJDIR)/$*.BCCXXd" $< -o $@ ; \
685 then $(MV) -f "$(OBJDIR)/$*.BCCXXd" "$(OBJDIR)/$*.d"; \
686 else $(RM) -f "$(OBJDIR)/$*.BCCXXd"; exit 1; fi
688 $(OBJDIR)/%.bc: %.c $(OBJDIR)/.dir
689 @$(ECHO) "Compiling $*.c (bytecode)"
690 $(VERB) if $(BCCompile.C) -MD -MT $@ -MP -MF "$(OBJDIR)/$*.BCCd" $< -o $@ ; \
691 then $(MV) -f "$(OBJDIR)/$*.BCCd" "$(OBJDIR)/$*.d"; \
692 else $(RM) -f "$(OBJDIR)/$*.BCCd"; exit 1; fi
698 $(OBJDIR)/%.lo $(OBJDIR)/%.o: %.cpp $(OBJDIR)/.dir
699 @$(ECHO) "Compiling $*.cpp (PIC)"
700 $(LTCompile.CXX) $< -o $@
702 $(OBJDIR)/%.lo $(OBJDIR)/%.o: %.c $(OBJDIR)/.dir
703 @$(ECHO) "Compiling $*.cpp (PIC)"
704 $(LTCompile.C) $< -o $@
708 $(OBJDIR)/%.o: %.cpp $(OBJDIR)/.dir
709 @$(ECHO) "Compiling $*.cpp"
710 $(Compile.CXX) $< -o $@
712 $(OBJDIR)/%.o: %.c $(OBJDIR)/.dir
713 @$(ECHO) "Compiling $*.cpp"
714 $(Compile.C) $< -o $@
717 # Create .bc files in the OBJDIR directory from .cpp and .c files...
718 $(OBJDIR)/%.bc: %.cpp $(OBJDIR)/.dir
719 @$(ECHO) "Compiling $*.cpp (bytecode)"
720 $(BCCompileCPP) $< -o $@
722 $(OBJDIR)/%.bc: %.c $(OBJDIR)/.dir
723 @$(ECHO) "Compiling $*.c (bytecode)"
724 $(BCCompileC) $< -o $@
728 $(OBJDIR)/%.bc: %.ll $(OBJDIR)/.dir $(LLVMAS)
729 @$(ECHO) "Compiling $*.ll"
730 $(VERB) $(LLVMAS) $< -f -o $@
734 TDFILES := $(strip $(wildcard $(BUILD_SRC_DIR)/*.td) $(LLVM_SRC_ROOT)/lib/Target/Target.td)
735 INCFILES := $(filter %.inc,$(BUILT_SOURCES))
737 $(INCFILES) : $(TBLGEN) $(TDFILES)
739 %GenRegisterNames.inc : %.td
740 @echo "Building $(<F) register names with tblgen"
741 $(VERB) $(TableGen) -gen-register-enums -o $@ $<
743 %GenRegisterInfo.h.inc : %.td
744 @echo "Building $(<F) register information header with tblgen"
745 $(VERB) $(TableGen) -gen-register-desc-header -o $@ $<
747 %GenRegisterInfo.inc : %.td
748 @echo "Building $(<F) register info implementation with tblgen"
749 $(VERB) $(TableGen) -gen-register-desc -o $@ $<
751 %GenInstrNames.inc : %.td
752 @echo "Building $(<F) instruction names with tblgen"
753 $(VERB) $(TableGen) -gen-instr-enums -o $@ $<
755 %GenInstrInfo.inc : %.td
756 @echo "Building $(<F) instruction information with tblgen"
757 $(VERB) $(TableGen) -gen-instr-desc -o $@ $<
759 %GenAsmWriter.inc : %.td
760 @echo "Building $(<F) assembly writer with tblgen"
761 $(VERB) $(TableGen) -gen-asm-writer -o $@ $<
763 %GenATTAsmWriter.inc : %.td
764 @echo "Building $(<F) AT&T assembly writer with tblgen"
765 $(VERB) $(TableGen) -gen-asm-writer -o $@ $<
767 %GenIntelAsmWriter.inc : %.td
768 @echo "Building $(<F) Intel assembly writer with tblgen"
769 $(VERB) $(TableGen) -gen-asm-writer -asmwriternum=1 -o $@ $<
771 %GenInstrSelector.inc: %.td
772 @echo "Building $(<F) instruction selector with tblgen"
773 $(VERB) $(TableGen) -gen-instr-selector -o $@ $<
775 %GenCodeEmitter.inc:: %.td
776 @echo "Building $(<F) code emitter with tblgen"
777 $(VERB) $(TableGen) -gen-emitter -o $@ $<
785 # Rules for building lex/yacc files
787 LEX_FILES = $(filter %.l, $(SOURCES))
788 LEX_OUTPUT = $(LEX_FILES:%.l=%.cpp)
789 YACC_FILES = $(filter %.y, $(SOURCES))
790 YACC_OUTPUT = $(addprefix $(YACC_FILES:%.y=%), .h .cpp .output)
791 .PRECIOUS: $(LEX_OUTPUT) $(YACC_OUTPUT)
793 # Create a .cpp source file from a flex input file... this uses sed to cut down
794 # on the warnings emited by GCC...
796 # The last line is a gross hack to work around flex aparently not being able to
797 # resize the buffer on a large token input. Currently, for uninitialized string
798 # buffers in LLVM we can generate very long tokens, so this is a hack around it.
799 # FIXME. (f.e. char Buffer[10000] )
803 $(VERB) $(FLEX) -t $< | \
804 $(SED) '/^find_rule/d' | \
805 $(SED) 's/void yyunput/inline void yyunput/' | \
806 $(SED) 's/void \*yy_flex_realloc/inline void *yy_flex_realloc/' | \
807 $(SED) 's/#define YY_BUF_SIZE 16384/#define YY_BUF_SIZE (16384*64)/' \
809 $(VERB) cmp -s $@ $@.tmp > /dev/null || $(MV) -f $@.tmp $@
810 @# remove the output of flex if it didn't get moved over...
813 # Rule for building the bison parsers...
814 %.c: %.y # Cancel built-in rules for yacc
815 %.h: %.y # Cancel built-in rules for yacc
817 @$(ECHO) "Bisoning $*.y"
818 $(VERB) $(BISON) -v -d -p $(<F:%Parser.y=%) -o $*.tab.c $<
819 $(VERB) cmp -s $*.tab.c $*.cpp > /dev/null || $(MV) -f $*.tab.c $*.cpp
820 $(VERB) cmp -s $*.tab.h $*.h > /dev/null || $(MV) -f $*.tab.h $*.h
821 @# If the files were not updated, don't leave them lying around...
822 @rm -f $*.tab.c $*.tab.h
824 # To create the directories...
826 $(VERB) $(MKDIR) $* > /dev/null
829 .PRECIOUS: $(OBJDIR)/.dir $(LIBDIR)/.dir $(TOOLDIR)/.dir $(LLVMLIBDIR)/.dir
830 .PRECIOUS: $(LLVMTOOLDIR)/.dir
832 # To create postscript files from dot files...
835 $(DOT) -Tps < $< > $@
838 $(ECHO) "Cannot build $@: The program dot is not installed"
842 # This rules ensures that header files that are removed still have a rule for
843 # which they can be "generated." This allows make to ignore them and
844 # reproduce the dependency lists.
848 # 'make clean' nukes the tree
850 ifneq ($(strip $(OBJDIR)),)
851 $(VERB) $(RM) -rf $(OBJDIR)
853 $(VERB) $(RM) -f core core.[0-9][0-9]* *.o *.d *~ *.flc
854 ifneq ($(strip $(SHLIBEXT)),) # Extra paranoia - make real sure SHLIBEXT is set
855 $(VERB) $(RM) -f *$(SHLIBEXT)
857 ifneq ($(strip $(LEX_OUTPUT)),)
858 $(VERB) $(RM) -f $(LEX_OUTPUT)
860 ifneq ($(strip $(YACC_OUTPUT)),)
861 $(VERB) $(RM) -f $(YACC_OUTPUT)
864 ###############################################################################
865 # DEPENDENCIES: Include the dependency files if we should
866 ###############################################################################
867 ifndef DISABLE_AUTO_DEPENDENCIES
869 # If its not one of the cleaning targets
870 ifneq ($strip($(filter-out clean clean-local dist-clean, $(MAKECMDGOALS))),)
872 # Get the list of dependency files
873 DependFiles := $(basename $(filter %.cpp %.c %.cc, $(SOURCES)))
874 DependFiles := $(patsubst %,$(BUILD_OBJ_DIR)/$(CONFIGURATION)/%.d,$(DependFiles))
876 -include /dev/null $(DependFiles)
880 endif # ifndef DISABLE_AUTO_DEPENDENCIES
882 ###############################################################################
883 # Handle construction of a distribution tarball
884 ###############################################################################
886 .PHONY: dist dist-chck dist-clean distdir dist-gzip dist-bzip2 dist-zip
888 #------------------------------------------------------------------------
889 # Define distribution related variables
890 #------------------------------------------------------------------------
891 DistName := $(LLVM_TARBALL_NAME)
892 DistDir := $(BUILD_OBJ_ROOT)/$(DistName)
893 TopDistDir := $(BUILD_OBJ_ROOT)/$(DistName)
894 DistTarGZip := $(BUILD_OBJ_ROOT)/$(DistName).tar.gz
895 DistZip := $(BUILD_OBJ_ROOT)/$(DistName).zip
896 DistTarBZ2 := $(BUILD_OBJ_ROOT)/$(DistName).tar.bz2
897 DistAlways := CREDITS.TXT LICENSE.TXT README.txt README AUTHORS COPYING \
898 ChangeLog INSTALL NEWS Makefile Makefile.common Makefile.rules \
899 Makefile.config.in configure autoconf
900 DistOther := $(notdir $(wildcard \
901 $(BUILD_SRC_DIR)/*.h \
902 $(BUILD_SRC_DIR)/*.td \
903 $(BUILD_SRC_DIR)/*.def \
904 $(BUILD_SRC_DIR)/*.ll \
905 $(BUILD_SRC_DIR)/*.in))
906 DistSources := $(SOURCES) $(EXTRA_DIST)
907 DistSubDirs := $(SUBDIRS)
908 DistFiles := $(DistAlways) $(DistSources) $(DistOther)
911 #------------------------------------------------------------------------
912 # We MUST build distribution with OBJ_DIR != SRC_DIR
913 #------------------------------------------------------------------------
914 ifeq ($(BUILD_SRC_DIR),$(BUILD_OBJ_DIR))
915 dist dist-check dist-clean dist-gzip dist-bzip2 dist-zip ::
916 @$(ECHO) ERROR: Target $@ only available with OBJ_DIR != SRC_DIR
921 DistCheckTop := check
922 #------------------------------------------------------------------------
923 # Prevent catastrophic remove
924 #------------------------------------------------------------------------
925 ifeq ($(LLVM_TARBALL_NAME),)
926 $(error LLVM_TARBALL_NAME is empty. Please rerun configure)
929 #------------------------------------------------------------------------
930 # Prevent attempt to run dist targets from anywhere but the top level
931 #------------------------------------------------------------------------
934 dist dist-check dist-clean dist-gzip dist-bzip2 dist-zip ::
935 @$(ECHO) ERROR: You must run $@ from $(BUILD_OBJ_ROOT)
939 #------------------------------------------------------------------------
940 # Provide the top level targets
941 #------------------------------------------------------------------------
943 dist-gzip: $(DistTarGZip)
945 $(DistTarGZip) : distdir
946 @$(ECHO) Packing gzipped distribution tar file.
947 $(VERB) cd $(BUILD_OBJ_ROOT) ; $(TAR) chf - "$(DistName)" | gzip -c > "$(DistTarGZip)"
949 dist-bzip2: $(DistTarBZ2)
951 $(DistTarBZ2) : distdir
952 @$(ECHO) Packing bzipped distribution tar file.
953 $(VERB) cd $(BUILD_OBJ_ROOT) ; $(TAR) chf - $(DistName) | $(BZIP2) -c >$(DistTarBZ2)
958 @$(ECHO) Packing zipped distribution file.
959 $(VERB) rm -f $(DistZip)
960 $(VERB) cd $(BUILD_OBJ_ROOT) ; $(ZIP) -rq $(DistZip) $(DistName)
962 dist :: $(DistTarGZip) $(DistTarBZ2) $(DistZip)
963 @$(ECHO) ===== DISTRIBUTION PACKAGING SUCESSFUL =====
965 DistCheckDir := $(LLVM_OBJ_ROOT)/_distcheckdir
967 dist-check:: $(DistCheckTop) $(DistTarGZip)
968 @$(ECHO) Checking distribution tar file.
969 $(VERB) if test -d $(DistCheckDir) ; then \
970 $(RM) -rf $(DistCheckDir) ; \
972 $(VERB) $(MKDIR) $(DistCheckDir)
973 $(VERB) cd $(DistCheckDir) && \
974 $(MKDIR) $(DistCheckDir)/build && \
975 $(MKDIR) $(DistCheckDir)/install && \
976 gunzip -c $(DistTarGZip) | $(TAR) xf - && \
978 ../$(DistName)/configure --prefix="$(DistCheckDir)/install" \
979 --srcdir=../$(DistName) --with-llvmgccdir="$(LLVMGCCDIR)" && \
982 $(MAKE) uninstall && \
985 $(MAKE) dist-clean && \
986 $(ECHO) ===== $(DistTarGZip) Ready For Distribution =====
989 @$(ECHO) Cleaning distribution files
990 $(VERB) $(RM) -rf $(DistTarGZip) $(DistTarBZ2) $(DistZip) $(DistName) $(DistCheckDir)
994 #------------------------------------------------------------------------
995 # Provide the recursive distdir target for building the distribution directory
996 #------------------------------------------------------------------------
997 distdir : $(DistSources)
998 @$(ECHO) Building Distribution Directory $(DistDir)
999 $(VERB) if test "$(DistDir)" = "$(TopDistDir)" ; then \
1000 if test -d "$(DistDir)" ; then \
1001 find $(DistDir) -type d ! -perm -200 -exec chmod u+w {} ';' || \
1004 echo Removing $(DistDir) ; \
1005 $(RM) -rf $(DistDir); \
1007 $(VERB) $(MKDIR) $(DistDir)
1008 $(VERB) srcdirstrip=`echo "$(BUILD_SRC_DIR)" | sed 's|.|.|g'`; \
1009 srcrootstrip=`echo "$(BUILD_SRC_ROOT)" | sed 's|.|.|g'`; \
1010 for file in $(DistFiles) ; do \
1012 $(BUILD_SRC_DIR)/*) file=`echo "$$file" | sed "s#^$$srcdirstrip/##"`;; \
1013 $(BUILD_SRC_ROOT)/*) file=`echo "$$file" | sed "s#^$$srcrootstrip/#$(BUILD_OBJ_ROOT)/#"`;; \
1015 if test -f "$$file" || test -d "$$file" ; then \
1018 from_dir=$(BUILD_SRC_DIR); \
1020 to_dir=`echo "$$file" | sed -e 's#/[^/]*$$##'`; \
1021 if test "$$to_dir" != "$$file" && test "$$to_dir" != "."; then \
1022 to_dir="$(DistDir)/$$dir"; \
1023 $(MKDIR) "$$to_dir" ; \
1025 to_dir="$(DistDir)"; \
1027 mid_dir=`echo "$$file" | sed -n -e 's#^\(.*\)/[^/]*$$#\1#p'`; \
1028 if test -n "$$mid_dir" ; then \
1029 $(MKDIR) "$$to_dir/$$mid_dir" || exit 1; \
1031 if test -d "$$from_dir/$$file"; then \
1032 if test -d "$(BUILD_SRC_DIR)/$$file" && \
1033 test "$$from_dir" != "$(BUILD_SRC_DIR)" ; then \
1034 cp -pR "$(BUILD_SRC_DIR)/$$file" "$$to_dir" || exit 1; \
1036 cp -pR $$from_dir/$$file $$to_dir || exit 1; \
1037 elif test -f "$$from_dir/$$file" ; then \
1038 cp -p "$$from_dir/$$file" "$(DistDir)/$$file" || exit 1; \
1039 elif test -L "$$from_dir/$$file" ; then \
1040 cp -pd "$$from_dir/$$file" $(DistDir)/$$file || exit 1; \
1041 elif echo "$(DistAlways)" | grep -v "$$file" >/dev/null ; then \
1042 $(ECHO) "===== WARNING: Distribution Source $$from_dir/$$file Not Found!" ; \
1043 elif test "$(VERB)" != '@' ; then \
1044 $(ECHO) "Skipping non-existent $$from_dir/$$file" ; \
1047 $(VERB) for subdir in $(DistSubDirs) ; do \
1048 if test "$$subdir" \!= "." ; then \
1049 new_distdir="$(DistDir)/$$subdir" ; \
1050 test -d "$$new_distdir" || $(MKDIR) "$$new_distdir" || exit 1; \
1051 ( cd $$subdir && $(MAKE) DistDir="$$new_distdir" distdir ) || exit 1; \
1054 $(VERB) $(MAKE) DistDir="$(DistDir)" dist-hook || exit 1
1055 -$(VERB) find $(DistDir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
1056 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
1057 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
1058 ! -type d ! -perm -444 -exec $(SHELL) $(INSTALL_SH) -c -m a+r {} {} \; \
1059 || chmod -R a+r $(DistDir)
1066 ###############################################################################
1067 # TOP LEVEL - targets only to apply at the top level directory
1068 ###############################################################################
1072 #------------------------------------------------------------------------
1073 # Install support for project's include files:
1074 #------------------------------------------------------------------------
1076 @$(ECHO) Installing include files
1077 $(VERB) $(MKDIR) $(includedir)
1078 $(VERB) if [ -d "$(BUILD_SRC_ROOT)/include" ] ; then \
1079 cd $(BUILD_SRC_ROOT)/include && \
1080 find . -path '*/Internal' -prune -o '(' -type f \
1081 '!' '(' -name '*~' -o -name '.cvsignore' -o -name '.#*' ')' \
1082 -print ')' | grep -v CVS | pax -rwdvpe $(includedir) ; \
1086 @$(ECHO) Uninstalling include files
1087 $(VERB) if [ -d "$(BUILD_SRC_ROOT)/include" ] ; then \
1088 cd $(BUILD_SRC_ROOT)/include && \
1089 $(RM) -f `find . -path '*/Internal' -prune -o '(' -type f \
1090 '!' '(' -name '*~' -o -name '.cvsignore' -o -name '.#*' ')' \
1091 -print ')' | grep -v CVS | sed 's#^#$(includedir)/#'` ; \
1094 #------------------------------------------------------------------------
1095 # Build tags database for Emacs/Xemacs:
1096 #------------------------------------------------------------------------
1100 find include lib tools examples -name '*.cpp' -o -name '*.h' | $(ETAGS) $(ETAGSFLAGS) -
1104 ###############################################################################
1105 # MISCELLANEOUS - utility targets
1106 ###############################################################################
1108 #------------------------------------------------------------------------
1109 # Print out the directories used for building
1111 @$(ECHO) "CONFIGURATION : " $(CONFIGURATION)
1112 @$(ECHO) "BUILD_SRC_ROOT: " $(BUILD_SRC_ROOT)
1113 @$(ECHO) "BUILD_SRC_DIR : " $(BUILD_SRC_DIR)
1114 @$(ECHO) "BUILD_OBJ_ROOT: " $(BUILD_OBJ_ROOT)
1115 @$(ECHO) "BUILD_OBJ_DIR : " $(BUILD_OBJ_DIR)
1116 @$(ECHO) "LLVM_SRC_ROOT : " $(LLVM_SRC_ROOT)
1117 @$(ECHO) "LLVM_OBJ_ROOT : " $(LLVM_OBJ_ROOT)
1118 @$(ECHO) "libdir : " $(libdir)
1119 @$(ECHO) "bindir : " $(bindir)
1120 @$(ECHO) "sysconfdir : " $(sysconfdir)
1121 @$(ECHO) "bytecode_libdir : " $(bytecode_libdir)
1122 @$(ECHO) "USER_TARGETS : " $(USER_TARGETS)
1123 @$(ECHO) "OBJMKFILES: $(OBJMKFILES)"
1124 @$(ECHO) "SRCMKFILES: $(SRCMKFILES)"
1125 @$(ECHO) "OBJDIR: " $(OBJDIR)
1126 @$(ECHO) "LIBDIR: " $(LIBDIR)
1127 @$(ECHO) "TOOLDIR: " $(TOOLDIR)
1128 @$(ECHO) "TDFILES:" '$(TDFILES)'
1129 @$(ECHO) "Compile.CXX: " '$(Compile.CXX)'
1130 @$(ECHO) "Compile.C: " '$(Compile.C)'