From bc86fc78f01a15622485f83fd518a9f7fd3594fb Mon Sep 17 00:00:00 2001 From: scullin Date: Fri, 5 Jun 1998 01:08:32 +0000 Subject: [PATCH] Clean up for use in modular netlib, create library on windows. --- lib/libpwcac/makefile.win | 73 +++++++++++++++++++++++++++++++++++++++ lib/libpwcac/pwcacapi.c | 3 +- 2 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 lib/libpwcac/makefile.win diff --git a/lib/libpwcac/makefile.win b/lib/libpwcac/makefile.win new file mode 100644 index 00000000000..c3ec5b2a9e3 --- /dev/null +++ b/lib/libpwcac/makefile.win @@ -0,0 +1,73 @@ +# 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. + +NODEPEND=1 +IGNORE_MANIFEST = 1 + + +#//------------------------------------------------------------------------ +#// +#// Specify the depth of the current directory relative to the +#// root of NS +#// +#//------------------------------------------------------------------------ +DEPTH= ..\..\ + +#//------------------------------------------------------------------------ +#// +#// Define any Public Make Variables here: (ie. PDFFILE, MAPFILE, ...) +#// +#//------------------------------------------------------------------------ +LIBNAME=libpwcac + +#//------------------------------------------------------------------------ +#// +#// Define the files necessary to build the target (ie. OBJS) +#// +#//------------------------------------------------------------------------ +OBJS= \ + .\$(OBJDIR)\pwcacapi.obj \ + $(NULL) + +#//------------------------------------------------------------------------ +#// +#// Define any Public Targets here (ie. PROGRAM, LIBRARY, DLL, ...) +#// (these must be defined before the common makefiles are included) +#// +#//------------------------------------------------------------------------ + +LIBRARY=.\$(OBJDIR)\$(LIBNAME).lib + + +#//------------------------------------------------------------------------ +#// +#// Define any local options for the make tools +#// (ie. LCFLAGS, LLFLAGS, LLIBS, LINCS) +#// +#//------------------------------------------------------------------------ +LINCS=$(LINCS) -I. \ + +# clobber and clobber_all will remove the following garbage: +GARBAGE= $(GARBAGE) _gen + +#//------------------------------------------------------------------------ +#// +#// Include the common makefile rules +#// +#//------------------------------------------------------------------------ +include <$(DEPTH)/config/rules.mak> + +export:: $(LIBRARY) + $(MAKE_INSTALL) $(LIBRARY) $(DIST)\lib diff --git a/lib/libpwcac/pwcacapi.c b/lib/libpwcac/pwcacapi.c index fc576395337..9dfe64d9067 100644 --- a/lib/libpwcac/pwcacapi.c +++ b/lib/libpwcac/pwcacapi.c @@ -22,6 +22,7 @@ * Written by Lou Montulli Jan 98 */ #include "xp.h" +#include "prlog.h" #include "mcom_db.h" #include "pwcacapi.h" @@ -92,7 +93,7 @@ pc_open_database(void) have_tried_open = TRUE; /* only do this once */ - TRACEMSG(("Could not open cache database -- errno: %d", errno)); + PR_LogPrint("Could not open cache database -- errno: %d",errno); /* if the file is zero length remove it */