1
0

Makefile.in 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. ############################################################################
  2. ## Makefile.in (Generic SANE Plugin Tree)
  3. ##
  4. ## The contents of this file are subject to the Mozilla Public
  5. ## License Version 1.1 (the "License"); you may not use this file
  6. ## except in compliance with the License. You may obtain a copy of
  7. ## the License at http://www.mozilla.org/MPL/
  8. ##
  9. ## Software distributed under the License is distributed on an "AS
  10. ## IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  11. ## implied. See the License for the specific language governing
  12. ## rights and limitations under the License.
  13. ## Contributor(s):
  14. ##
  15. ## Rusty Lynch <[email protected]>
  16. ############################################################################
  17. DEPTH = ../../../..
  18. topsrcdir = @top_srcdir@
  19. srcdir = @srcdir@
  20. VPATH = @srcdir@
  21. include $(DEPTH)/config/autoconf.mk
  22. MODULE = plugin
  23. LIBRARY_NAME = nprt
  24. ifeq ($(OS_ARCH),WINNT)
  25. RESFILE = nprt.res
  26. DEFFILE = $(srcdir)/nprt.def
  27. endif
  28. # plugins should always be shared, even in the "static" build
  29. FORCE_SHARED_LIB = 1
  30. # Force use of PIC
  31. FORCE_USE_PIC = 1
  32. NO_DIST_INSTALL = 1
  33. NO_INSTALL = 1
  34. CPPSRCS = \
  35. np_entry.cpp \
  36. npn_gate.cpp \
  37. npp_gate.cpp \
  38. plugin.cpp \
  39. $(NULL)
  40. REQUIRES = \
  41. plugin \
  42. java \
  43. $(NULL)
  44. LOCAL_INCLUDES = -I$(srcdir)/.. -I$(srcdir)/../../public \
  45. -I/usr/lib/glib/include
  46. include $(topsrcdir)/config/rules.mk
  47. install-plugin: $(SHARED_LIBRARY)
  48. ifdef SHARED_LIBRARY
  49. $(INSTALL) $(SHARED_LIBRARY) $(DIST)/bin/plugins
  50. endif
  51. libs:: install-plugin
  52. install:: $(SHARED_LIBRARY)
  53. ifdef SHARED_LIBRARY
  54. $(SYSINSTALL) $(IFLAGS2) $< $(DESTDIR)$(mozappdir)/plugins
  55. endif