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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. CC = gcc
  2. # Path to jni.h
  3. ifdef SystemRoot
  4. HEADERPATH = C:/Program\ Files/Java/jdk1.6.0_29/include
  5. RM = del
  6. PLATFORM = Win
  7. else
  8. HEADERPATH = /System/Library/Frameworks/JavaVM.framework/Headers
  9. RM = rm -f
  10. PLATFORM = Mac
  11. endif
  12. # --------------------------------------
  13. all: libSerial
  14. doc: doc/index.html
  15. serialInterface.h: HelperUtility.class
  16. javah -o serialInterface.h HelperUtility
  17. HelperUtility.class: ../HelperUtility.java
  18. javac ../HelperUtility.java
  19. cp ../HelperUtility.class HelperUtility.class
  20. # SystemRoot is only defined in Windows
  21. ifdef SystemRoot
  22. libSerial: Serial.dll
  23. else
  24. libSerial: libSerial.jnilib
  25. endif
  26. libSerial.jnilib: serialHelper.c 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. Serial.dll: serialHelper.c winSerial.c serialInterface.h
  30. $(CC) -x c -I$(HEADERPATH) -c serialHelper.c -o serialHelper.o -D winHelper
  31. $(CC) -shared -o Serial.dll serialHelper.o
  32. # Delete intermediate files
  33. clean:
  34. $(RM) *.class
  35. $(RM) *.h
  36. $(RM) *.o
  37. ifdef SystemRoot
  38. $(RM) *.dll
  39. else
  40. $(RM) *.jnilib
  41. endif