Changeset 126 for trunk/kBuild


Ignore:
Timestamp:
Jun 26, 2004, 12:13:54 AM (21 years ago)
Author:
bird
Message:

implemented publish for libraries.

Location:
trunk/kBuild
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r122 r126  
    630630$(eval outbase     := $(call _TARGET_BASE,$(target),$(target)))
    631631$(eval PATH_$(target) := $(patsubst %/,%,$(dir $(outbase))))
     632$(eval libsuff     := $(firstword\
     633        $($(target)_LIBSUFF.$(BUILD_TARGET))\
     634        $($(target)_LIBSUFF)\
     635        $(TOOL_$(tool)_ARLIBSUFF.$(BUILD_TARGET))\
     636        $(TOOL_$(tool)_ARLIBSUFF)\
     637        $(SUFF_LIB)\
     638))
    632639$(eval lib         := $(outbase)$(libsuff))
    633640$(eval flags       :=\
     
    639646        $($(target)_ARFLAGS.$(BUILD_TYPE))\
    640647        )
    641 $(eval libsuff     := $(firstword\
    642         $($(target)_LIBSUFF.$(BUILD_TARGET))\
    643         $($(target)_LIBSUFF)\
    644         $(TOOL_$(tool)_ARLIBSUFF.$(BUILD_TARGET))\
    645         $(TOOL_$(tool)_ARLIBSUFF)\
    646         $(SUFF_LIB)\
    647 ))
    648648$(eval objs         = $(_OBJS_$(target)))
    649649$(eval othersrc    := $(filter-out %.c %.cpp %.cxx %.cc %.s %.S %.asm,$($(target)_SOURCES) $($(target)_SOURCES.$(BUILD_TARGET)) $($(target)_SOURCES.$(BUILD_MODE))))
     
    654654$(eval $(TOOL_$(tool)_LINK_LIBRARY))
    655655
    656 _OBJS += $(_OBJS_$(target))
     656# publish rule (still need work)
     657ifndef $(target)_noinst
     658$(eval publib := $(PATH_LIB)/$(notdir $(lib)))
     659$(publib) : $(lib) $(dir $(publib)).dir_created
     660        $(CP) $(lib) $(publib)
     661       
     662_LIBS += $(publib)
     663_OUT_FILES += $(lib) $(publib)
     664else
    657665_LIBS += $(lib)
    658666_OUT_FILES += $(lib)
     667endif
     668_OBJS += $(_OBJS_$(target))
    659669endef
    660670
     
    9931003# Directories.
    9941004#
    995 _OUTPUT_FILES := $(_OBJS) $(_LIBS) $(_EXES) $(_DLLS) $(_SYSMODS)
    996 _DIRFILES := $(sort $(addsuffix /.dir_created,$(_DIRS)) $(addsuffix .dir_created,$(dir $(_OUTPUT_FILES))))
     1005$(warning _OUT_FILES=$(_OUT_FILES))
     1006_DIRFILES := $(sort $(addsuffix /.dir_created,$(_DIRS)) $(addsuffix .dir_created,$(dir $(_OUT_FILES) $(_OBJS))))
     1007$(warning _DIRFILES=$(_DIRFILES))
    9971008
    9981009define def_createdir
  • trunk/kBuild/tools/GCC3.kmk

    r124 r126  
    124124        $(RM) -f $$@
    125125        $(TOOL_GCC3_AR) $(flags) $$@ $(objs)
    126         $(MKDIR) -p $(PATH_LIB)
    127         $(CP) $$@ $(PATH_LIB)/
    128126       
    129127endef
  • trunk/kBuild/tools/MINGW32.kmk

    r123 r126  
    148148        $(RM) -f $$@
    149149        $(TOOL_MINGW32_AR) $(flags) $$@ $(objs)
    150         $(MKDIR) -p $(PATH_LIB)
    151         $(CP) $$@ $(PATH_LIB)/
    152150       
    153151endef
  • trunk/kBuild/tools/VCC70.kmk

    r112 r126  
    130130        $(TOOL_VCC70_AR) $(flags) /OUT:$(call CYGPATHMIXED,$(lib)) $(subst /,\\,$(call CYGPATHMIXED,$(objs))) \
    131131                $(foreach def,$(filter %.def,$(othersrc)), /DEF:$(call CYGPATHMIXED,$(def)))
    132         $(MKDIR) -p $(PATH_LIB)
    133         $(CP) $$@ $(PATH_LIB)/
    134132       
    135133endef
Note: See TracChangeset for help on using the changeset viewer.