1998-03-28 05:44:41 +03:00
|
|
|
#!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 libpng.lib for wintel
|
|
|
|
#-----------------------------------------
|
|
|
|
|
|
|
|
MAKE_OBJ_TYPE=LIB
|
|
|
|
|
|
|
|
!ifdef BUILD_DEBUG_GC
|
|
|
|
LCFLAGS = $(LCFLAGS) -DDEBUG_GC
|
|
|
|
!endif
|
|
|
|
|
|
|
|
EXPORTS = png.h pngconf.h
|
|
|
|
|
|
|
|
MODULE=png
|
|
|
|
DEPTH=..\..\..
|
|
|
|
LOCAL_INCLUDES=-I.
|
|
|
|
LIBRARY_NAME=png
|
|
|
|
CSRCS=png.c pngerror.c pngget.c pngmem.c pngpread.c pngread.c pngrio.c \
|
|
|
|
pngrutil.c pngset.c pngtrans.c pngwio.c pngwrite.c pngwtran.c \
|
|
|
|
pngrtran.c pngwutil.c
|
|
|
|
REQUIRES=util nspr zlib
|
|
|
|
C_OBJS=.\$(OBJDIR)\png.obj .\$(OBJDIR)\pngerror.obj \
|
|
|
|
.\$(OBJDIR)\pngget.obj .\$(OBJDIR)\pngmem.obj \
|
|
|
|
.\$(OBJDIR)\pngpread.obj .\$(OBJDIR)\pngread.obj \
|
|
|
|
.\$(OBJDIR)\pngrio.obj .\$(OBJDIR)\pngrutil.obj \
|
|
|
|
.\$(OBJDIR)\pngset.obj .\$(OBJDIR)\pngtrans.obj \
|
|
|
|
.\$(OBJDIR)\pngwio.obj .\$(OBJDIR)\pngwrite.obj \
|
|
|
|
.\$(OBJDIR)\pngwtran.obj .\$(OBJDIR)\pngrtran.obj \
|
|
|
|
.\$(OBJDIR)\pngwutil.obj
|
|
|
|
!if "$(MOZ_BITS)" != "16"
|
|
|
|
LINCS=-I$(XPDIST)\public\util -I$(XPDIST)\public\nspr \
|
|
|
|
-I$(XPDIST)\public\zlib
|
|
|
|
!endif
|
|
|
|
|
1998-04-22 01:38:43 +04:00
|
|
|
include <$(DEPTH)\config\rules.mak>
|
1998-03-28 05:44:41 +03:00
|
|
|
|
|
|
|
#export:: $(LIBRARY)
|
|
|
|
install:: $(LIBRARY)
|
|
|
|
$(MAKE_INSTALL) $(LIBRARY) $(DIST)\lib\
|
|
|
|
|
|
|
|
#install:: export
|
|
|
|
|
|
|
|
|
|
|
|
!if "$(MOZ_BITS)" == "16"
|
|
|
|
#// We must turn off register optimization for release builds so interpreter.c
|
|
|
|
#// can build. Otherwise array accesses for segmented arrays don't work. See
|
|
|
|
#// bug report 67973 for details. (Note: normal setting for release build is
|
|
|
|
#// -Ox -Os where -Ox = "-Ob1cegilnot -Gs" so we have removed the -Oe.)
|
|
|
|
#//
|
|
|
|
$(OBJDIR)\pngrtran.obj: pngrtran.c
|
|
|
|
@$(CC) @<<$(CFGFILE)
|
|
|
|
-c
|
|
|
|
-Ob1cglnots -Gs -UDEBUG -DNDEBUG
|
|
|
|
$(CFLAGS)
|
|
|
|
$(LCFLAGS)
|
|
|
|
$(LINCS)
|
|
|
|
$(LINCS_1)
|
|
|
|
$(INCS)
|
|
|
|
-Fd$(PDBFILE)
|
|
|
|
-Fo.\$(OBJDIR)\
|
|
|
|
$(*B).c
|
|
|
|
<<KEEP
|
|
|
|
|
|
|
|
!ifdef MOZ_DEBUG
|
|
|
|
$(OBJDIR)\pngrutil.obj: pngrutil.c
|
|
|
|
@$(CC) @<<$(CFGFILE)
|
|
|
|
-c
|
|
|
|
-Ob1cgnots -Gs -UDEBUG -DNDEBUG
|
|
|
|
$(CFLAGS)
|
|
|
|
$(LCFLAGS)
|
|
|
|
$(LINCS)
|
|
|
|
$(LINCS_1)
|
|
|
|
$(INCS)
|
|
|
|
-Fd$(PDBFILE)
|
|
|
|
-Fo.\$(OBJDIR)\
|
|
|
|
$(*B).c
|
|
|
|
<<KEEP
|
|
|
|
!endif
|
|
|
|
|
|
|
|
!endif
|
|
|
|
#//endif moz_bits == 16
|