22 lines
512 B
Makefile
Executable File
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
|