Mac OS X gamepad emulator for serial RC transmitters
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 938B

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