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

implemented publish for libraries.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.