Makefile.am 904 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. SUBDIRS = doc test
  2. lib_LTLIBRARIES = libdiamondx.la
  3. # Note that the include files from moz-sdk were taken from the
  4. # mozilla/dist/sdk/include directory of the Firefox 2.0.0.2 release.
  5. # need better solution than hardcoded X11 include path, but
  6. # 'pkg-config --cflags' does not work correctly for x11 or xproto packages
  7. INCLUDES = \
  8. -I$(top_srcdir)/moz-sdk \
  9. `pkg-config --cflags gtk+-2.0` \
  10. `pkg-config --cflags nspr` \
  11. -I/usr/include/X11
  12. libdiamondx_la_LDFLAGS = \
  13. `pkg-config --libs gtk+-2.0` \
  14. `pkg-config --libs nspr`
  15. libdiamondx_la_SOURCES = \
  16. diamondx.c \
  17. npshell.c \
  18. npunix.c \
  19. diamondx.h \
  20. moz-sdk/jni.h \
  21. moz-sdk/jni_md.h \
  22. moz-sdk/jri.h \
  23. moz-sdk/jri_md.h \
  24. moz-sdk/jritypes.h \
  25. moz-sdk/npapi.h \
  26. moz-sdk/npruntime.h \
  27. moz-sdk/nptypes.h \
  28. moz-sdk/npupp.h
  29. # custom install rule
  30. install-plugin:
  31. mkdir -p ~/.mozilla/plugins
  32. cp .libs/libdiamondx.so ~/.mozilla/plugins