mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-02 13:03:28 +01:00
27 lines
618 B
Makefile
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) *~
|