Simple single-color 8x8x8 LED Cube with AVRs
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

makefile 1.5KB

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