-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathmakefile
More file actions
41 lines (33 loc) · 765 Bytes
/
makefile
File metadata and controls
41 lines (33 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
TARGETOS := $(shell uname -s)
ifeq ($(TARGETOS), Darwin)
OSXRELEASE := $(shell uname -r | sed 's/\..*//')
ifeq ($(OSXRELEASE), 17)
OSXVER = HighSierra
endif
ifeq ($(OSXRELEASE), 16)
OSXVER = Sierra
endif
endif
KEXT=DerivedData/Black80211/Build/Products/$(OSXVER)/Debug/Black80211.kext
ifeq ($(findstring 32,$(BITS)),32)
OPTIONS:=$(OPTIONS) -arch i386
endif
ifeq ($(findstring 64,$(BITS)),64)
OPTIONS:=$(OPTIONS) -arch x86_64
endif
.PHONY: all
all:
xcodebuild build $(OPTIONS) -scheme Black80211_$(OSXVER) -configuration Debug
.PHONY: deps
deps:
sudo kextlibs -xml $(KEXT)
.PHONY: load
load:
sudo chown -R root:wheel $(KEXT)
sudo kextutil $(KEXT)
.PHONY: unload
unload:
sudo kextunload $(KEXT)
.PHONY: clean
clean:
sudo rm -rf $(KEXT)