Simple single-color 8x8x8 LED Cube with AVRs
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 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # Name of your C-Compiler
  2. CC = gcc
  3. INJAR = *.class LEDoff.png LEDon.png splash.png bg.png
  4. # Path to jni.h
  5. ifdef SystemRoot
  6. HEADERPATH = C:/Program\ Files/Java/jdk1.6.0_29/include
  7. RM = del
  8. INJAR += Serial.dll
  9. PLATFORM = Win
  10. else
  11. RM = rm -f
  12. UNAME := $(shell uname -s)
  13. ifeq ($(UNAME),Darwin)
  14. INJAR += libSerial.jnilib
  15. PLATFORM = Mac
  16. HEADERPATH = /System/Library/Frameworks/JavaVM.framework/Headers
  17. else
  18. INJAR += libSerial.so
  19. PLATFORM = Linux
  20. HEADERPATH = /usr/lib/jvm/java-6-openjdk/include
  21. endif
  22. endif
  23. # All java files to be compiled
  24. # List so it works as target
  25. JAVAFILES = HelperUtility.java AnimationUtility.java Animation.java AFrame.java cubeWorker.java layerEditFrame.java Led3D.java Frame.java SerialReadThread.java SerialWriteThread.java SerialHelper.java
  26. # --------------------------------------
  27. all: CubeControl.jar
  28. doc: doc/index.html
  29. CubeControl.jar: HelperUtility.class manifest.txt libSerial
  30. jar -cmf manifest.txt "CubeControl$(PLATFORM).jar" $(INJAR)
  31. serialInterface.h: HelperUtility.class
  32. javah -o serialInterface.h HelperUtility
  33. HelperUtility.class: $(JAVAFILES)
  34. javac -g $(JAVAFILES)
  35. doc/index.html: $(JAVAFILES)
  36. javadoc -d doc $(JAVAFILES)
  37. ifdef SystemRoot
  38. libSerial: Serial.dll
  39. else
  40. ifeq ($(UNAME),Darwin)
  41. libSerial: libSerial.jnilib
  42. else
  43. libSerial: libSerial.so
  44. endif
  45. endif
  46. Serial.dll: libSerial/serialHelper.c libSerial/winSerial.c
  47. make -C libSerial
  48. mv libSerial/Serial.dll Serial.dll
  49. libSerial.jnilib: libSerial/serialHelper.c libSerial/unixSerial.c
  50. make -C libSerial
  51. mv libSerial/libSerial.jnilib libSerial.jnilib
  52. libSerial.so: libSerial/serialHelper.c libSerial/unixSerial.c
  53. make -C libSerial
  54. mv libSerial/libSerial.so libSerial.so
  55. # Delete intermediate files
  56. clean:
  57. make -C libSerial clean
  58. $(RM) *.class
  59. $(RM) *.
  60. $(RM) *.o
  61. ifdef SystemRoot
  62. $(RM) *.dll
  63. else
  64. $(RM) *.jnilib
  65. endif