pjs/gconfig/WIN32.mk

154 строки
4.1 KiB
Makefile
Исходник Обычный вид История

#
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla 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/MPL/
#
# 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 the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 2 or later (the "GPL"), or
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
# in which case the provisions of the GPL or the LGPL are applicable instead
# of those above. If you wish to allow use of your version of this file only
# under the terms of either the GPL or the LGPL, and not to allow others to
# use your version of this file under the terms of the MPL, indicate your
# decision by deleting the provisions above and replace them with the notice
# and other provisions required by the GPL or the LGPL. If you do not delete
# the provisions above, a recipient may use your version of this file under
# the terms of any one of the MPL, the GPL or the LGPL.
#
# ***** END LICENSE BLOCK *****
#
# Configuration common to all versions of Windows NT
# and Windows 95
#
DEFAULT_COMPILER = cl
CC = cl
CCC = cl
LINK = link
AR = lib
AR += -NOLOGO -OUT:"$@"
RANLIB = echo
BSDECHO = echo
NSINSTALL_DIR = $(GDEPTH)/gconfig/nsinstall
NSINSTALL = nsinstall
INSTALL = $(NSINSTALL)
MAKE_OBJDIR = mkdir
MAKE_OBJDIR += $(OBJDIR)
RC = rc.exe
GARBAGE += $(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdb
MAPFILE = $(PROGRAM:.exe=.map)
MAP = /MAP:$(MAPFILE)
PDBFILE = $(PROGRAM:.exe=.pdb)
PDB = /PDB:$(PDBFILE)
IMPFILE = $(PROGRAM:.exe=.lib)
IMP = /IMPLIB:$(IMPFILE)
XP_DEFINE += -DXP_PC
LIB_SUFFIX = lib
DLL_SUFFIX = dll
OUT_NAME = -out:
1998-05-13 03:15:00 +04:00
ARCHIVE_SUFFIX = _s
NATIVE_PLATFORM=win
NATIVE_RAPTOR_WIDGET =
1998-07-31 03:33:17 +04:00
NATIVE_RAPTOR_GFX = raptorgfxwin
1998-08-25 23:00:32 +04:00
NATIVE_RAPTOR_WEB=raptorweb
1998-10-29 22:17:27 +03:00
NATIVE_SMTP_LIB=libsmtp
1998-10-30 03:48:05 +03:00
NATIVE_MIME_LIB=libmime
1998-10-30 00:09:07 +03:00
NATIVE_MSG_COMM_LIB=libcomm
1998-08-06 06:16:51 +04:00
RAPTOR_GFX=
1998-08-12 21:59:45 +04:00
VERSION_NUMBER=50
1998-09-09 03:35:54 +04:00
NATIVE_JULIAN_DLL=jul$(MOZ_BITS)$(VERSION_NUMBER)
1998-08-10 23:46:33 +04:00
PLATFORM_DIRECTORY=windows
1998-08-12 22:05:19 +04:00
NATIVE_ZLIB_DLL=zip$(MOZ_BITS)$(VERSION_NUMBER)
1998-08-12 22:06:34 +04:00
NATIVE_XP_DLL=xplib
1998-09-21 22:37:17 +04:00
1998-10-08 22:56:06 +04:00
ifdef MOZ_ZULU_FREE
1998-09-21 22:37:17 +04:00
NATIVE_LIBNLS_LIBS=nlsstub10
else
NATIVE_LIBNLS_LIBS=nsfmt$(MOZ_BITS)30 nsuni$(MOZ_BITS)30 nscck$(MOZ_BITS)30 nsjpn$(MOZ_BITS)30 nscnv$(MOZ_BITS)30 nssb$(MOZ_BITS)30
endif
1998-08-13 01:36:51 +04:00
XP_PREF_DLL=xppref$(MOZ_BITS)
ifdef RCFILE
RCFILE := $(RCFILE).rc
RESFILE = $(OBJDIR)/$(RCFILE:.rc=.res)
endif
OS_LIBS = gdi32.lib kernel32.lib advapi32.lib user32.lib
MATH_LIB=
1998-05-11 23:06:15 +04:00
GUI_LIBS =
NSPR_LIBS = libplds21 libplc21 libnspr21
1998-05-11 23:06:15 +04:00
OPT_SLASH = /
LIB_PREFIX =
1998-05-11 23:33:23 +04:00
XP_REG_LIB = libreg$(MOZ_BITS)
1998-05-11 23:06:15 +04:00
ifdef BUILD_OPT
OS_CFLAGS += -MD
OPTIMIZER += -O2
DEFINES += -UDEBUG -U_DEBUG -DNDEBUG
DLLFLAGS += -OUT:"$@"
1998-08-05 06:17:36 +04:00
LDFLAGS += /SUBSYSTEM:WINDOWS /NOLOGO
else
#
# Define USE_DEBUG_RTL if you want to use the debug runtime library
# (RTL) in the debug build
#
ifdef USE_DEBUG_RTL
OS_CFLAGS += -MDd
else
OS_CFLAGS += -MD
endif
OPTIMIZER += -Od -Z7
#OPTIMIZER += -Zi -Fd$(OBJDIR)/ -Od
DEFINES += -DDEBUG -D_DEBUG -UNDEBUG
DLLFLAGS += -DEBUG -DEBUGTYPE:CV -OUT:"$@"
LDFLAGS += -DEBUG -DEBUGTYPE:BOTH /SUBSYSTEM:CONSOLE /NOLOGO
endif
# XXX FIXME: I doubt we use this. It is redundant with
# SHARED_LIBRARY.
ifdef DLL
DLL := $(addprefix $(OBJDIR)/, $(DLL))
endif
DEFINES += -DWIN32
#
# The following is NOT needed for the NSPR 2.0 library.
#
DEFINES += -D_WINDOWS
1998-07-29 02:37:09 +04:00
#
# The default is no MFC anywhere
#
DEFINES += -DWIN32_LEAN_AND_MEAN
1998-09-05 02:02:21 +04:00
1998-10-28 20:19:53 +03:00
ifdef MOZ_TRACE_XPCOM_REFCNT
DEFINES += -DMOZ_TRACE_XPCOM_REFCNT
endif
1998-09-05 02:02:21 +04:00