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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. JAVAC = javac
  2. JAVADOC = javadoc
  3. DOCDIR = doc
  4. CC = gcc
  5. TARGET = unix
  6. #TARGET = win
  7. # Java files to be compiled
  8. # Needs to be a complete list so they work as target
  9. JAVAFILES = HelperUtility.java AnimationUtility.java Animation.java AFrame.java cubeWorker.java layerEditFrame.java Led3D.java frame.java
  10. ifeq ($(TARGET),win)
  11. INJAR = *.class *.png serialHelper.exe
  12. else
  13. INJAR = *.class *.png serialHelper
  14. endif
  15. # Spit out jar file, documentation, delete intermediate files
  16. all: build doc/index.html clean
  17. # Generate Documentation
  18. doc: doc/index.html
  19. # Compile java files
  20. java: frame.class
  21. # Spit out jar file, dont remove anything after that
  22. build: frame.class serialHelper
  23. jar -cmf manifest.txt "Cube Control.jar" $(INJAR)
  24. # Compile java files
  25. frame.class: $(JAVAFILES)
  26. $(JAVAC) $(JAVAFILES)
  27. doc/index.html: $(JAVAFILES)
  28. $(JAVADOC) -d $(DOCDIR) $(JAVAFILES)
  29. # Compile serial Helper
  30. ifeq ($(TARGET),win)
  31. serialHelper: serialHelper.c helper/winSerial.c
  32. $(CC) -o serialHelper.exe -D winHelper serialHelper.c
  33. else
  34. serialHelper: serialHelper.c helper/unixSerial.c
  35. $(CC) -o serialHelper serialHelper.c
  36. endif
  37. # Delete intermediate files
  38. clean:
  39. ifeq ($(TARGET),win)
  40. del *.class
  41. del serialHelper.exe
  42. else
  43. rm -f *.class
  44. rm -f serialHelper
  45. endif