home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / plugins / textplugin / makefile.sol24 < prev    next >
Encoding:
Makefile  |  1998-04-08  |  2.1 KB  |  72 lines

  1. #!make
  2. #
  3. # The contents of this file are subject to the Netscape Public License
  4. # Version 1.0 (the "NPL"); you may not use this file except in
  5. # compliance with the NPL.  You may obtain a copy of the NPL at
  6. # http://www.mozilla.org/NPL/
  7. #
  8. # Software distributed under the NPL is distributed on an "AS IS" basis,
  9. # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10. # for the specific language governing rights and limitations under the
  11. # NPL.
  12. #
  13. # The Initial Developer of this code under the NPL is Netscape
  14. # Communications Corporation.  Portions created by Netscape are
  15. # Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16. # Reserved.
  17.  
  18.  
  19. #
  20. # Sample text plugin makefile
  21. #
  22. # Platform: Solaris 2.4 and above
  23. #
  24. # The output of the make process will be libtextplugin.so
  25. # Install this file either in
  26. #    /usr/lib/netscape/plugins/
  27. #    (or)
  28. #    ~/.netscape/plugins/
  29. #    (or) in any convenient directory and point environment variable
  30. #         NPX_PLUGIN_PATH to point to the directory. It is advisable
  31. #         that the plugins (.so) are the only files in that directory.
  32. #
  33. # This makefile contains some of our defines for the compiler:
  34. #
  35. # XP_UNIX    This needs to get defined for npapi.h on unix platforms.
  36. # PLUGIN_TRACE    Enable this define to get debug prints whenever the plugin
  37. #        api gets control.
  38. # TEXT_PLUGIN    This will enable parts of the plugin that will use the
  39. #        Motif to display a text area in the plugin window. This
  40. #        is on by default.
  41. #        
  42. # - dp Suresh <dp@netscape.com>
  43. # Wed May 15 23:03:36 PDT 1996
  44. #
  45. # NOTES:
  46. #    - Some gcc versions need -fpic option. Add that to the CFLAGS if
  47. #      your platform needs it.
  48.  
  49. # PLUGIN_DEFINES= -DXP_UNIX -DTEXT_PLUGIN -DPLUGIN_TRACE
  50. PLUGIN_DEFINES= -DXP_UNIX -DTEXT_PLUGIN
  51.  
  52. CC= gcc
  53. OPTIMIZER= -g
  54. CFLAGS=  $(OPTIMIZER) $(PLUGIN_DEFINES) -I. -I/usr/include \
  55.      -I/usr/openwin/include -I/usr/dt/include
  56.  
  57. SRC= npunix.c npshell.c 
  58. OBJ= npunix.o npshell.o
  59.  
  60. .c.o:
  61.     $(CC) -c $(CFLAGS) $<
  62.  
  63. SHAREDTARGET=libtextplugin.so
  64.  
  65. default all: $(SHAREDTARGET)
  66.  
  67. $(SHAREDTARGET): $(OBJ)
  68.     $(CC) -shared -o $(SHAREDTARGET) $(OBJ) $(LDFLAGS)
  69.  
  70. clean:
  71.     $(RM) $(OBJ) $(SHAREDTARGET)
  72.