SubDir TOP sc source ui unoobj ;

# All variables assigned in local scope to avoid clashes

{
    local TARGET = unoobj ;


    CXXFLAGS on sc-unoobj += [ FDefines EXCEPTIONS_ON ] $(CXXFLAGS_EXCEPTIONS) ;

    CXXFILES_NOLIB =
        scdetect.cxx
        detreg.cxx
        ;

    CXXFILES_LIB =
        [ Glob $(SEARCH_SOURCE) : *.cxx : $(CXXFILES_NOLIB) ] ;

    CXXFILES on sc-unoobj =
        $(CXXFILES_NOLIB)
        $(CXXFILES_LIB)
        ;

    if "$(OS)$(COM)$(CPUNAME)"="LINUXGCCSPARC" {
        NOOPTFILES on sc-unoobj = cellsuno.cxx ;
    }
    CxxSourceDirCompile sc unoobj ;

    CxxTargetLib sc unoobj : unoobj : $(CXXFILES_LIB:S=$(SUFOBJ):D=) ;
}

