Simple single-color 8x8x8 LED Cube with AVRs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

makefile 995B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. ifeq ($(TARGET),win)
  12. INJAR = *.class *.png serialHelper.exe
  13. else
  14. INJAR = *.class *.png serialHelper
  15. endif
  16. # Spit out jar file, delete intermediate files
  17. all: build clean
  18. # Compile java files
  19. java: frame.class
  20. # Spit out jar file, dont remove anything after that
  21. build: frame.class serialHelper
  22. jar -cmf manifest.txt "Cube Control.jar" $(INJAR)
  23. # Compile java files
  24. frame.class: $(JAVAFILES)
  25. $(JAVAC) $(JAVAFILES)
  26. # Compile serial Helper
  27. ifeq ($(TARGET),win)
  28. serialHelper: serialHelper.c helper/winSerial.c
  29. $(CC) -o serialHelper.exe -D winHelper serialHelper.c
  30. else
  31. serialHelper: serialHelper.c helper/unixSerial.c
  32. $(CC) -o serialHelper serialHelper.c
  33. endif
  34. # Delete intermediate files
  35. clean:
  36. ifeq ($(TARGET),win)
  37. del *.class
  38. del serialHelper.exe
  39. else
  40. rm -f *.class
  41. rm -f serialHelper
  42. endif