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.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. HEADERPATH = /System/Library/Frameworks/JavaVM.framework/Headers
  12. RM = rm -f
  13. INJAR += libSerial.jnilib
  14. PLATFORM = Mac
  15. endif
  16. # All java files to be compiled
  17. # List so it works as target
  18. JAVAFILES = HelperUtility.java AnimationUtility.java Animation.java AFrame.java cubeWorker.java layerEditFrame.java Led3D.java Frame.java SerialReadThread.java SerialWriteThread.java SerialHelper.java
  19. # --------------------------------------
  20. all: CubeControl.jar clean
  21. doc: doc/index.html
  22. CubeControl.jar: HelperUtility.class manifest.txt libSerial
  23. jar -cmf manifest.txt "CubeControl$(PLATFORM).jar" $(INJAR)
  24. serialInterface.h: HelperUtility.class
  25. javah -o serialInterface.h HelperUtility
  26. HelperUtility.class: $(JAVAFILES)
  27. javac $(JAVAFILES)
  28. doc/index.html: $(JAVAFILES)
  29. javadoc -d doc $(JAVAFILES)
  30. ifdef SystemRoot
  31. libSerial: Serial.dll
  32. else
  33. libSerial: libSerial.jnilib
  34. endif
  35. Serial.dll: libSerial/serialHelper.c libSerial/winSerial.c
  36. make -C libSerial
  37. mv libSerial/Serial.dll Serial.dll
  38. make -C libSerial clean
  39. libSerial.jnilib: libSerial/serialHelper.c libSerial/unixSerial.c
  40. make -C libSerial
  41. mv libSerial/libSerial.jnilib libSerial.jnilib
  42. make -C libSerial clean
  43. # Delete intermediate files
  44. clean:
  45. $(RM) *.class
  46. $(RM) *.
  47. $(RM) *.o
  48. ifdef SystemRoot
  49. $(RM) *.dll
  50. else
  51. $(RM) *.jnilib
  52. endif