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

  1. #!make
  2. ################################################################################
  3. # Copyright (c) 1996 Netscape Communications. All rights reserved.
  4. ################################################################################
  5. #
  6. # Simple Sample plugin makefile
  7. #
  8. # Platform: HP-UX A.09.03
  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             = cc
  29. OPTIMIZER      = -g
  30. MOTIF_INCLUDES = -I/usr/include/Motif1.2 #-I/usr/include/Motif1.2_R6
  31. X_INCLUDES     = -I/usr/include/X11R5    #-I/usr/include/X11R6
  32. INCLUDES       = -I. $(MOTIF_INCLUDES) $(X_INCLUDES)
  33.  
  34. MOTIF_LIB_DIRS = -L/usr/lib/Motif1.2
  35. X_LIB_DIRS     = -L/usr/lib/X11R5 #-L/usr/lib/X11R6
  36. LIB_DIRS       = $(MOTIF_LIB_DIRS) $(X_LIB_DIRS)
  37.  
  38. CFLAGS         = -Aa +z $(OPTIMIZER) $(PLUGIN_DEFINES) $(INCLUDES)
  39.  
  40. LDFLAGS        = -b +e NP_GetValue +e NP_Initialize \
  41.             +e NP_Shutdown +e NP_GetMIMEDescription \
  42.             $(LIB_DIRS) #-lXm -lXt -lX11
  43.  
  44. SRC= ../Source/npsimple.c ../Source/stubs.c 
  45. OBJ= npsimple.o stubs.o
  46.  
  47. SHAREDTARGET=npsimple.so
  48.  
  49. default all: $(SHAREDTARGET)
  50.  
  51. $(SHAREDTARGET): $(OBJ)
  52.     ld $(LDFLAGS) -o $(SHAREDTARGET) $(OBJ)
  53.  
  54. npsimple.o: ../Source/npsimple.c
  55.     $(CC) -c $(CFLAGS) ../Source/npsimple.c
  56.  
  57. stubs.o: ../Source/stubs.c
  58.     $(CC) -c $(CFLAGS) ../Source/stubs.c
  59.  
  60. clean:
  61.     rm -f $(OBJ) $(SHAREDTARGET)
  62.