scripts/makefile.dj2

Branch


Log

Author Commit Date CI Message
Cosmin Truta 9cc729b5 2025-01-21T19:06:43 build: Update scripts/makefile.* Apply the following updates: * Tidy up the compiler flag definitions. * Update the Darwin, Linux and MSYS makefiles to match the compiler flags used in scripts/makefile.clang and scripts/makefile.gcc. * Add the `pngtest-static` target in the Darwin makefile, following on the Linux makefile. * Rewrite some of the implicit make rules to match one another more consistently. * Make corrections in the copyright years to match git log.
Cosmin Truta 1cdde118 2024-02-11T23:14:09 build: Update the makefiles for the benefit of cross-compilation Split AR_RC into AR and ARFLAGS. The variables AR and ARFLAGS are de-facto standards (like CC and CFLAGS, LD and LDFLAGS, etc.) that may be overridden when running make. Moreover, configuring CC, LD, AR, etc., to point to a cross-platform compiler, linker, librarian, etc., is a de-facto standard practice as well. Also remove the MKDIR_P variable definitions from all makefiles. They've been leftovers from the removal of the "install*" targets.
Cosmin Truta 9b65ad49 2022-09-18T19:37:40 scripts: Remove the support for "install" targets from all makefiles In most of the legacy makefiles (with only a few notable exceptions such as makefile.linux), the "install" targets have been broken since libpng-1.5.0beta01. Specifically, the "install-shared" targets produced incorrect library names, due to a missing symbol in the definition of the LIBSOREL macro. Rather than correcting this long-standing and long-untested error, we decided to remove the support for "make install" altogether, from all legacy makefiles. Further use of "make install", "make install-static" or "make install-shared" will fail with an error message. Going forward, the only tested and supported manners to install libpng shall be the conventional build and install procedures driven by the configure script or by the CMake file.
Cosmin Truta c64655d0 2022-09-14T21:18:20 scripts: Set the compiler warning options to "-Wall -Wextra -Wundef" Considering that "-Wextra" is a more descriptive alternative to "-W", and that "-Wundef" is a highly useful warning option that has been available in ancient versions of gcc (version 2.x), we replace all occurrences of "-W -Wall" with "-Wall -Wextra -Wundef". Also clean up the makefiles.
Cosmin Truta 3cec1a16 2020-03-29T23:58:29 scripts: Clean up the makefiles Delete variables (ALIGN, ARCH, DOCS) and targets (writelock) that are no longer necessary. Reorder the object file lists alphabetically, consistently across all makefiles and build scripts. Apply other minor fixes.
Glenn Randers-Pehrson d55c4f32 2014-08-21T05:53:38 [master] Imported from libpng-1.6.13.tar
Glenn Randers-Pehrson ff649a07 2014-08-07T19:51:35 [libpng16] Eliminated use of "$<" when copying $PNGLIBCONF_H_PREBUILT in makefiles. This does not work on some versions of make; bug introduced in libpng version 1.6.11.
Glenn Randers-Pehrson d21eae44 2014-06-05T09:53:19 [master] Imported from libpng-1.6.11.tar
Cosmin Truta 9ab7b4ca 2014-03-22T13:13:11 [libpng16] Allow an easy replacement of the default pre-built configuration header with a custom header, via the make PNGLIBCONF_H_PREBUILT macro.
Cosmin Truta 82200dae 2014-03-22T09:29:59 [libpng16] $(CP) is now used alongside $(RM_F). Also, use 'copy' instead of 'cp' where applicable, and applied other minor makefile changes.
Glenn Randers-Pehrson a710317d 2014-02-05T22:28:57 [master] Imported from libpng-1.6.9.tar
Glenn Randers-Pehrson 5af0307f 2014-01-20T12:36:30 [libpng16] Imported from libpng-1.6.9beta04.tar
Glenn Randers-Pehrson 42503281 2014-01-12T10:44:01 [libpng16] Updated scripts/makefile.* to use CPPFLAGS (Cosmin)
Glenn Randers-Pehrson 871b1d0f 2013-03-02T14:58:22 [libpng16] Bump version to 1.6.1beta05
Glenn Randers-Pehrson f3af706c 2012-02-02T23:11:45 [libpng16] Imported from libpng-1.6.0beta05.tar
Glenn Randers-Pehrson 0da9cf38 2013-02-13T22:49:19 [master] Imported from libpng-1.6.0.tar
John Bowler 6f237b6b 2012-03-02T13:13:15 [libpng16] Remove whitespace at end of lines
Glenn Randers-Pehrson a6f369b1 2011-12-21T08:15:07 [libpng16] Imported from libpng-1.6.0beta02.tar
Glenn Randers-Pehrson 0b3634bc 2011-12-17T09:57:00 [libpng16] Reverted install of pngconfig.h
Glenn Randers-Pehrson efaeadaa 2011-12-17T09:06:34 [libpng16] Added pngconfig.h file. This indirect reference to config.h avoids problems with build scripts that search for config.h and find an inappropriate one in the standard paths.
Glenn Randers-Pehrson 5c5db5a5 2011-01-21T23:23:34 [devel] Imported from libpng-1.5.1beta07.tar
Glenn Randers-Pehrson 8c667864 2010-08-24T16:16:35 [devel] Renamed scripts/pnglibconf.h to scripts/pnglibconf.h.prebuilt
Glenn Randers-Pehrson 31aee0d0 2010-07-29T17:39:14 [devel] Fixed point APIs are now supported throughout (no missing APIs). Internal fixed point arithmetic support exists for all internal floating point operations. sCAL validates the floating point strings it is passed. Safe, albeit rudimentary, Watcom support is provided by PNG_API_RULE==2 Two new APIs exist to get the number of passes without turning on the PNG_INTERLACE transform and to get the number of rows in the current pass. A new test program, pngvalid.c, validates the gamma code. Errors in the 16 bit gamma correction (overflows) have been corrected. cHRM chunk testing is done consistently (previously the floating point API bypassed it, because the test really didn't work on FP, now the test is performed on the actual values to be stored in the PNG file so it works in the FP case too.) Most floating point APIs now simply call the fixed point APIs after converting the values to the fixed point form used in the PNG file. The standard headers no longer include zlib.h, which is currently only required for pngstruct.h and can therefore be internal. (Patches by John Bowler)
Glenn Randers-Pehrson abd68eb9 2010-07-24T17:59:23 [master] Imported from libpng-1.4.4beta03.tar
Glenn Randers-Pehrson 0ce80769 2010-07-16T21:17:50 [master] Added -DNO_PNG_SNPRINTF to CFLAGS in scripts/makefile.dj2
Glenn Randers-Pehrson 11a6f585 2010-07-16T21:07:55 [devel] Added -DNO_PNG_SNPRINTF to CFLAGS in scripts/makefile.dj2
Glenn Randers-Pehrson 72531443 2010-04-17T08:17:51 [devel] Revise scripts to work with pnglibconf.h
Glenn Randers-Pehrson c3cd22b4 2010-03-08T21:10:25 [devel] Moved "#include png.h" inside pngpriv.h and removed "#include png.h" from the source files, along with "#define PNG_EXPOSE_INTERNAL_STRUCTURES" and "#define PNG_NO_PEDANTIC_WARNINGS" (John Bowler). Also created new pngdebug.h and moved debug definitions there.
Glenn Randers-Pehrson e3f3c4ea 2010-02-07T18:08:50 [devel] Imported from libpng-1.5.0beta01.tar
Glenn Randers-Pehrson 7e3a82cd 2010-01-02T23:05:45 [master] Imported from libpng-1.4.0.tar
Glenn Randers-Pehrson 03f9b029 2009-12-04T08:40:41 [devel] Removed "-DPNG_CONFIGURE_LIBPNG" from the makefiles and projects. and added "#define PNG_NO_PEDANTIC_WARNINGS" in the libpng source files.
Glenn Randers-Pehrson 5aa86761 2009-11-25T16:04:13 [master] Bump to version 1.2.41rc04
Glenn Randers-Pehrson ea88d94d 2009-11-25T08:41:00 [master] Imported from libpng-1.2.41rc03.tar
Glenn Randers-Pehrson de5c9322 2009-11-25T08:51:04 [master] Disabled the new pedantic warnings about deprecated function use and deprecated structure access unless the user defines PNG_PEDANTIC_WARNINGS. Added "#define PNG_NO_PEDANTIC_WARNINGS" in the libpng source files. Removed "-DPNG_CONFIGURE_LIBPNG" from the makefiles and projects since the warnings no longer depend on this.
Glenn Randers-Pehrson 20e82ae2 2009-11-08T19:18:45 [master] Added deprectated-use reporting ported from libpng-1.4.0
Glenn Randers-Pehrson 58c4f6b3 2009-11-07T10:50:29 Added -DPNG_CONFIGURE_LIBPNG to the makefile CFLAGS to prevent warnings about direct access to png structs by libpng functions while building libpng. They need to be tested, especially those using compilers other than gcc.
Glenn Randers-Pehrson eba11d2b 2009-06-28T20:26:26 [master] Imported from libpng-1.2.38rc02.tar
Glenn Randers-Pehrson bfbf8655 2009-06-26T21:46:52 [devel] Imported from libpng-1.4.0beta66.tar
Glenn Randers-Pehrson c332bbcd 2009-06-25T13:43:50 [devel] Revise references to zlib/libpng license
Glenn Randers-Pehrson e0dc4c8a 2009-06-25T12:17:26 [devel] Imported from libpng-1.4.0beta65.tar
Glenn Randers-Pehrson 037023bb 2009-06-24T10:27:36 [devel] Revise references to zlib-libpng license
Glenn Randers-Pehrson 3e61d798 2009-06-24T09:31:28 [devel] Mention zlib-libpng license in each source file
Glenn Randers-Pehrson glennrp@comcast.net 031a8648 2009-05-07T17:12:33 Merged scripts/makefiles and other scripts with libpng-1.4.0beta57. These are mostly just cosmetic changes.
Glenn Randers-Pehrson glennrp@comcast.net 7ecf7bdc 2009-05-02T15:36:08 Removed support of pngprefs.h from makefiles. It is no longer used since the MMX support was removed.
Glenn Randers-Pehrson 3779c696 2006-11-07T20:38:11 Imported from libpng-1.4.0beta13.tar
Glenn Randers-Pehrson beb572e6 2006-08-19T13:59:24 Imported from libpng-1.4.0beta11.tar
Glenn Randers-Pehrson b3870ab5 2006-05-11T09:43:09 Imported from libpng-1.4.0beta4.tar
Glenn Randers-Pehrson 17218294 2006-04-20T07:20:46 Imported from libpng-1.4.0beta1.tar
Glenn Randers-Pehrson 5b5dcf8b 2004-07-17T22:45:44 Imported from libpng-1.2.6beta3.tar
Glenn Randers-Pehrson 761bf9f0 2002-10-31T19:53:20 Imported from libpng-1.2.6beta2.tar
Glenn Randers-Pehrson 03008a08 2002-04-27T10:11:25 Imported from libpng-1.2.3rc1.tar
Glenn Randers-Pehrson 5c6aeb25 1998-12-29T11:47:59 Imported from libpng-1.0.2a.tar
Glenn Randers-Pehrson ea3bcd70 1998-03-07T14:33:00 Imported from libpng-0.99k.tar
Glenn Randers-Pehrson 08a3343e 1998-03-07T06:06:55 Imported from libpng-0.99i.tar