Mac OS X gamepad emulator for serial RC transmitters
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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