Testing out the PPD42 Air Quality Sensor, with an MSP430 Launchpad and graphing the data with GNUplot.
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.

65 lines
1.9 KiB

5 years ago
  1. # Copyright 2001 Valentin Pavlov
  2. #
  3. #
  4. # The library loads but java APIs still need some modifications
  5. # the native - too.
  6. #
  7. # A make file for compiling rxtx with lcc contributed by Valentin Pavlov
  8. # lcc may be downloaded from: http://www.cs.virginia.edu/~lcc-win32/
  9. #
  10. # You will need a config.h file in the src directory. Other builds usually
  11. # generate them automatically. The following should work.
  12. #define HAVE_FCNTL_H
  13. #define HAVE_SIGNAL_H
  14. #undef HAVE_SYS_FCNTL_H
  15. #undef HAVE_SYS_FILE_H
  16. #undef HAVE_SYS_SIGNAL_H
  17. #undef HAVE_TERMIOS_H
  18. #undef HAVE_SYS_TIME_H
  19. # if you know how to create the above in a dos Makefile send in the changes.
  20. #
  21. # the following commands should then work fine on the command line.
  22. #
  23. # cd src
  24. # make -f ..\Makefile.lcc
  25. #
  26. # You will need to do some programming to get this working. rxtx has moved
  27. # to full event support and the win32 code has not been updated to reflect
  28. # the changes. There is no windows parallel port code at this time.
  29. #
  30. # Thur Jan 24 2001 put Comments in the Makefile. taj@www.linux.org.uk.
  31. # added javac/javah/jar build rule.
  32. CFLAGS=-I\JDK\INCLUDE -I\jdk\include\win32 -I.
  33. CC=lcc
  34. LINKER=lcclnk
  35. OBJS=init.obj SerialImp.obj termios.obj fuserImp.obj
  36. SRC=init.c SerialImp.c termios.c fuserImp.c
  37. LIBS=
  38. JAVA_HOME=D:\jdk
  39. lib: $(OBJS)
  40. lcclnk -dll $(OBJS) wsock32.lib -o rxtxSerial.dll
  41. init.obj: RXTXcomm.jar
  42. $(CC) $(CFLAGS) init.c
  43. SerialImp.obj: RXTXcomm.jar config.h
  44. $(CC) $(CFLAGS) SerialImp.c
  45. fuserImp.obj: RXTXcomm.jar config.h
  46. termios.obj: RXTXcomm.jar
  47. $(CC) $(CFLAGS) termios.c
  48. RXTXcomm.jar:
  49. javac -d . -O *.java
  50. jar -cf RXTXcomm.jar gnu
  51. javah -jni gnu.io.RXTXPort gnu.io.RXTXCommDriver
  52. config.h:
  53. echo please read how to create config.h in the Makefile
  54. install:
  55. copy rxtxSerial.dll $(JAVA_HOME)\jre\bin
  56. copy RXTXcomm.jar $(JAVA_HOME)\jre\lib\ext