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

  1. #!make
  2. ################################################################################
  3. # Copyright (c) 1996 Netscape Communications. All rights reserved.
  4. ################################################################################
  5. #
  6. # Simple Sample plugin makefile
  7. #
  8. # Platform: Solaris 2.3 and above
  9. #
  10. # The output of the make process will be npsimple.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. CC= gcc
  29. OPTIMIZER= -g
  30. CFLAGS=  $(OPTIMIZER) $(PLUGIN_DEFINES) -I. -I/usr/include \
  31.     -I/usr/openwin/include \
  32.     -I/usr/local/Motif/opt/ICS/Motif/usr/include
  33.  
  34. SRC= ../Source/npsimple.c ../Source/stubs.c 
  35. OBJ= npsimple.o stubs.o
  36.  
  37. SHAREDTARGET=npsimple.so
  38.  
  39. default all: $(SHAREDTARGET)
  40.  
  41. $(SHAREDTARGET): $(OBJ)
  42.     $(CC) -shared -o $(SHAREDTARGET) $(OBJ) $(LDFLAGS)
  43.  
  44. npsimple.o: ../Source/npsimple.c
  45.     $(CC) -c $(CFLAGS) ../Source/npsimple.c
  46.  
  47. stubs.o: ../Source/stubs.c
  48.     $(CC) -c $(CFLAGS) ../Source/stubs.c
  49.  
  50. clean:
  51.     $(RM) $(OBJ) $(SHAREDTARGET)
  52.