1998-08-20 00:42:14 +04:00
|
|
|
#!gmake
|
|
|
|
#
|
1999-11-06 06:43:54 +03:00
|
|
|
# The contents of this file are subject to the Netscape Public
|
|
|
|
# License Version 1.1 (the "License"); you may not use this file
|
|
|
|
# except in compliance with the License. You may obtain a copy of
|
|
|
|
# the License at http://www.mozilla.org/NPL/
|
1998-08-20 00:42:14 +04:00
|
|
|
#
|
1999-11-06 06:43:54 +03:00
|
|
|
# Software distributed under the License is distributed on an "AS
|
|
|
|
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
|
|
# implied. See the License for the specific language governing
|
|
|
|
# rights and limitations under the License.
|
1998-08-20 00:42:14 +04:00
|
|
|
#
|
1999-11-06 06:43:54 +03:00
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is Netscape
|
1998-08-20 00:42:14 +04:00
|
|
|
# Communications Corporation. Portions created by Netscape are
|
1999-11-06 06:43:54 +03:00
|
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
# Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
1998-08-20 00:42:14 +04:00
|
|
|
|
|
|
|
DEPTH = ../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
1998-08-26 08:04:57 +04:00
|
|
|
VPATH = @srcdir@
|
1998-08-20 00:42:14 +04:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
MODULE = mime
|
|
|
|
LIBRARY_NAME = mime
|
|
|
|
|
|
|
|
CSRCS = \
|
|
|
|
mimecont.c \
|
|
|
|
mimedrft.c \
|
|
|
|
mimeebod.c \
|
|
|
|
mimeenc.c \
|
|
|
|
mimeeobj.c \
|
|
|
|
mimehdrs.c \
|
|
|
|
mimei.c \
|
|
|
|
mimeiimg.c \
|
|
|
|
mimeleaf.c \
|
|
|
|
mimemalt.c \
|
|
|
|
mimemapl.c \
|
|
|
|
mimemdig.c \
|
|
|
|
mimemmix.c \
|
|
|
|
mimemoz.c \
|
|
|
|
mimempar.c \
|
|
|
|
mimemrel.c \
|
|
|
|
mimemsg.c \
|
|
|
|
mimemsig.c \
|
|
|
|
mimemult.c \
|
|
|
|
mimeobj.c \
|
|
|
|
mimepbuf.c \
|
|
|
|
mimesun.c \
|
|
|
|
mimetenr.c \
|
|
|
|
mimetext.c \
|
|
|
|
mimethtm.c \
|
|
|
|
mimetpla.c \
|
|
|
|
mimetric.c \
|
|
|
|
mimeunty.c \
|
1998-08-26 08:04:57 +04:00
|
|
|
addr.c \
|
1998-08-20 00:42:14 +04:00
|
|
|
$(NULL)
|
|
|
|
|
1998-09-09 12:15:05 +04:00
|
|
|
ifdef MOZ_MAIL_NEWS
|
|
|
|
CSRCS += \
|
|
|
|
mimevcrd.c \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
1998-10-21 06:13:56 +04:00
|
|
|
REQUIRES = mime dbm img util layer security pref js julian nls xp network
|
1998-08-20 00:42:14 +04:00
|
|
|
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
|
|
|
FILT_SRCS = mimefilt.c mimestub.c
|
|
|
|
FILT_OBJS = $(addprefix $(OBJDIR)/,$(FILT_SRCS:.c=.o))
|
|
|
|
|
|
|
|
ifdef MOZ_SECURITY
|
1998-09-09 12:15:05 +04:00
|
|
|
INCLUDES += -I$(DEPTH)/lib/libmime -I$(DIST)/public/security
|
1998-08-20 00:42:14 +04:00
|
|
|
endif
|
|
|
|
|
1998-09-09 12:15:05 +04:00
|
|
|
INCLUDES += -I$(srcdir)/
|
1998-09-05 14:25:13 +04:00
|
|
|
|
|
|
|
ifndef MOZ_MAIL_COMPOSE
|
|
|
|
DEFINES += -DMOZILLA_30
|
|
|
|
endif
|
1998-08-26 08:04:57 +04:00
|
|
|
|
1998-10-16 22:53:47 +04:00
|
|
|
ifdef MOZ_SECURITY
|
|
|
|
DEFINES += -DMOZ_SECURITY
|
|
|
|
endif
|
1998-08-26 08:04:57 +04:00
|
|
|
|
1998-08-20 00:42:14 +04:00
|
|
|
#
|
|
|
|
# Building the "mimefilt" executable, which reads a message from stdin and
|
|
|
|
# writes HTML to stdout
|
|
|
|
|
1998-10-21 06:13:56 +04:00
|
|
|
FILT_LIBS=-L$(DIST)/lib -L$(DIST)/bin -li18n -lnetwork -lxp $(NSPR_LIBS)
|
1998-08-20 00:42:14 +04:00
|
|
|
|
1998-08-26 08:04:57 +04:00
|
|
|
$(OBJDIR)/mimefilt: $(FILT_OBJS) $(LIBRARY)
|
1998-08-20 00:42:14 +04:00
|
|
|
@$(MAKE_OBJDIR)
|
|
|
|
rm -f $@
|
1998-08-26 08:04:57 +04:00
|
|
|
$(CC) -o $@ $(CFLAGS) $(FILT_OBJS) $(LIBRARY) $(FILT_LIBS) $(LDFLAGS)
|
1998-08-20 00:42:14 +04:00
|
|
|
|
1998-08-26 08:04:57 +04:00
|
|
|
$(OBJDIR)/mimefilt.pure: $(LIBRARY) $(FILT_OBJS)
|
1998-08-20 00:42:14 +04:00
|
|
|
@$(MAKE_OBJDIR)
|
|
|
|
rm -f $@
|
1998-08-26 08:04:57 +04:00
|
|
|
$(PURIFY) $(CC) -o $@ $(NOMD_CFLAGS) $(FILT_OBJS) $(LIBRARY) $(FILT_LIBS) $(LDFLAGS)
|
1998-08-20 00:42:14 +04:00
|
|
|
|
|
|
|
TAGS:: $(LIB_SRCS) $(FILT_SRCS) $(HEADERS)
|
|
|
|
$(ETAGS) $(LIB_SRCS) $(FILT_SRCS) $(HEADERS)
|