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.4KB

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