gecko-dev/lib/libmime/Makefile

101 lines
2.2 KiB
Makefile
Raw Normal View History

1998-03-28 02:44:41 +00:00
#!gmake
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
DEPTH = ../..
MODULE = mime
LIBRARY_NAME = mime
1998-06-22 21:21:28 +00:00
CSRCS = \
mimecont.c \
1998-03-28 02:44:41 +00:00
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 \
1998-03-28 02:44:41 +00:00
$(NULL)
1998-09-08 19:30:41 +00:00
ifdef MOZ_MAIL_NEWS
CSRCS += \
mimevcrd.c \
$(NULL)
endif
REQUIRES = mime nspr dbm img util layer security pref js julian nls xp network
1998-03-28 02:44:41 +00:00
include $(DEPTH)/config/rules.mk
FILT_SRCS = mimefilt.c mimestub.c
FILT_OBJS = $(addprefix $(OBJDIR)/,$(FILT_SRCS:.c=.o))
1998-07-02 01:15:11 +00:00
ifdef MOZ_SECURITY
1998-06-22 21:21:28 +00:00
INCLUDES += -I$(DEPTH)/lib/libmime -I$(DIST)/public/security
1998-03-28 02:44:41 +00:00
endif
INCLUDES += -I./
1998-06-22 21:21:28 +00:00
ifndef MOZ_MAIL_COMPOSE
DEFINES += -DMOZILLA_30
endif
1998-10-15 22:42:14 +00:00
ifdef MOZ_SECURITY
DEFINES += -DMOZ_SECURITY
endif
1998-03-28 02:44:41 +00:00
#
# 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
1998-03-28 02:44:41 +00:00
$(OBJDIR)/mimefilt: $(FILT_OBJS) $(LIBRARY)
1998-03-28 02:44:41 +00:00
@$(MAKE_OBJDIR)
rm -f $@
$(CC) -o $@ $(CFLAGS) $(FILT_OBJS) $(LIBRARY) $(FILT_LIBS) $(LDFLAGS)
1998-03-28 02:44:41 +00:00
$(OBJDIR)/mimefilt.pure: $(LIBRARY) $(FILT_OBJS)
1998-03-28 02:44:41 +00:00
@$(MAKE_OBJDIR)
rm -f $@
$(PURIFY) $(CC) -o $@ $(NOMD_CFLAGS) $(FILT_OBJS) $(LIBRARY) $(FILT_LIBS) $(LDFLAGS)
1998-03-28 02:44:41 +00:00
TAGS:: $(LIB_SRCS) $(FILT_SRCS) $(HEADERS)
$(ETAGS) $(LIB_SRCS) $(FILT_SRCS) $(HEADERS)