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

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