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. 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. # Cygwin needs the .exe file, but the rm command!
  19. # Don't add a space after the comma. You get 'missing separator'...
  20. # Also add a space after 'ifeq', else you get 'missing separator'...
  21. ifeq ($(TARGET),cygwin)
  22. RM = rm
  23. endif
  24. # Spit out jar file, documentation, delete intermediate files
  25. all: build clean
  26. # Generate Documentation
  27. doc: doc/index.html
  28. # Compile java files
  29. java: Frame.class
  30. # Spit out jar file, dont remove anything after that
  31. build: Frame.class serialHelper
  32. jar -cmf manifest.txt "Cube Control.jar" $(INJAR)
  33. # Compile java files
  34. Frame.class: $(JAVAFILES)
  35. $(JAVAC) $(JAVAFILES)
  36. doc/index.html: $(JAVAFILES)
  37. $(JAVADOC) -d $(DOCDIR) $(JAVAFILES)
  38. # Compile serial Helper
  39. ifeq ($(TARGET),unix)
  40. serialHelper: serialHelper.c helper/unixSerial.c
  41. $(CC) -o serialHelper serialHelper.c
  42. else
  43. serialHelper: serialHelper.c helper/winSerial.c
  44. $(CC) -o serialHelper.exe -D winHelper serialHelper.c
  45. endif
  46. # Delete intermediate files
  47. clean:
  48. $(RM) *.class
  49. ifeq ($(TARGET),unix)
  50. $(RM) serialHelper
  51. else
  52. $(RM) serialHelper.exe
  53. endif