home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / plugins / textplugin / makefile.sco < prev    next >
Encoding:
Makefile  |  1998-04-08  |  2.0 KB  |  69 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: SCO UnixWare 2.01 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. #        
  39. # - dp Suresh <dp@netscape.com>
  40. # Wed May 15 23:03:36 PDT 1996
  41. #
  42. # Makefile ported to SCO 
  43. # - Roger Oberholtzer <roger@seaotter.opq.se.netscape.com>
  44. # Wed, 26 Jun 1996 13:44:31 +0200 (MET DST)
  45. #
  46.  
  47. # PLUGIN_DEFINES= -DXP_UNIX -DPLUGIN_TRACE
  48. PLUGIN_DEFINES= -DXP_UNIX
  49.  
  50. CC= cc
  51. OPTIMIZER= -O
  52. CFLAGS= -KPIC $(OPTIMIZER) $(PLUGIN_DEFINES) -I. -I/usr/include -I/usr/X/include
  53.  
  54. SRC= npunix.c npshell.c 
  55. OBJ= npunix.o npshell.o
  56. SHAREDTARGET=libtextplugin.so
  57.  
  58. .c.o:
  59.     $(CC) -c $(CFLAGS) $<
  60.  
  61. default all: $(SHAREDTARGET)
  62.  
  63. $(SHAREDTARGET): $(OBJ)
  64.     @cc -G -o $(SHAREDTARGET) $(OBJ)
  65.  
  66. clean:
  67.     $(RM) $(OBJ) $(SHAREDTARGET)
  68.  
  69.