# @echo $(subst $$,\$$, $(OBJECTS))
all: $(LIBS)
+ @echo $(LIBS)
+ @echo '$(OBJECTS)'
$(ORG_OBJDIR)/lastrun: $(ORG_LIBDIR)/*
@if [ ! -d $(OBJ_DIR) ]; then mkdir $(OBJ_DIR); fi
# @$(MAKE) $(subst $$,\$$,$?)
$(OBJECT_FILES):$(OBJ_DIR)/%.obj : $(SRC_DIR)/%.asm
-# @echo Building: $(subst $$,\$$,$@)
+ @echo Building: $(subst $$,\$$,$@)
@if [ ! -d $(OBJ_DIR) ]; then mkdir $(OBJ_DIR); fi
@ rm -f $@
@ cd $(OBJ_DIR) && $(ASM_COMMAND) ../$(subst $$,\$$,$^) $(LISTING)
@ cd $(OBJ_DIR) && $(LDC_COMMAND) $(notdir $(subst $$,\$$,$@))
-$(LIBS):$(LIB_DIR)/%.lib: $(RECIPE_DIR)/%$(RECIPE_SUFFIX) $(OBJECTS)
+$(LIBS):$(LIB_DIR)/%.lib: $(RECIPE_DIR)/%$(RECIPE_SUFFIX) $(OBJECT_FILES) $(OBJECTS)
@./buildlib.sh genlib $(RECIPE_DIR)/$(basename $(notdir $@))$(RECIPE_SUFFIX)
src/font.asm: font.config fonts/*.asm