Simple single-color 8x8x8 LED Cube with AVRs
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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