Files
core_make/tjp/Make/Makefile.build_lib
Timothy Prepscius 46185db8f0 flatten 20260225
2026-02-25 12:34:54 -05:00

22 lines
512 B
Makefile
Executable File

###################################
# License: Modified MIT (NON-AI)
# Copyright 2025 Timothy Prepscius
# See the LICENSE file in the root directory for license information.
###################################
SELF_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
LIB := $(OBJPATH)/$(LIBFILE)
$(LIB) : $(OBJ)
$(AR) $(ARFLAGS) $(LIB) $(OBJ)
ifneq ($(COPYTO),)
-@mkdir -p $(COPYTO)/$(OBJDIR)
@while [ ! -e $(COPYTO)/$(OBJDIR) ]; do sleep 0.1; done
cp -p $(LIB) $(COPYTO)/$(OBJDIR)
endif
lib : $(LIB)
build: lib