mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-26 23:32:58 +00:00
Added the OPTIONAL_DIRS variable for specifying optional directories to build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6926 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
acd48e4383
commit
2a6530f91a
@ -40,6 +40,7 @@
|
|||||||
#
|
#
|
||||||
#===-----------------------------------------------------------------------====
|
#===-----------------------------------------------------------------------====
|
||||||
|
|
||||||
|
#
|
||||||
# Configuration file to set paths specific to local installation of LLVM
|
# Configuration file to set paths specific to local installation of LLVM
|
||||||
#
|
#
|
||||||
include $(LEVEL)/Makefile.config
|
include $(LEVEL)/Makefile.config
|
||||||
@ -340,6 +341,16 @@ test :: $(addsuffix /.maketest , $(PARALLEL_DIRS))
|
|||||||
$(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
|
$(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef OPTIONAL_DIRS
|
||||||
|
all install clean test ::
|
||||||
|
$(VERB) for dir in ${OPTIONAL_DIRS}; do \
|
||||||
|
if [ -d $$dir ]; \
|
||||||
|
then\
|
||||||
|
(cd $$dir; $(MAKE) $@) || exit 1; \
|
||||||
|
fi \
|
||||||
|
done
|
||||||
|
endif
|
||||||
|
|
||||||
#---------------------------------------------------------
|
#---------------------------------------------------------
|
||||||
# Handle the LIBRARYNAME option - used when building libs...
|
# Handle the LIBRARYNAME option - used when building libs...
|
||||||
#---------------------------------------------------------
|
#---------------------------------------------------------
|
||||||
@ -489,6 +500,7 @@ $(USED_LIB_PATHS_G) $(USED_LIB_PATHS_O) $(USED_LIB_PATHS_P): \
|
|||||||
$(addsuffix /.makeall, $(PARALLEL_DIRS))
|
$(addsuffix /.makeall, $(PARALLEL_DIRS))
|
||||||
|
|
||||||
all:: $(TOOLEXENAMES)
|
all:: $(TOOLEXENAMES)
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
$(VERB) rm -f $(TOOLEXENAMES)
|
$(VERB) rm -f $(TOOLEXENAMES)
|
||||||
|
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
#
|
#
|
||||||
#===-----------------------------------------------------------------------====
|
#===-----------------------------------------------------------------------====
|
||||||
|
|
||||||
|
#
|
||||||
# Configuration file to set paths specific to local installation of LLVM
|
# Configuration file to set paths specific to local installation of LLVM
|
||||||
#
|
#
|
||||||
include $(LEVEL)/Makefile.config
|
include $(LEVEL)/Makefile.config
|
||||||
@ -340,6 +341,16 @@ test :: $(addsuffix /.maketest , $(PARALLEL_DIRS))
|
|||||||
$(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
|
$(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef OPTIONAL_DIRS
|
||||||
|
all install clean test ::
|
||||||
|
$(VERB) for dir in ${OPTIONAL_DIRS}; do \
|
||||||
|
if [ -d $$dir ]; \
|
||||||
|
then\
|
||||||
|
(cd $$dir; $(MAKE) $@) || exit 1; \
|
||||||
|
fi \
|
||||||
|
done
|
||||||
|
endif
|
||||||
|
|
||||||
#---------------------------------------------------------
|
#---------------------------------------------------------
|
||||||
# Handle the LIBRARYNAME option - used when building libs...
|
# Handle the LIBRARYNAME option - used when building libs...
|
||||||
#---------------------------------------------------------
|
#---------------------------------------------------------
|
||||||
@ -489,6 +500,7 @@ $(USED_LIB_PATHS_G) $(USED_LIB_PATHS_O) $(USED_LIB_PATHS_P): \
|
|||||||
$(addsuffix /.makeall, $(PARALLEL_DIRS))
|
$(addsuffix /.makeall, $(PARALLEL_DIRS))
|
||||||
|
|
||||||
all:: $(TOOLEXENAMES)
|
all:: $(TOOLEXENAMES)
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
$(VERB) rm -f $(TOOLEXENAMES)
|
$(VERB) rm -f $(TOOLEXENAMES)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user