зеркало из https://github.com/mozilla/pjs.git
147 строки
3.6 KiB
Plaintext
147 строки
3.6 KiB
Plaintext
#!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.
|
|
|
|
IGNORE_MANIFEST=1
|
|
|
|
#
|
|
#//------------------------------------------------------------------------
|
|
#//
|
|
#// Specify the depth of the current directory relative to the
|
|
#// root of NS
|
|
#//
|
|
#//------------------------------------------------------------------------
|
|
|
|
DEPTH = ..\..
|
|
|
|
# Turn on/off depending on
|
|
!ifdef MOZ_JSD
|
|
DIRS = classes
|
|
!endif
|
|
|
|
#//------------------------------------------------------------------------
|
|
#//
|
|
#// Define any Public Make Variables here: (ie. PDFFILE, MAPFILE, ...)
|
|
#//
|
|
#//------------------------------------------------------------------------
|
|
|
|
DLLNAME = jsd$(MOZ_BITS)$(VERSION_NUMBER)
|
|
PDBFILE = $(DLLNAME).pdb
|
|
MAPFILE = $(DLLNAME).map
|
|
RESFILE = $(DLLNAME).res
|
|
DLL =.\$(OBJDIR)\$(DLLNAME).dll
|
|
MAKE_OBJ_TYPE = DLL
|
|
|
|
!if "$(MOZ_BITS)" != "16"
|
|
LINCS = -I$(PUBLIC)/java \
|
|
-I$(PUBLIC)/applet \
|
|
-I$(DEPTH)\include
|
|
!endif
|
|
|
|
!if "$(MOZ_BITS)" == "16"
|
|
DEFFILE = $(DLLNAME).def
|
|
!endif
|
|
|
|
LLIBS= $(LIBNSPR) \
|
|
$(DIST)\lib\js$(MOZ_BITS)$(VERSION_NUMBER).lib \
|
|
$(DIST)\lib\jrt$(MOZ_BITS)$(VERSION_NUMBER).lib
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
#//
|
|
#// install headers
|
|
#//
|
|
#//------------------------------------------------------------------------
|
|
|
|
INSTALL_DIR=$(PUBLIC)\jsdebug
|
|
|
|
INSTALL_FILE_LIST= \
|
|
jsdebug.h \
|
|
$(NULL)
|
|
|
|
|
|
MODULE=jsdebug
|
|
|
|
REQUIRES=java js nspr
|
|
|
|
CSRCS= \
|
|
jsdebug.c \
|
|
jsd_high.c \
|
|
jsd_hook.c \
|
|
!ifdef MOZ_JSD
|
|
jsdstubs.c \
|
|
jsd_java.c \
|
|
!endif
|
|
jsd_scpt.c \
|
|
jsd_stak.c \
|
|
jsd_text.c
|
|
|
|
LIBRARY_NAME=jsd
|
|
|
|
!ifdef MOZ_JSD
|
|
JDK_GEN=netscape.jsdebug.Script netscape.jsdebug.DebugController \
|
|
netscape.jsdebug.JSThreadState netscape.jsdebug.JSStackFrameInfo \
|
|
netscape.jsdebug.JSPC netscape.jsdebug.JSSourceTextProvider \
|
|
netscape.jsdebug.JSErrorReporter
|
|
!endif
|
|
|
|
EXPORTS=jsdebug.h
|
|
|
|
C_OBJS= \
|
|
.\$(OBJDIR)\jsdebug.obj \
|
|
.\$(OBJDIR)\jsd_high.obj \
|
|
.\$(OBJDIR)\jsd_hook.obj \
|
|
!ifdef MOZ_JSD
|
|
.\$(OBJDIR)\jsdstubs.obj \
|
|
.\$(OBJDIR)\jsd_java.obj \
|
|
!endif
|
|
.\$(OBJDIR)\jsd_scpt.obj \
|
|
.\$(OBJDIR)\jsd_stak.obj \
|
|
.\$(OBJDIR)\jsd_text.obj
|
|
|
|
|
|
!if "$(MOZ_BITS)" != "16"
|
|
LINCS=-I$(XPDIST)\public\java -I$(XPDIST)\public\js \
|
|
-I$(XPDIST)\public\nspr
|
|
!endif
|
|
|
|
#//------------------------------------------------------------------------
|
|
#//
|
|
#// Include the common makefile rules
|
|
#//
|
|
#//------------------------------------------------------------------------
|
|
include <$(DEPTH)\config\rules.mak>
|
|
|
|
install:: $(DLL)
|
|
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).dll $(DIST)\bin
|
|
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).lib $(DIST)\lib
|
|
|
|
clobber::
|
|
$(RM_R) _gen
|
|
$(RM_R) _stubs
|
|
|
|
.\$(OBJDIR)\jsdstubs.o: \
|
|
$(JDK_STUB_DIR)\netscape_jsdebug_Script.c \
|
|
$(JDK_STUB_DIR)\netscape_jsdebug_DebugController.c \
|
|
$(JDK_STUB_DIR)\netscape_jsdebug_JSThreadState.c \
|
|
$(JDK_STUB_DIR)\netscape_jsdebug_JSStackFrameInfo.c \
|
|
$(JDK_STUB_DIR)\netscape_jsdebug_JSPC.c \
|
|
$(JDK_STUB_DIR)\netscape_jsdebug_JSSourceTextProvider.c
|
|
|
|
export:: INSTALL_FILES
|
|
|
|
|