home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 8 / IOPROG_8.ISO / soft / sdkplnet / mac / macnpsdk.sit / PluginSDK / Examples / Simple / Unix / makefile.sgi < prev    next >
Encoding:
Makefile  |  1996-07-11  |  1.6 KB  |  57 lines

  1. #!smake
  2. ################################################################################
  3. # Copyright (c) 1996 Netscape Communications. All rights reserved.
  4. ################################################################################
  5. #
  6. # Simple Sample plugin makefile
  7. #
  8. # Platform: sgi IRIX 5.2 and above
  9. #
  10. # The output of the make process will be libtextplugin.so
  11. # Install this file either in
  12. #    /usr/lib/netscape/plugins/
  13. #    (or)
  14. #    ~/.netscape/plugins/
  15. #    (or) in any convenient directory and point environment variable
  16. #         NPX_PLUGIN_PATH to point to the directory. It is advisable
  17. #         that the plugins (.so) are the only files in that directory.
  18. #
  19. # This makefile contains some of our defines for the compiler:
  20. #
  21. # XP_UNIX    This needs to get defined for npapi.h on unix platforms.
  22. # PLUGIN_TRACE    Enable this define to get debug prints whenever the plugin
  23. #        api gets control.
  24.  
  25. # PLUGIN_DEFINES= -DXP_UNIX -DPLUGIN_TRACE
  26. PLUGIN_DEFINES= -DXP_UNIX -I../../../include -I../Source/_gen
  27.  
  28. include $(ROOT)/usr/include/make/commondefs
  29.  
  30. OPTIMIZER= -g
  31.  
  32. LCOPTS =  $(PLUGIN_DEFINES) -nostdinc  -I. -I$(ROOT)/usr/include
  33.  
  34. LLDLIBS =  -L$(ROOT)/usr/lib -lXm -lXt -lX11 -lgen -lc
  35.  
  36. CFILES= ../Source/npsimple.c ../Source/stubs.c 
  37. OBJECTS= npsimple.o stubs.o
  38.  
  39. SHAREDTARGET=npsimple.so
  40. STATICTARGET=npsimple.a
  41.  
  42. LDIRT = $(STATICTARGET) $(SHAREDTARGET)
  43.  
  44. default all: $(SHAREDTARGET)
  45.  
  46. $(STATICTARGET): $(OBJECTS)
  47.     $(AR) cruv $(STATICTARGET) $(OBJECTS)
  48.  
  49. npsimple.o: ../Source/npsimple.c
  50.  
  51. stubs.o: ../Source/stubs.o
  52.  
  53. $(SHAREDTARGET): $(STATICTARGET)
  54.     $(LD) $(LDDSOOPTS) -o $(SHAREDTARGET) $(STATICTARGET) $(LDFLAGS)
  55.  
  56. include $(COMMONRULES)
  57.