зеркало из https://github.com/mozilla/pjs.git
101 строка
2.8 KiB
Plaintext
101 строка
2.8 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
|
|
#
|
|
|
|
#------------------------------------------------------------------------
|
|
#
|
|
# Makefile to build the IMGLIB LIB
|
|
#
|
|
#------------------------------------------------------------------------
|
|
|
|
!ifdef MOZ_JAVA
|
|
LOCAL_JMC_SUBDIR = .
|
|
!endif
|
|
|
|
|
|
LIBRARY_NAME = nspng
|
|
|
|
#
|
|
# Make sure we have MOZILLA_CLIENT defined so we get the
|
|
# proper JS includes
|
|
#
|
|
LCFLAGS = $(LCFLAGS) -DMOZILLA_CLIENT
|
|
|
|
!ifdef BUILD_DEBUG_GC
|
|
LCFLAGS = $(LCFLAGS) -DDEBUG_GC
|
|
!endif
|
|
|
|
LCFLAGS = $(LCFLAGS) /TP
|
|
|
|
LLIBS= $(LIBNSPR) \
|
|
$(DIST)\lib\util.lib \
|
|
$(DIST)\lib\png.lib \
|
|
$(DIST)\lib\xpcom.lib \
|
|
$(DIST)\lib\zlib.lib \
|
|
!ifdef NU_CACHE
|
|
$(DIST)\lib\cache.lib \
|
|
!endif
|
|
$(NULL)
|
|
|
|
LIBRARY= .\$(OBJDIR)\$(LIBNAME).lib
|
|
LIBRARY_SUFFIX = $(MOZ_BITS)$(VERSION_NUMBER)
|
|
|
|
MAKE_OBJ_TYPE=DLL
|
|
#//------------------------------------------------------------------------
|
|
#//
|
|
#// Define any Public Make Variables here: (ie. PDFFILE, MAPFILE, ...)
|
|
#//
|
|
#//------------------------------------------------------------------------
|
|
DLLNAME=nspng$(MOZ_BITS)$(VERSION_NUMBER)
|
|
DLL1NAME=nspng$(MOZ_BITS)$(VERSION_NUMBER)
|
|
PDBFILE=$(DLLNAME).pdb
|
|
MAPFILE=$(DLLNAME).map
|
|
DEFFILE=nspng.def
|
|
|
|
|
|
#//------------------------------------------------------------------------
|
|
#//
|
|
#// Define any Public Targets here (ie. PROGRAM, LIBRARY, DLL, ...)
|
|
#// (these must be defined before the common makefiles are included)
|
|
#//
|
|
#//------------------------------------------------------------------------
|
|
DLL=.\$(OBJDIR)\$(DLLNAME).dll
|
|
MAPFILE= $(DLLNAME).map
|
|
|
|
|
|
|
|
MODULE=img
|
|
DEPTH=..\..\..
|
|
|
|
LINCS=-I$(DEPTH)/dist/public/xpcom -I. -I$(DEPTH)/dist/public/raptor \
|
|
-I$(DEPTH)/dist/public/png -I$(DEPTH)/dist/public/zlib -I$(DEPTH)/dist/public/img
|
|
|
|
REQUIRES=nspr xpcom util raptor png zlib
|
|
CPPSRCS= dllcompat.cpp nsPNGDecoder.cpp nsPNGCallback.cpp ipng.cpp png_png.cpp
|
|
CPP_OBJS=.\$(OBJDIR)\nsPNGDecoder.obj .\$(OBJDIR)\nsPNGCallback.obj .\$(OBJDIR)\dllcompat.obj \
|
|
.\$(OBJDIR)\ipng.obj .\$(OBJDIR)\png_png.obj
|
|
|
|
|
|
include <$(DEPTH)\config\rules.mak>
|
|
|
|
install:: $(DLL)
|
|
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).dll $(DIST)\bin\components
|
|
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).lib $(DIST)\lib
|
|
|