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

  1. #!make
  2. ################################################################################
  3. # Copyright (c) 1996 Netscape Communications. All rights reserved.
  4. ################################################################################
  5. #
  6. # Simple Sample plugin makefile
  7. #
  8. # Platform: Linux 1.2 (ELF)
  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. # WARNING: Motif libraries are built static into the navigator and cannot
  26. #          be accessed from the plugin.
  27. #          
  28.  
  29. # PLUGIN_DEFINES= -DXP_UNIX -DPLUGIN_TRACE
  30. PLUGIN_DEFINES= -DXP_UNIX -I../../../include -I../Source/_gen
  31.  
  32. CC= gcc
  33. OPTIMIZER= -g
  34. CFLAGS=  $(OPTIMIZER) $(PLUGIN_DEFINES) -I. -I/usr/include
  35.  
  36. SRC= ../Source/npsimple.c ../Source/stubs.c 
  37. OBJ= npsimple.o stubs.o
  38.  
  39. SHAREDTARGET=npsimple.so
  40.  
  41. default all: $(SHAREDTARGET)
  42.  
  43. $(SHAREDTARGET): $(OBJ)
  44.     $(CC) -shared -o $(SHAREDTARGET) $(OBJ) $(LDFLAGS)
  45.  
  46. npsimple.o: ../Source/npsimple.c
  47.     $(CC) -c $(CFLAGS) ../Source/npsimple.c
  48.  
  49. stubs.o: ../Source/stubs.c
  50.     $(CC) -c $(CFLAGS) ../Source/stubs.c
  51.  
  52. clean:
  53.     $(RM) $(OBJ) $(SHAREDTARGET)
  54.