2023-08-31 22:12:58 +02:00
|
|
|
|
|
|
|
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)
|
2023-09-15 18:50:48 +02:00
|
|
|
@echo "\t[CLANG] $(PROGRAM)"
|
|
|
|
@clang -o $(PROGRAM) $(PROGRAM).c -framework CoreFoundation -framework IOKit -mmacosx-version-min=10.13 >/dev/null
|
2023-08-31 22:12:58 +02:00
|
|
|
@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) *~
|