diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2013-07-23 16:24:19 +0100 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2015-07-20 18:21:17 +0100 |
commit | 6948650efd3fb9e2a70b8cf16aca57e9d0b7eb0a (patch) | |
tree | 5c2a1c671c1d4521f8a770d1e69e3d4342718030 /libpng/scripts/makefile.bc32 | |
parent | 7fd9e0be26e67c36f87733bc89ea07dc26d9f839 (diff) | |
download | ghostpdl-6948650efd3fb9e2a70b8cf16aca57e9d0b7eb0a.tar.gz |
Commit of build_consolidation branch
Squashed into one commit (see branch for details of the evolution of the
branch).
This brings gpcl6 and gxps into the Ghostscript build system, and a shared
set of graphics library object files for all the interpreters.
Also, brings the same configuration options to the pcl and xps products as we
have for Ghostscript.
Diffstat (limited to 'libpng/scripts/makefile.bc32')
-rw-r--r-- | libpng/scripts/makefile.bc32 | 158 |
1 files changed, 158 insertions, 0 deletions
diff --git a/libpng/scripts/makefile.bc32 b/libpng/scripts/makefile.bc32 new file mode 100644 index 000000000..bdbc4cb2f --- /dev/null +++ b/libpng/scripts/makefile.bc32 @@ -0,0 +1,158 @@ +# Makefile for libpng +# 32-bit Borland C++ (Note: All modules are compiled in C mode) +# To build the library, do: +# "make -fmakefile.bc32" +# +# -------------------- 32-bit Borland C++ -------------------- + +### Absolutely necessary for this makefile to work +.AUTODEPEND + +## Where zlib.h, zconf.h and zlib.lib are +ZLIB_DIR=..\zlib + +## Compiler, linker, librarian and other tools +CC=bcc32 +LD=bcc32 +LIB=tlib +CP=copy + +# -3 = 386, -4 = 486, -5 = Pentium etc. +!ifndef TARGET_CPU +#TARGET_CPU=-6 +!endif + +# Use this if you don't want Borland's fancy exception handling +# (Caution: doesn't work with CBuilderX) +#NOEHLIB=noeh32.lib + +!ifdef DEBUG +CDEBUG=-v +LDEBUG=-v +!else +CDEBUG= +LDEBUG= +!endif + +# STACKOFLOW=1 +!ifdef STACKOFLOW +CDEBUG=$(CDEBUG) -N +LDEBUG=$(LDEBUG) -N +!endif + +# -O2 optimize for speed +# -d merge duplicate strings +# -k- turn off standard stack frame +# -w display all warnings +CPPFLAGS=-I$(ZLIB_DIR) +CFLAGS=-O2 -d -k- -w $(TARGET_CPU) $(CDEBUG) + +# -M generate map file +LDFLAGS=-L$(ZLIB_DIR) -M $(LDEBUG) + +# Pre-built configuration +# See scripts\pnglibconf.mak for more options +!ifndef PNGLIBCONF_H_PREBUILT +PNGLIBCONF_H_PREBUILT = scripts\pnglibconf.h.prebuilt +!endif + +## Variables +OBJS = \ + png.obj \ + pngerror.obj \ + pngget.obj \ + pngmem.obj \ + pngpread.obj \ + pngread.obj \ + pngrio.obj \ + pngrtran.obj \ + pngrutil.obj \ + pngset.obj \ + pngtrans.obj \ + pngwio.obj \ + pngwrite.obj \ + pngwtran.obj \ + pngwutil.obj + +LIBOBJS = \ + +png.obj \ + +pngerror.obj \ + +pngget.obj \ + +pngmem.obj \ + +pngpread.obj \ + +pngread.obj \ + +pngrio.obj \ + +pngrtran.obj \ + +pngrutil.obj \ + +pngset.obj \ + +pngtrans.obj \ + +pngwio.obj \ + +pngwrite.obj \ + +pngwtran.obj \ + +pngwutil.obj + +LIBNAME=libpng.lib + +## Implicit rules +# Braces let make "batch" calls to the compiler, +# 2 calls instead of 12; space is important. +.c.obj: + $(CC) $(CPPFLAGS) $(CFLAGS) -c {$*.c } + +.c.exe: + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $*.c \ + $(LIBNAME) zlib.lib $(NOEHLIB) + +.obj.exe: + $(LD) $(LDFLAGS) $*.obj $(LIBNAME) zlib.lib $(NOEHLIB) + +## Major targets +all: libpng pngtest + +libpng: $(LIBNAME) + +pngtest: pngtest.exe + +test: pngtest.exe + pngtest + +## Minor Targets + +pnglibconf.h: $(PNGLIBCONF_H_PREBUILT) + $(CP) $(PNGLIBCONF_H_PREBUILT) $@ + +png.obj: png.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h +pngerror.obj: pngerror.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h +pngget.obj: pngget.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h +pngmem.obj: pngmem.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h +pngpread.obj: pngpread.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h +pngread.obj: pngread.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h +pngrio.obj: pngrio.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h +pngrtran.obj: pngrtran.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h +pngrutil.obj: pngrutil.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h +pngset.obj: pngset.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h +pngtrans.obj: pngtrans.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h +pngwio.obj: pngwio.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h +pngwrite.obj: pngwrite.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h +pngwtran.obj: pngwtran.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h +pngwutil.obj: pngwutil.c png.h pngconf.h pnglibconf.h pngpriv.h pngstruct.h pnginfo.h pngdebug.h +pngtest.obj: pngtest.c png.h pngconf.h pnglibconf.h + +$(LIBNAME): $(OBJS) + -del $(LIBNAME) + $(LIB) $(LIBNAME) @&&| +$(LIBOBJS), libpng +| + +# Cleanup +clean: + -del pnglibconf.h + -del *.obj + -del $(LIBNAME) + -del pngtest.exe + -del *.lst + -del *.map + -del *.tds + -del pngout.png + +# End of makefile for libpng |