home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / lib / libmime / Makefile next >
Encoding:
Makefile  |  1998-04-08  |  3.2 KB  |  124 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. DEPTH        = ../..
  19.  
  20. MODULE        = mime
  21. LIBRARY_NAME    = mime
  22.  
  23. CSRCS        = mimecont.c \
  24.           mimedrft.c \
  25.           mimeebod.c \
  26.           mimeenc.c \
  27.           mimeeobj.c \
  28.           mimehdrs.c \
  29.           mimei.c \
  30.           mimeiimg.c \
  31.           mimeleaf.c \
  32.           mimemalt.c \
  33.           mimemapl.c \
  34.           mimemdig.c \
  35.           mimemmix.c \
  36.           mimemoz.c \
  37.           mimempar.c \
  38.           mimemrel.c \
  39.           mimemsg.c \
  40.           mimemsig.c \
  41.           mimemult.c \
  42.           mimeobj.c \
  43.           mimepbuf.c \
  44.           mimesun.c \
  45.           mimetenr.c \
  46.           mimetext.c \
  47.           mimethtm.c \
  48.           mimetpla.c \
  49.           mimetric.c \
  50.           mimeunty.c \
  51.           mimevcrd.c \
  52.           mimecryp.c \
  53.           $(NULL)
  54.  
  55. ifndef NO_SECURITY
  56. CSRCS        += mimempkc.c \
  57.            mimepkcs.c \
  58.           $(NULL)
  59. endif
  60.  
  61. REQUIRES    = nspr dbm img util layer security pref js
  62.  
  63. include $(DEPTH)/config/rules.mk
  64.  
  65. FILT_SRCS    = mimefilt.c mimestub.c
  66. FILT_OBJS    = $(addprefix $(OBJDIR)/,$(FILT_SRCS:.c=.o))
  67.  
  68. ifndef NO_SECURITY
  69. INCLUDES    += $(DEPTH)/../ns_include/libmime
  70. endif
  71.  
  72. #
  73. # Building the "mimefilt" executable, which reads a message from stdin and
  74. # writes HTML to stdout
  75. #
  76. LIBMSG_DIR    = ../libmsg
  77. LIBXP_DIR    = ../xp
  78. LIBXP_BIN_DIR    = $(LIBXP_DIR)/$(OBJDIR)
  79. LIBMSG_BIN_DIR    = $(LIBMSG_DIR)/$(OBJDIR)
  80.  
  81. EXT_OBJECTS    = $(LIBMSG_BIN_DIR)/addr.o \
  82.           $(LIBXP_BIN_DIR)/xp_file.o \
  83.           $(LIBXP_BIN_DIR)/xp_str.o \
  84.           $(LIBXP_BIN_DIR)/xp_intl.o \
  85.           $(LIBXP_BIN_DIR)/xp_error.o \
  86.           $(LIBXP_BIN_DIR)/xp_trace.o \
  87.           $(LIBXP_BIN_DIR)/xp_reg.o \
  88.           $(LIBXP_BIN_DIR)/xp_hash.o \
  89.           $(LIBXP_BIN_DIR)/xp_list.o \
  90.           $(NULL)
  91.  
  92. FILT_STUBS    = $(EXT_OBJECTS) \
  93.           $(LIBXP_BIN_DIR)/allxpstr.o \
  94.           $(DIST)/lib/libpkcs7.$(LIB_SUFFIX) \
  95.           $(DIST)/lib/libsecmod.$(LIB_SUFFIX) \
  96.           $(DIST)/lib/libcert.$(LIB_SUFFIX) \
  97.           $(DIST)/lib/libkey.$(LIB_SUFFIX) \
  98.           $(DIST)/lib/libsecutil.$(LIB_SUFFIX) \
  99.           $(DIST)/lib/libhash.$(LIB_SUFFIX) \
  100.           $(DIST)/lib/libssl.$(LIB_SUFFIX) \
  101.           $(DIST)/lib/libcrypto.$(LIB_SUFFIX) \
  102.           $(DIST)/lib/libdbm.$(LIB_SUFFIX) \
  103.           $(DIST)/lib/libaddr.$(LIB_SUFFIX) \
  104.           $(DIST)/lib/libnspr.$(LIB_SUFFIX) \
  105.           $(NULL)
  106.  
  107. $(EXT_OBJECTS):
  108.     @cd $(shell dirname $@)/../ ; \
  109.     $(MAKE_OBJDIR) ; \
  110.     $(MAKE) $(subst $(LIBXP_BIN_DIR)/,,$(subst $(LIBMSG_BIN_DIR)/,,$@))
  111.  
  112. $(OBJDIR)/mimefilt: $(FILT_OBJS) $(LIBRARY) $(FILT_STUBS)
  113.     @$(MAKE_OBJDIR)
  114.     rm -f $@
  115.     $(CC) -o $@ $(CFLAGS) $(FILT_OBJS) $(LIBRARY) $(FILT_STUBS) $(LDFLAGS)
  116.  
  117. $(OBJDIR)/mimefilt.pure: $(LIBRARY) $(FILT_OBJS) $(FILT_STUBS)
  118.     @$(MAKE_OBJDIR)
  119.     rm -f $@
  120.     $(PURIFY) $(CC) -o $@ $(NOMD_CFLAGS) $(FILT_OBJS) $(LIBRARY) $(FILT_STUBS) $(LDFLAGS)
  121.  
  122. TAGS:: $(LIB_SRCS) $(FILT_SRCS) $(HEADERS)
  123.     $(ETAGS) $(LIB_SRCS) $(FILT_SRCS) $(HEADERS)
  124.