"Fossies" - the Fresh Open Source Software Archive

Member "stella-6.0.2/common.rules" (11 Oct 2019, 1102 Bytes) of package /linux/privat/stella-6.0.2-src.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # Common build rules, used by the sub modules and their module.mk files
    2 
    3 # Copy the list of objects to a new variable. The name of the new variable
    4 # contains the module name, a trick we use so we can keep multiple different
    5 # module object lists, one for each module.
    6 MODULE_OBJS-$(MODULE) := $(MODULE_OBJS)
    7 
    8 MODULE_LIB-$(MODULE) := $(MODULE)/lib$(notdir $(MODULE)).a
    9 
   10 # If not building as a plugin, add the object files to the main OBJS list
   11 #OBJS += $(MODULE_LIB-$(MODULE))
   12 OBJS += $(MODULE_OBJS)
   13 
   14 # Convenience library target
   15 #$(MODULE_LIB-$(MODULE)): $(MODULE_OBJS)
   16 #	-$(RM) $@
   17 #	$(AR) $@ $+
   18 #	$(RANLIB) $@ 
   19 
   20 # Pseudo target for comfort, allows for "make common", "make gui" etc.
   21 #$(MODULE): $(MODULE_LIB-$(MODULE))
   22 
   23 
   24 # Clean target, removes all object files. This looks a bit hackish, as we have to
   25 # copy the content of MODULE_OBJS to another unique variable (the next module.mk
   26 # will overwrite it after all). The same for the libMODULE.a library file.
   27 clean: clean-$(MODULE)
   28 clean-$(MODULE): clean-% :
   29 	-$(RM) $(MODULE_OBJS-$*) $(MODULE_LIB-$*) $(PLUGIN-$*)
   30 
   31 .PHONY: clean-$(MODULE) $(MODULE)