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 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. ifdef SYSTEMROOT
  12. # Looks like cygwin or mingw shell
  13. HEADERPATH = C:\Programme\Java\jdk1.6.0_31\include
  14. HEADERPATH += -IC:\Programme\Java\jdk1.6.0_31\include\win32
  15. RM = rm -rf
  16. INJAR += Serial.dll
  17. PLATFORM = Win
  18. else
  19. RM = rm -f
  20. UNAME := $(shell uname -s)
  21. ifeq ($(UNAME),Darwin)
  22. INJAR += libSerial.jnilib
  23. PLATFORM = Mac
  24. HEADERPATH = /System/Library/Frameworks/JavaVM.framework/Headers
  25. else
  26. INJAR += libSerial.so
  27. PLATFORM = Linux
  28. HEADERPATH = /usr/lib/jvm/java-6-openjdk/include
  29. endif
  30. endif
  31. endif
  32. # All java files to be compiled
  33. # List so it works as target
  34. JAVAFILES = HelperUtility.java AnimationUtility.java Animation.java AFrame.java cubeWorker.java layerEditFrame.java Led3D.java Frame.java SerialReadThread.java SerialWriteThread.java SerialHelper.java
  35. # --------------------------------------
  36. all: CubeControl.jar
  37. doc: doc/index.html
  38. CubeControl.jar: HelperUtility.class manifest.txt libSerial
  39. jar -cmf manifest.txt "CubeControl$(PLATFORM).jar" $(INJAR)
  40. serialInterface.h: HelperUtility.class
  41. javah -o serialInterface.h HelperUtility
  42. HelperUtility.class: $(JAVAFILES)
  43. javac -g $(JAVAFILES)
  44. doc/index.html: $(JAVAFILES)
  45. javadoc -d doc $(JAVAFILES)
  46. ifdef SystemRoot
  47. libSerial: Serial.dll
  48. else
  49. ifdef SYSTEMROOT
  50. libSerial: Serial.dll
  51. else
  52. ifeq ($(UNAME),Darwin)
  53. libSerial: libSerial.jnilib
  54. else
  55. libSerial: libSerial.so
  56. endif
  57. endif
  58. endif
  59. Serial.dll: libSerial/serialHelper.c libSerial/winSerial.c
  60. make -C libSerial
  61. mv libSerial/Serial.dll Serial.dll
  62. libSerial.jnilib: libSerial/serialHelper.c libSerial/unixSerial.c
  63. make -C libSerial
  64. mv libSerial/libSerial.jnilib libSerial.jnilib
  65. libSerial.so: libSerial/serialHelper.c libSerial/unixSerial.c
  66. make -C libSerial
  67. mv libSerial/libSerial.so libSerial.so
  68. # Delete intermediate files
  69. clean:
  70. make -C libSerial clean
  71. $(RM) *.class
  72. $(RM) *.
  73. $(RM) *.o
  74. ifdef SystemRoot
  75. $(RM) *.dll
  76. else
  77. ifdef SYSTEMROOT
  78. $(RM) *.dll
  79. else
  80. $(RM) *.jnilib
  81. endif
  82. endif