home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / plugins / textplugin / makefile.hpux next >
Encoding:
Makefile  |  1998-04-08  |  2.5 KB  |  79 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: HP-UX A.09.03
  23. #
  24. # The output of the make process will be libtextplugin.sl
  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. # PLUGIN_DEFINES= -DXP_UNIX -DTEXT_PLUGIN -DPLUGIN_TRACE
  46. PLUGIN_DEFINES= -DXP_UNIX -DTEXT_PLUGIN
  47.  
  48. CC             = cc
  49. OPTIMIZER      = -g
  50. MOTIF_INCLUDES = -I/usr/include/Motif1.2 #-I/usr/include/Motif1.2_R6
  51. X_INCLUDES     = -I/usr/include/X11R5    #-I/usr/include/X11R6
  52. INCLUDES       = -I. $(MOTIF_INCLUDES) $(X_INCLUDES)
  53.  
  54. MOTIF_LIB_DIRS = -L/usr/lib/Motif1.2
  55. X_LIB_DIRS     = -L/usr/lib/X11R5 #-L/usr/lib/X11R6
  56. LIB_DIRS       = $(MOTIF_LIB_DIRS) $(X_LIB_DIRS)
  57.  
  58. CFLAGS         = -Aa +z $(OPTIMIZER) $(PLUGIN_DEFINES) $(INCLUDES)
  59.  
  60. LDFLAGS        = -b +e NP_GetValue +e NP_Initialize \
  61.             +e NP_Shutdown +e NP_GetMIMEDescription \
  62.             $(LIB_DIRS) #-lXm -lXt -lX11
  63.  
  64. SRC = npunix.c npshell.c
  65. OBJ = npunix.o npshell.o
  66.  
  67. .c.o:
  68.     $(CC) -c $(CFLAGS) $<
  69.  
  70. SHAREDTARGET=libtextplugin.sl
  71.  
  72. default all: $(SHAREDTARGET)
  73.  
  74. $(SHAREDTARGET): $(OBJ)
  75.     ld $(LDFLAGS) -o $(SHAREDTARGET) $(OBJ)
  76.  
  77. clean:
  78.     rm -f $(OBJ) $(SHAREDTARGET)
  79.