home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / plugins / nullplugin / Makefile next >
Encoding:
Makefile  |  1998-04-08  |  1.7 KB  |  63 lines

  1. #! gmake
  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. DEPTH        = ../../../..
  21.  
  22. CSRCS        = npshell.c stubs.c nullplugin.c
  23.  
  24. PLUGIN        = $(OBJDIR)/libnullplugin.so
  25. TARGETS        = $(PLUGIN)
  26.  
  27. include $(DEPTH)/config/rules.mk
  28.  
  29. # This is required for compilation of only this directory
  30. ifeq ($(OS_ARCH),HP-UX)
  31. CFLAGS        += $(DSO_CFLAGS)
  32. endif
  33.  
  34. ifeq ($(OS_ARCH),AIX)
  35. LD        = svld
  36. endif
  37.  
  38. ifeq ($(OS_ARCH)$(OS_RELEASE)$(CPU_ARCH),Linux2.0x86)
  39. DYNMOTIF    = -L/usr/X11R6/lib -lXm
  40. STATMOTIF    = /usr/X11R6/lib/libXm.a
  41. TARGETS        += $(OBJDIR)/libnullplugin-dynMotif.so
  42. endif
  43.  
  44. #DEFINES    += -DPLUGIN_TRACE
  45. INCLUDES    += -I$(DEPTH)/lib/plugin 
  46.  
  47. ifdef MOZ_JAVA
  48. INCLUDES    += -I$(DEPTH)/sun-java/include
  49. else
  50. INCLUDES    += -I$(DEPTH)/sun-java/stubs
  51. endif
  52.  
  53. install:: $(TARGETS)
  54.     $(INSTALL) $(TARGETS) $(DIST)/bin
  55.  
  56. $(OBJDIR)/libnullplugin-dynMotif.so: $(OBJS)
  57.     $(LD) $(DSO_LDOPTS) -o $@ $(OBJS) $(DSO_LDFLAGS) $(EXTRA_DSO_LDOPTS) $(DYNMOTIF)
  58.  
  59. $(PLUGIN): $(OBJS)
  60.     $(LD) $(DSO_LDOPTS) -o $@ $(OBJS) $(DSO_LDFLAGS) $(EXTRA_DSO_LDOPTS) $(STATMOTIF)
  61.  
  62. $(OBJDIR)/stubs.c: ../common/npunix.c
  63.