]> git.zerfleddert.de Git - proxmark3-svn/blame - client/hid-flasher/Makefile
Merge pull request #329 from marshmellow42/master
[proxmark3-svn] / client / hid-flasher / Makefile
CommitLineData
e9281ae8
JH
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#-----------------------------------------------------------------------------
6include ../../common/Makefile.common
7
8CC=gcc
9CXX=g++
10#COMMON_FLAGS = -m32
11
12VPATH = ../../common
13OBJDIR = obj
14
15LDLIBS = -L/opt/local/lib -L/usr/local/lib -lusb -lreadline -lpthread
16LDFLAGS = $(COMMON_FLAGS)
17CFLAGS = -std=gnu99 -I. -I../include -I../common -I/opt/local/include -Wall -Wno-unused-function $(COMMON_FLAGS) -g -O3
18
19CXXFLAGS =
20QTLDLIBS =
21
22RM = rm -f
23BINS = flasher
24CLEAN = flasher flasher.exe $(OBJDIR)/*.o *.o
25
26all: $(BINS)
27
28flasher: $(OBJDIR)/flash.o $(OBJDIR)/flasher.o $(OBJDIR)/proxusb.o
29 $(CXX) $(CXXFLAGS) $^ $(LDLIBS) -o $@
30
31$(OBJDIR)/%.o: %.c
32 $(CC) $(CFLAGS) -c -o $@ $<
33
34clean:
35 $(RM) $(CLEAN)
36
37# must be run as root
38install_kext: Info.plist
39 mkdir -p /System/Library/Extensions/Proxmark3.kext/Contents
40 cp Info.plist /System/Library/Extensions/Proxmark3.kext/Contents
41 chown -R root:wheel /System/Library/Extensions/Proxmark3.kext
42 chmod 755 /System/Library/Extensions/Proxmark3.kext /System/Library/Extensions/Proxmark3.kext/Contents
43 chmod 644 /System/Library/Extensions/Proxmark3.kext/Contents/Info.plist
44 rm -rf /System/Library/Caches/com.apple.kext.caches
45 touch /System/Library/Extensions
46 @echo "*** You may need to reboot for the kext to take effect."
47
48.PHONY: all clean
Impressum, Datenschutz