Part of makefile clean up for windows. Changes include removing old cruft, giving each

component it's own module name (this helps clear up problems with the xp connect type lib
name for each component), making sure libs built in src directories have _s suffix as
they are static libraries and unifying component names with "msg" prefixes.
Also removed extraneous CPP_SRCS info.
This commit is contained in:
mscott%netscape.com 1999-06-07 07:16:53 +00:00
parent b71ffc7f9d
commit f8948272f2
4 changed files with 70 additions and 229 deletions

View File

@ -21,88 +21,38 @@
# representations of RFC822 messages
#
#//------------------------------------------------------------------------
#//
#// Specify the depth of the current directory relative to the
#// root of NS
#//
#//------------------------------------------------------------------------
DEPTH=..\..\..\..
MODULE=mime
#//------------------------------------------------------------------------
#//
# New build system where zip dll is build indepenant of java stubs.
#//
#//------------------------------------------------------------------------
MODULE = htmlemitter
REQUIRES=
#EXPORTS =\
# .\nsMimeEmitter.h \
# $(NULL)
################################################################################
## exports
################################################################################
## library
LIBNAME = .\$(OBJDIR)\htmlemitter
DLL = $(LIBNAME).dll
DEFINES= -NS_DEBUG
DEFINES=
#//------------------------------------------------------------------------
#//
#// Define the files necessary to build the target (ie. OBJS)
#//
#//------------------------------------------------------------------------
OBJS= \
OBJS= \
.\$(OBJDIR)\nsMimeEmitter.obj \
.\$(OBJDIR)\nsEmitterFactory.obj \
$(NULL)
#//------------------------------------------------------------------------
#//
#// Define any Public Make Variables here: (ie. PDFFILE, MAPFILE, ...)
#//
#//------------------------------------------------------------------------
DLLNAME=$(MODULE)
MAPFILE=$(MODULE).map
DEFFILE=$(MODULE).def
#//------------------------------------------------------------------------
#//
#// Define any Public Targets here (ie. PROGRAM, LIBRARY, DLL, ...)
#// (these must be defined before the common makefiles are included)
#//
#//------------------------------------------------------------------------
#
DLL=.\$(OBJDIR)\$(DLLNAME).dll
#//------------------------------------------------------------------------
#//
#// Define any local options for the make tools
#// (ie. LCFLAGS, LLFLAGS, LLIBS, LINCS)
#//
#//------------------------------------------------------------------------
DEFINES= -NS_DEBUG
MSGLIBS= \
$(NULL)
# These are the libraries we need to link with to create the dll
# These are the libraries we need to link with to create the dll
LLIBS= \
$(LLIBS) \
$(LIBNSPR) \
LLIBS= \
$(LLIBS) \
$(LIBNSPR) \
$(DIST)\lib\xppref32.lib \
$(DIST)\lib\mimetype.lib \
$(DIST)\lib\xpcom.lib \
$(DIST)\lib\emitterutils.lib \
$(DIST)\lib\emitterutils_s.lib \
$(NULL)
#//------------------------------------------------------------------------
#//
#// Include the common makefile rules
#//
#//------------------------------------------------------------------------
include <$(DEPTH)/config/rules.mak>
MISCDEP=$(LLIBS)
install:: $(DLL)
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).dll $(DIST)\bin\components
include <$(DEPTH)\config\rules.mak>
clobber::
rm -f $(DIST)\bin\$(DLLNAME).dll
libs:: $(DLL)
$(MAKE_INSTALL) $(LIBNAME).$(DLL_SUFFIX) $(DIST)\bin\components
$(MAKE_INSTALL) $(LIBNAME).$(LIB_SUFFIX) $(DIST)\lib

View File

@ -14,88 +14,35 @@
# Reserved.
#
#//------------------------------------------------------------------------
#//
#// Specify the depth of the current directory relative to the
#// root of NS
#//
#//------------------------------------------------------------------------
DEPTH=..\..\..\..
MODULE=mime
#//------------------------------------------------------------------------
#//
# New build system where zip dll is build indepenant of java stubs.
#//
#//------------------------------------------------------------------------
MODULE = rawemitter
REQUIRES=
#EXPORTS =\
# .\nsMimeEmitter.h \
# $(NULL)
################################################################################
## exports
################################################################################
## library
DEFINES=
LIBNAME = .\$(OBJDIR)\rawemitter
DLL = $(LIBNAME).dll
#//------------------------------------------------------------------------
#//
#// Define the files necessary to build the target (ie. OBJS)
#//
#//------------------------------------------------------------------------
OBJS= \
CPP_OBJS= \
.\$(OBJDIR)\nsMimeEmitter.obj \
.\$(OBJDIR)\nsEmitterFactory.obj \
$(NULL)
#//------------------------------------------------------------------------
#//
#// Define any Public Make Variables here: (ie. PDFFILE, MAPFILE, ...)
#//
#//------------------------------------------------------------------------
DLLNAME=$(MODULE)
MAPFILE=$(MODULE).map
DEFFILE=$(MODULE).def
#//------------------------------------------------------------------------
#//
#// Define any Public Targets here (ie. PROGRAM, LIBRARY, DLL, ...)
#// (these must be defined before the common makefiles are included)
#//
#//------------------------------------------------------------------------
#
DLL=.\$(OBJDIR)\$(DLLNAME).dll
#//------------------------------------------------------------------------
#//
#// Define any local options for the make tools
#// (ie. LCFLAGS, LLFLAGS, LLIBS, LINCS)
#//
#//------------------------------------------------------------------------
DEFINES= -NS_DEBUG
MSGLIBS= \
$(NULL)
# These are the libraries we need to link with to create the dll
# These are the libraries we need to link with to create the dll
LLIBS= \
$(LLIBS) \
$(LIBNSPR) \
LLIBS= \
$(LLIBS) \
$(LIBNSPR) \
$(DIST)\lib\xppref32.lib \
$(DIST)\lib\mimetype.lib \
$(DIST)\lib\xpcom.lib \
$(DIST)\lib\emitterutils.lib \
$(DIST)\lib\emitterutils_s.lib \
$(NULL)
#//------------------------------------------------------------------------
#//
#// Include the common makefile rules
#//
#//------------------------------------------------------------------------
include <$(DEPTH)/config/rules.mak>
MISCDEP=$(LLIBS)
install:: $(DLL)
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).dll $(DIST)\bin\components
include <$(DEPTH)\config\rules.mak>
clobber::
rm -f $(DIST)\bin\$(DLLNAME).dll
libs:: $(DLL)
$(MAKE_INSTALL) $(LIBNAME).$(DLL_SUFFIX) $(DIST)\bin\components
$(MAKE_INSTALL) $(LIBNAME).$(LIB_SUFFIX) $(DIST)\lib

View File

@ -16,36 +16,31 @@
# Reserved.
DEPTH=..\..\..\..
IGNORE_MANIFEST=1
MODULE=mime
include <$(DEPTH)\config\config.mak>
################################################################################
## exports
LIBRARY_NAME=emitterutils
MODULE= mailnews
REQUIRES=nspr
DEFINES=-D_IMPL_NS_HTML -DWIN32_LEAN_AND_MEAN
CPPSRCS= nsEmitterUtils.cpp \
nsMimeRebuffer.cpp \
EXPORTS= nsEmitterUtils.h \
nsMimeRebuffer.h \
$(NULL)
CPP_OBJS= .\$(OBJDIR)\nsEmitterUtils.obj \
.\$(OBJDIR)\nsMimeRebuffer.obj \
$(NULL)
################################################################################
## library
LIBRARY_NAME=emitterutils_s
EXPORTS= nsEmitterUtils.h \
nsMimeRebuffer.h \
$(NULL)
LCFLAGS = \
LCFLAGS = \
$(LCFLAGS) \
$(DEFINES) \
$(NULL)
CPP_OBJS= .\$(OBJDIR)\nsEmitterUtils.obj \
.\$(OBJDIR)\nsMimeRebuffer.obj \
$(NULL)
include <$(DEPTH)\config\rules.mak>
libs:: $(LIBRARY)

View File

@ -21,88 +21,37 @@
# representations of RFC822 messages
#
#//------------------------------------------------------------------------
#//
#// Specify the depth of the current directory relative to the
#// root of NS
#//
#//------------------------------------------------------------------------
DEPTH=..\..\..\..
MODULE=mime
#//------------------------------------------------------------------------
#//
# New build system where zip dll is build indepenant of java stubs.
#//
#//------------------------------------------------------------------------
MODULE = xmlemitter
REQUIRES=
#EXPORTS =\
# .\nsMimeEmitter.h \
# $(NULL)
################################################################################
## exports
################################################################################
## library
DEFINES=
LIBNAME = .\$(OBJDIR)\xmlemitter
DLL = $(LIBNAME).dll
#//------------------------------------------------------------------------
#//
#// Define the files necessary to build the target (ie. OBJS)
#//
#//------------------------------------------------------------------------
OBJS= \
CPP_OBJS= \
.\$(OBJDIR)\nsMimeEmitter.obj \
.\$(OBJDIR)\nsEmitterFactory.obj \
$(NULL)
#//------------------------------------------------------------------------
#//
#// Define any Public Make Variables here: (ie. PDFFILE, MAPFILE, ...)
#//
#//------------------------------------------------------------------------
DLLNAME=$(MODULE)
MAPFILE=$(MODULE).map
DEFFILE=$(MODULE).def
#//------------------------------------------------------------------------
#//
#// Define any Public Targets here (ie. PROGRAM, LIBRARY, DLL, ...)
#// (these must be defined before the common makefiles are included)
#//
#//------------------------------------------------------------------------
#
DLL=.\$(OBJDIR)\$(DLLNAME).dll
#//------------------------------------------------------------------------
#//
#// Define any local options for the make tools
#// (ie. LCFLAGS, LLFLAGS, LLIBS, LINCS)
#//
#//------------------------------------------------------------------------
DEFINES= -NS_DEBUG
MSGLIBS= \
$(NULL)
# These are the libraries we need to link with to create the dll
# These are the libraries we need to link with to create the dll
LLIBS= \
$(LLIBS) \
$(LIBNSPR) \
$(DIST)\lib\xppref32.lib \
$(DIST)\lib\mimetype.lib \
LLIBS= \
$(LLIBS) \
$(LIBNSPR) \
$(DIST)\lib\xppref32.lib \
$(DIST)\lib\mimetype.lib \
$(DIST)\lib\xpcom.lib \
$(DIST)\lib\emitterutils.lib \
$(DIST)\lib\emitterutils_s.lib \
$(NULL)
#//------------------------------------------------------------------------
#//
#// Include the common makefile rules
#//
#//------------------------------------------------------------------------
include <$(DEPTH)/config/rules.mak>
MISCDEP=$(LLIBS)
install:: $(DLL)
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).dll $(DIST)\bin\components
include <$(DEPTH)\config\rules.mak>
libs:: $(DLL)
$(MAKE_INSTALL) $(LIBNAME).$(DLL_SUFFIX) $(DIST)\bin\components
$(MAKE_INSTALL) $(LIBNAME).$(LIB_SUFFIX) $(DIST)\lib
clobber::
rm -f $(DIST)\bin\$(DLLNAME).dll