1 #-----------------------------------------------------------------------------
2 # This code is licensed to you under the terms of the GNU GPL, version 2 or,
3 # at your option, any later version. See the LICENSE.txt file for the text of
5 #-----------------------------------------------------------------------------
13 CFLAGS ?
= -Wall
-Werror
-g
-O3
15 ifeq ($(platform
),Darwin
)
22 BINS
= pm3-hid-flasher
23 CLEAN
= pm3-hid-flasher pm3-hid-flasher.exe
$(OBJDIR
)/*.o
27 pm3-hid-flasher
: $(OBJDIR
)/flash.o
$(OBJDIR
)/flasher.o
$(OBJDIR
)/proxusb.o
28 $(LD
) $(LDFLAGS
) $^
$(LDLIBS
) -o
$@
31 $(CC
) $(CFLAGS
) -c
-o
$@
$<
37 install_kext
: Info.plist
38 mkdir
-p
/System
/Library
/Extensions
/Proxmark3.kext
/Contents
39 cp Info.plist
/System
/Library
/Extensions
/Proxmark3.kext
/Contents
40 chown
-R root
:wheel
/System
/Library
/Extensions
/Proxmark3.kext
41 chmod
755 /System
/Library
/Extensions
/Proxmark3.kext
/System
/Library
/Extensions
/Proxmark3.kext
/Contents
42 chmod
644 /System
/Library
/Extensions
/Proxmark3.kext
/Contents
/Info.plist
43 rm -rf
/System
/Library
/Caches
/com.apple.kext.caches
44 touch
/System
/Library
/Extensions
45 @echo
"*** You may need to reboot for the kext to take effect."