Simple single-color 8x8x8 LED Cube with AVRs
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

makefile 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. JAVAC = javac
  2. CC = gcc
  3. TARGET = unix
  4. #TARGET = win
  5. # Java files to be compiled
  6. ifeq ($(TARGET),win)
  7. JAVAFILES = cubeWorker.java layerEditFrame.java frame.java
  8. else
  9. JAVAFILES = *.java
  10. endif
  11. # Windows doesn't like *.class, so we have to maintain a list of all classes :(
  12. ifeq ($(TARGET),win)
  13. INJAR = cubeWorker.class layerEditFrame.class layerEditFrame$$1.class layerEditFrame$$2.class layerEditFrame$$3.class layerEditFrame$$4.class frame.class frame$$1.class frame$$2.class frame$$3.class frame$$4.class frame$$5.class frame$$6.class frame$$7.class frame$$8.class frame$$9.class frame$$10.class frame$$11.class frame$$12.class frame$$13.class frame$$14.class frame$$15.class frame$$16.class frame$$17.class frame$$18.class frame$$19.class frame$$20.class frame$$21.class frame$$22.class frame$$23.class frame$$24.class AFrame.class Animation.class AnimationUtility.class HelperUtility.class Led3D.class LEDoff.png LEDon.png serialHelper.exe
  14. else
  15. INJAR = *.class *.png serialHelper
  16. endif
  17. # Spit out jar file, delete intermediate files
  18. all: build clean
  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. # Compile serial Helper
  28. ifeq ($(TARGET),win)
  29. serialHelper: serialHelper.c helper/winSerial.c
  30. $(CC) -o serialHelper.exe -D winHelper serialHelper.c
  31. else
  32. serialHelper: serialHelper.c helper/unixSerial.c
  33. $(CC) -o serialHelper serialHelper.c
  34. endif
  35. # Delete intermediate files
  36. clean:
  37. ifeq ($(TARGET),win)
  38. del *.class
  39. del serialHelper.exe
  40. else
  41. rm -f *.class
  42. rm -f serialHelper
  43. endif