home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / lib / libmocha / Makefile < prev   
Encoding:
Makefile  |  1998-04-08  |  2.0 KB  |  91 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. MODULE        = mocha
  23. LIBRARY_NAME    = mocha
  24.  
  25. REQUIRES    = lay net parse img js style layer applet dbm nspr security \
  26.           htmldlgs util jtools pref java libreg softupdt jsdebug
  27.  
  28. CSRCS        = et_mocha.c \
  29.           et_moz.c \
  30.           lm_applt.c \
  31.           lm_bars.c \
  32.           lm_cmpnt.c \
  33.           lm_doc.c \
  34.           lm_embed.c \
  35.           lm_event.c \
  36.           lm_form.c \
  37.           lm_hardw.c \
  38.           lm_hist.c \
  39.           lm_href.c \
  40.           lm_img.c \
  41.           lm_init.c \
  42.           lm_input.c \
  43.           lm_nav.c \
  44.           lm_plgin.c \
  45.           lm_screen.c \
  46.           lm_supdt.c \
  47.           lm_taint.c \
  48.           lm_trggr.c \
  49.           lm_url.c \
  50.           lm_win.c \
  51.           lm_layer.c \
  52.           $(NULL)
  53.  
  54.  
  55. ifdef MOZ_JAVA
  56. CSRCS +=             \
  57.           lm_jsd.c \
  58.           $(NULL)
  59. endif
  60.  
  61. ifndef NO_SECURITY
  62. CSRCS        += lm_crypt.c lm_pk11.c
  63. endif
  64.  
  65. include $(DEPTH)/config/rules.mk
  66.  
  67. DEFINES        += -DDLL_SUFFIX=\"$(DLL_SUFFIX)\"
  68.  
  69. EMBED_CFLAGS    = $(CFLAGS) -I$(DEPTH)/lib/plugin
  70. TAINT_CFLAGS    = $(CFLAGS) -I$(DEPTH)/lib/libjar -I$(DEPTH)/sun-java/netscape/security/_jri
  71.  
  72. ifneq ($(OS_ARCH),OS2)
  73. $(OBJDIR)/lm_embed.o: lm_embed.c
  74.     @$(MAKE_OBJDIR)
  75.     $(CC) -o $@ -c $(EMBED_CFLAGS) $<
  76.  
  77. $(OBJDIR)/lm_taint.o: lm_taint.c
  78.     @$(MAKE_OBJDIR)
  79.     $(CC) -o $@ -c $(TAINT_CFLAGS) $<
  80.  
  81. else
  82. $(OBJDIR)/lm_embed.o: lm_embed.c
  83.     @$(MAKE_OBJDIR)
  84.     $(CC) -Fo$@ -c $(EMBED_CFLAGS) $<
  85.  
  86. $(OBJDIR)/lm_taint.o: lm_taint.c
  87.     @$(MAKE_OBJDIR)
  88.     $(CC) -Fo$@ -c $(TAINT_CFLAGS) $<
  89.  
  90. endif
  91.