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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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
  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 -g $(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. libSerial.jnilib: libSerial/serialHelper.c libSerial/unixSerial.c
  39. make -C libSerial
  40. mv libSerial/libSerial.jnilib libSerial.jnilib
  41. # Delete intermediate files
  42. clean:
  43. make -C libSerial clean
  44. $(RM) *.class
  45. $(RM) *.
  46. $(RM) *.o
  47. ifdef SystemRoot
  48. $(RM) *.dll
  49. else
  50. $(RM) *.jnilib
  51. endif