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 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Name of your C-Compiler
  2. CC = gcc
  3. # Path to jni.h
  4. HEADERPATH = /System/Library/Frameworks/JavaVM.framework/Headers
  5. ifdef SystemRoot
  6. HEADERPATH = C:/Program\ Files/Java/jdk1.6.0_29/include
  7. endif
  8. # All java files to be compiled
  9. # List so it works as target
  10. JAVAFILES = HelperUtility.java AnimationUtility.java Animation.java AFrame.java cubeWorker.java layerEditFrame.java Led3D.java Frame.java
  11. # Files that go in the jar
  12. INJAR = *.class *.png
  13. all: CubeControl.jar libSerial
  14. doc: doc/index.html
  15. CubeControl.jar: HelperUtility.class manifest.txt
  16. jar -cmf manifest.txt "CubeControl.jar" $(INJAR)
  17. serialInterface.h: HelperUtility.class
  18. javah -o serialInterface.h HelperUtility
  19. HelperUtility.class: $(JAVAFILES)
  20. javac $(JAVAFILES)
  21. # SystemRoot is only defined in Windows
  22. ifdef SystemRoot
  23. libSerial: Serial.dll
  24. $(RM) = del
  25. else
  26. libSerial: libSerial.jnilib
  27. $(RM) = rm -f
  28. endif
  29. libSerial.jnilib: serialHelper.c helper/unixSerial.c serialInterface.h
  30. $(CC) -x c -I$(HEADERPATH) -c serialHelper.c -o serialHelper.o
  31. $(CC) -dynamiclib -o libSerial.jnilib serialHelper.o
  32. rm -f serialHelper.o
  33. Serial.dll: serialHelper.c helper/winSerial.c serialInterface.h
  34. $(CC) -x c -I$(HEADERPATH) -c serialHelper.c -o serialHelper.o -D winHelper
  35. $(CC) -shared -o Serial.dll serialHelper.o
  36. del serialHelper.o
  37. doc/index.html: $(JAVAFILES)
  38. javadoc -d doc $(JAVAFILES)
  39. # Delete intermediate files
  40. clean:
  41. $(RM) *.class
  42. $(RM) *.h
  43. $(RM) *.o
  44. $(RM) *.jar
  45. ifdef SystemRoot
  46. $(RM) *.dll
  47. else
  48. $(RM) *.jnilib
  49. endif