R&Y: Added DAY RTA Tapp Card and Additional BKK BEM Stored Value Card AIDs to `aid_de...
[RRG-proxmark3.git] / tools / deprecated-hid-flasher / flasher / Makefile
blob52b1229fe4ad7c78759d62fae729e5869584025f
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
4 # the license.
5 #-----------------------------------------------------------------------------
7 CC=gcc
8 LD=gcc
10 OBJDIR = obj
12 LDLIBS =
13 CFLAGS ?= -Wall -Werror -g -O3
14 CFLAGS += -std=gnu99
15 ifeq ($(platform),Darwin)
16 LDLIBS += -lusb-1.0
17 else
18 LDLIBS += -lusb
19 endif
21 RM = rm -f
22 BINS = pm3-hid-flasher
23 CLEAN = pm3-hid-flasher pm3-hid-flasher.exe $(OBJDIR)/*.o
25 all: $(BINS)
27 pm3-hid-flasher: $(OBJDIR)/flash.o $(OBJDIR)/flasher.o $(OBJDIR)/proxusb.o
28 $(LD) $(LDFLAGS) $^ $(LDLIBS) -o $@
30 $(OBJDIR)/%.o: %.c
31 $(CC) $(CFLAGS) -c -o $@ $<
33 clean:
34 $(RM) $(CLEAN)
36 # must be run as root
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."
47 .PHONY: all clean