12345678910111213141516171819202122232425262728 |
- # ----------------------------------------------------------------------------
- # "THE BEER-WARE LICENSE" (Revision 42):
- # <xythobuz@xythobuz.de> wrote this file. As long as you retain this notice
- # you can do whatever you want with this stuff. If we meet some day, and you
- # think this stuff is worth it, you can buy me a beer in return. Thomas Buck
- # ----------------------------------------------------------------------------
-
- CFLAGS ?= -Wall -pedantic -std=c11
-
- ifneq ("$(wildcard /Library/Extensions/foohid.kext/Contents/Info.plist)","")
- all: bin/protocol bin/foohid
- else
- all: bin/protocol
- @echo "Could not find foohid.kext installed in /Library/Extensions!"
- endif
-
- bin/protocol: src/serial.o src/protocol.o
- @mkdir -p bin
- $(CC) -o bin/protocol src/serial.o src/protocol.o
-
- bin/foohid: src/serial.o src/foohid.o
- @mkdir -p bin
- $(CC) -o bin/foohid -framework IOKit src/serial.o src/foohid.o
-
- clean:
- rm -rf bin
- rm -rf src/*.o
|