#!nmake
#
# 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


#//------------------------------------------------------------------------
#//
#// Makefile to build 
#//
#//------------------------------------------------------------------------


#//------------------------------------------------------------------------
#//
#// Specify the depth of the current directory relative to the
#// root of MOZILLA
#//
#//------------------------------------------------------------------------
DEPTH= ..\..

#//------------------------------------------------------------------------
#//
#// Define any Public Make Variables here: (ie. PDFFILE, MAPFILE, ...)
#//
#//------------------------------------------------------------------------

MAKE_OBJ_TYPE=DLL

DLLNAME=caps
DLL=.\$(OBJDIR)\$(DLLNAME).dll

#//------------------------------------------------------------------------
#// 
#// Define the files necessary to build the target (ie. OBJS)
#//
#//------------------------------------------------------------------------

C_OBJS=                                     \
    .\$(OBJDIR)\nsZip.obj                   \
    .\$(OBJDIR)\nsLoadZig.obj               \
    .\$(OBJDIR)\jpermission.obj             \
    $(NULL)


CPP_OBJS=                                       \
    .\$(OBJDIR)\nsUserDialogHelper.obj      \
    .\$(OBJDIR)\nsZig.obj                   \
    .\$(OBJDIR)\nsPrincipal.obj             \
    .\$(OBJDIR)\nsPrivilege.obj             \
    .\$(OBJDIR)\nsPrivilegeManager.obj      \
    .\$(OBJDIR)\nsPrivilegeTable.obj        \
    .\$(OBJDIR)\nsSystemPrivilegeTable.obj  \
    .\$(OBJDIR)\nsTarget.obj                \
    .\$(OBJDIR)\nsUserTarget.obj            \
    .\$(OBJDIR)\admin.obj                   \
    .\$(OBJDIR)\nsCaps.obj                  \
    .\$(OBJDIR)\nsCCapsManager.obj          \
    .\$(OBJDIR)\nsCCertPrincipal.obj        \
    .\$(OBJDIR)\nsCCodebasePrincipal.obj    \
    .\$(OBJDIR)\nsCCapsManagerFactory.obj   \
    .\$(OBJDIR)\nsCCodeSourcePrincipal.obj  \
    $(NULL)


#//------------------------------------------------------------------------
#//
#// Define any Public Targets here (ie. PROGRAM, LIBRARY, DLL, ...)
#// (these must be defined before the common makefiles are included)
#//
#//------------------------------------------------------------------------


#//------------------------------------------------------------------------
#//
#// Define any local options for the make tools 
#//     (ie. LCFLAGS, LLFLAGS, LLIBS, LINCS)
#//
#//------------------------------------------------------------------------
LINCS= $(LINCS) \
		-I$(PUBLIC)\js \
		-I$(PUBLIC)\nspr \
		-I$(PUBLIC)\xpcom \
		-I$(PUBLIC)\security \
		-I$(PUBLIC)\libimg   \
		-I$(PUBLIC)\jar \
		-I$(PUBLIC)\zlib \
		-I$(PUBLIC)\pref \
		-I$(DEPTH)\lib\layout \
		-I$(DEPTH)\lib\libstyle \
		-I$(PUBLIC)\caps \
		-I$(PUBLIC)\public \
#		-I$(PUBLIC)\rdf \
		$(NULL)

LLIBS = \
	$(LIBNSPR)			\
	$(DIST)\lib\libplc21.lib	\
	$(DIST)\lib\xpcom32.lib         \
	$(DIST)\lib\xplib.lib           \
	$(ZIPLIB)                       \
	$(NULL)


#//------------------------------------------------------------------------
#//
#// 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

