forked from rpeshkov/IntelWifi
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmakefile
43 lines (33 loc) · 733 Bytes
/
makefile
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
42
43
KEXT=DerivedData/IntelWifi/Build/Products/Debug/IntelWifi.kext
OPTIONS:=$(OPTIONS) -scheme IntelWifi
ifeq ($(findstring 32,$(BITS)),32)
OPTIONS:=$(OPTIONS) -arch i386
endif
ifeq ($(findstring 64,$(BITS)),64)
OPTIONS:=$(OPTIONS) -arch x86_64
endif
.PHONY: all
all:
sudo kextunload $(KEXT)
sudo rm -rf $(KEXT)
xcodebuild build $(OPTIONS) -configuration Debug
.PHONY: build
build:
xcodebuild build $(OPTIONS) -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: reload
reload:
sudo kextunload $(KEXT)
sudo kextutil $(KEXT)
.PHONY: clean
clean:
sudo rm -rf $(KEXT)