зеркало из https://github.com/mozilla/gecko-dev.git
105 строки
2.3 KiB
Makefile
105 строки
2.3 KiB
Makefile
#!gmake
|
|
#
|
|
# 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/
|
|
#
|
|
# 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.
|
|
#
|
|
# The Original Code is mozilla.org code.
|
|
#
|
|
# The Initial Developer of the Original Code is Netscape
|
|
# Communications Corporation. Portions created by Netscape are
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All
|
|
# Rights Reserved.
|
|
#
|
|
# Contributor(s):
|
|
|
|
DEPTH = ../..
|
|
|
|
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 \
|
|
addr.c \
|
|
$(NULL)
|
|
|
|
ifdef MOZ_MAIL_NEWS
|
|
CSRCS += \
|
|
mimevcrd.c \
|
|
$(NULL)
|
|
endif
|
|
|
|
REQUIRES = mime nspr dbm img util layer security pref js julian nls xp network
|
|
|
|
include $(DEPTH)/config/rules.mk
|
|
|
|
FILT_SRCS = mimefilt.c mimestub.c
|
|
FILT_OBJS = $(addprefix $(OBJDIR)/,$(FILT_SRCS:.c=.o))
|
|
|
|
ifdef MOZ_SECURITY
|
|
INCLUDES += -I$(DEPTH)/lib/libmime -I$(DIST)/public/security
|
|
endif
|
|
|
|
INCLUDES += -I./
|
|
|
|
ifndef MOZ_MAIL_COMPOSE
|
|
DEFINES += -DMOZILLA_30
|
|
endif
|
|
|
|
ifdef MOZ_SECURITY
|
|
DEFINES += -DMOZ_SECURITY
|
|
endif
|
|
|
|
#
|
|
# Building the "mimefilt" executable, which reads a message from stdin and
|
|
# writes HTML to stdout
|
|
|
|
FILT_LIBS=-L$(DIST)/lib -L$(DIST)/bin -li18n -lnetwork -lxp \
|
|
-lnspr21 -lplc21 -lplds21
|
|
|
|
$(OBJDIR)/mimefilt: $(FILT_OBJS) $(LIBRARY)
|
|
@$(MAKE_OBJDIR)
|
|
rm -f $@
|
|
$(CC) -o $@ $(CFLAGS) $(FILT_OBJS) $(LIBRARY) $(FILT_LIBS) $(LDFLAGS)
|
|
|
|
$(OBJDIR)/mimefilt.pure: $(LIBRARY) $(FILT_OBJS)
|
|
@$(MAKE_OBJDIR)
|
|
rm -f $@
|
|
$(PURIFY) $(CC) -o $@ $(NOMD_CFLAGS) $(FILT_OBJS) $(LIBRARY) $(FILT_LIBS) $(LDFLAGS)
|
|
|
|
TAGS:: $(LIB_SRCS) $(FILT_SRCS) $(HEADERS)
|
|
$(ETAGS) $(LIB_SRCS) $(FILT_SRCS) $(HEADERS)
|