CloverBootloader/CloverPackage/utils/nvram/Makefile
Slice 2cbf0e9b2c save more nvram variables for legacy boot
Signed-off-by: Slice <sergey.slice@gmail.com>
2023-08-31 23:12:58 +03:00

27 lines
618 B
Makefile

PROGRAM = nvram2
SRCROOT := $(abspath $(CURDIR)/..)
SYMROOT := $(abspath $(CURDIR)/../../sym)
OBJROOT := $(SYMROOT)/build/$(PROGRAM)
INSTALL_DIR_NAME=utils
UTILSDIR= $(SYMROOT)/$(INSTALL_DIR_NAME)
SRC := $(wildcard $(PROGRAM)/*.c)
PROG := $(addprefix $(UTILSDIR)/, $(PROGRAM))
all: $(PROG)
$(PROG): $(SRC)
@echo "\t[CXX] $(PROGRAM)"
@cc -o $(PROGRAM) $(PROGRAM).c -framework CoreFoundation -framework IOKit -Wall >/dev/null
@mv $(PROGRAM) $(UTILSDIR)
install-local: $(PROG)
@sudo install -d -g 0 -o 0 /usr/local/bin
@sudo install -psv -g 0 -o 0 $(PROG) /usr/local/bin
clean-local:
@rm -rf $(OBJROOT) *~