Patch title: Release 89 bulk changes
Abstract:
File: /install/make-win32-i386-gcc
Key:
    Removed line
    Added line
#!/bin/sh
#
# This is the script that will cross compile Win32 Pliant executables
# and DLLs from a Linux system.
# It will probably not work on any box but mine since cross compiling is
# very non standard.
# If you plan to compile yourself Win32 Pliant executables and DLLs,
# rather use the .bat file
# Copyright (C) 2001  Hubert Tonneau  hubert.tonneau@pliant.cx
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 2
# as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# version 2 along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

prefix=/usr/local
target=i386-pc-cygwin
bin=${prefix}/bin/
cross=${target}-

linkage="$1"

if [ "$1" = "root" ]; then
  pliant="$2"
  linkage="$3"
elif [ -d $HOME/pliant/ ]; then
  pliant=$HOME/pliant/
elif [ -d /pliant/ ]; then
  pliant=/pliant/
elif [ -d /usr/share/pliant/ ]; then
  pliant=/usr/share/pliant/
elif [ -d /usr/local/pliant/ ]; then
  pliant=/usr/local/pliant/
else
  echo Could not find Pliant directory.
  exit 1
fi

binary_path="${pliant}archive/win32-i386/"
compiler="${bin}${cross}gcc"
assembler="${bin}${cross}as"
linker="${bin}${cross}ld"
include_options="-I${prefix}/{target}/include"
compiler_options="-b i386-pc-cygwin -O2 -m486 -mregparm=3 -mrtd -D_REGISTERS_ -U__stdcall"
debug0_options="-D_NOCHECK_ -fomit-frame-pointer -D_LISTING_"
debug1_options="-D_NOCHECK_ -D_LISTING_"
debug2_options="-D_CHECK_"
link_options="-s"
exe_options="-D_EXE_"
dll_compile_options="-fPIC -D_DLL_"
dll_link_options="-shared"
context_options="-D_i386_ -D_WIN32_API_ -D_WIN32_ -D_GCC_ -nostdlib"
extra_options=""
extra_files="${prefix}/${target}/lib/libkernel32.a"
if [ ! -d ${binary_path} ]; then
  mkdir -p $binary_path
fi
rm ${binary_path}/* 2>/dev/null

echo "compiling Pliant loaders"
$compiler $include_options $compiler_options $debug0_options -Dc_debugging_level=0 $link_options $exe_options $context_options $api_options $extra_options -o ${binary_path}pliant-debug0.exe ${pliant}pliant/language/startup/loader.c $extra_files
$compiler $include_options $compiler_options $debug0_options -Dc_debugging_level=1 $link_options $exe_options $context_options $api_options $extra_options -o ${binary_path}pliant-debug1.exe ${pliant}pliant/language/startup/loader.c $extra_files 
$compiler $include_options $compiler_options $debug0_options -Dc_debugging_level=2 $link_options $exe_options $context_options $api_options $extra_options -o ${binary_path}pliant-debug2.exe ${pliant}pliant/language/startup/loader.c $extra_files 

echo "compiling Pliant DLL (debugging level 0)"
$compiler $include_options $compiler_options $dll_compile_options $debug0_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}pliant-debug0.s ${pliant}pliant/install/pliant.c
$assembler -o ${binary_path}pliant-debug0.o ${binary_path}pliant-debug0.s
echo EXPORTS>${binary_path}pliant.def
echo pliant>>${binary_path}pliant.def
${bin}${cross}dlltool --def ${binary_path}pliant.def --output-exp ${binary_path}pliant.exp --dllname pliant-debug0.dll
$linker --dll --enable-stdcall-fixup -e _init_pliant_dll@12 -s -o ${binary_path}pliant-debug0.dll ${binary_path}pliant.exp ${binary_path}pliant-debug0.o $extra_files

echo "compiling Pliant DLL (debugging level 1)"
$compiler $include_options $compiler_options $dll_compile_options $debug1_options -Dc_debugging_level=1 $context_options $api_options $extra_options -S -o ${binary_path}pliant-debug1.s ${pliant}pliant/install/pliant.c
$assembler -o ${binary_path}pliant-debug1.o ${binary_path}pliant-debug1.s
echo EXPORTS>${binary_path}pliant.def
echo pliant>>${binary_path}pliant.def
${bin}${cross}dlltool --def ${binary_path}pliant.def --output-exp ${binary_path}pliant.exp --dllname pliant-debug1.dll
$linker --dll --enable-stdcall-fixup -e _init_pliant_dll@12 -s -o ${binary_path}pliant-debug1.dll ${binary_path}pliant.exp ${binary_path}pliant-debug1.o $extra_files

echo "compiling Pliant DLL (debugging level 2)"
$compiler $include_options $compiler_options $dll_compile_options $debug2_options -Dc_debugging_level=2 $context_options $api_options $extra_options -S -o ${binary_path}pliant-debug2.s ${pliant}pliant/install/pliant.c
$assembler -o ${binary_path}pliant-debug2.o ${binary_path}pliant-debug2.s
echo EXPORTS>${binary_path}pliant.def
echo pliant>>${binary_path}pliant.def
${bin}${cross}dlltool --def ${binary_path}pliant.def --output-exp ${binary_path}pliant.exp --dllname pliant-debug2.dll
$linker --dll --enable-stdcall-fixup -e _init_pliant_dll@12 -s -o ${binary_path}pliant-debug2.dll ${binary_path}pliant.exp ${binary_path}pliant-debug2.o $extra_files

compiler_options="-b i386-pc-cygwin -O2 -m486 -mrtd"
dll_compile_options="-fPIC -D_DLL_ -DZLIB_DLL -DWINDOWS -DWIN32 -DNO_GETENV"
zlib="${pliant}pliant/win32/zlib-1.1.4/"
libjpeg="${pliant}pliant/win32/jpeg-6b/"
zlib="${pliant}win32/zlib-1.1.4/"
libjpeg="${pliant}win32/jpeg-6b/"

echo "compiling zlib"
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}deflate.s ${zlib}deflate.c
$assembler -o ${binary_path}deflate.o ${binary_path}deflate.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}inflate.s ${zlib}inflate.c
$assembler -o ${binary_path}inflate.o ${binary_path}inflate.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}trees.s ${zlib}trees.c
$assembler -o ${binary_path}trees.o ${binary_path}trees.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}infblock.s ${zlib}infblock.c
$assembler -o ${binary_path}infblock.o ${binary_path}infblock.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}infcodes.s ${zlib}infcodes.c
$assembler -o ${binary_path}infcodes.o ${binary_path}infcodes.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}inftrees.s ${zlib}inftrees.c
$assembler -o ${binary_path}inftrees.o ${binary_path}inftrees.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}infutil.s ${zlib}infutil.c
$assembler -o ${binary_path}infutil.o ${binary_path}infutil.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}inffast.s ${zlib}inffast.c
$assembler -o ${binary_path}inffast.o ${binary_path}inffast.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}zutil.s ${zlib}zutil.c
$assembler -o ${binary_path}zutil.o ${binary_path}zutil.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}adler32.s ${zlib}adler32.c
$assembler -o ${binary_path}adler32.o ${binary_path}adler32.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}pliant_extra.s ${zlib}pliant_extra.c
$assembler -o ${binary_path}pliant_extra.o ${binary_path}pliant_extra.s
echo EXPORTS>${binary_path}zlib.def
echo deflateInit_>>${binary_path}zlib.def
echo deflateInit2_>>${binary_path}zlib.def
echo deflate>>${binary_path}zlib.def
echo deflateEnd>>${binary_path}zlib.def
echo inflateInit_>>${binary_path}zlib.def
echo inflateInit2_>>${binary_path}zlib.def
echo inflate>>${binary_path}zlib.def
echo inflateEnd>>${binary_path}zlib.def
echo inflateReset>>${binary_path}zlib.def
${bin}${cross}dlltool --def ${binary_path}zlib.def --output-exp ${binary_path}zlib.exp --dllname zlib.dll
$linker --dll --image-base 0x11000000 --enable-stdcall-fixup -e _init_pliant_dll@12 -s -o ${binary_path}zlib.dll ${binary_path}zlib.exp ${binary_path}deflate.o ${binary_path}inflate.o ${binary_path}trees.o ${binary_path}infblock.o ${binary_path}infcodes.o ${binary_path}inftrees.o ${binary_path}infutil.o ${binary_path}inffast.o ${binary_path}zutil.o ${binary_path}adler32.o ${binary_path}pliant_extra.o $extra_files

echo "compiling libjpeg"
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jcapimin.s ${libjpeg}jcapimin.c
$assembler -o ${binary_path}jcapimin.o ${binary_path}jcapimin.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jcapistd.s ${libjpeg}jcapistd.c
$assembler -o ${binary_path}jcapistd.o ${binary_path}jcapistd.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jdapimin.s ${libjpeg}jdapimin.c
$assembler -o ${binary_path}jdapimin.o ${binary_path}jdapimin.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jdapistd.s ${libjpeg}jdapistd.c
$assembler -o ${binary_path}jdapistd.o ${binary_path}jdapistd.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jcomapi.s ${libjpeg}jcomapi.c
$assembler -o ${binary_path}jcomapi.o ${binary_path}jcomapi.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jdinput.s ${libjpeg}jdinput.c
$assembler -o ${binary_path}jdinput.o ${binary_path}jdinput.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jcinit.s ${libjpeg}jcinit.c
$assembler -o ${binary_path}jcinit.o ${binary_path}jcinit.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jcmaster.s ${libjpeg}jcmaster.c
$assembler -o ${binary_path}jcmaster.o ${binary_path}jcmaster.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jdmaster.s ${libjpeg}jdmaster.c
$assembler -o ${binary_path}jdmaster.o ${binary_path}jdmaster.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jcmainct.s ${libjpeg}jcmainct.c
$assembler -o ${binary_path}jcmainct.o ${binary_path}jcmainct.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jcsample.s ${libjpeg}jcsample.c
$assembler -o ${binary_path}jcsample.o ${binary_path}jcsample.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jdsample.s ${libjpeg}jdsample.c
$assembler -o ${binary_path}jdsample.o ${binary_path}jdsample.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jdmaster.s ${libjpeg}jdmaster.c
$assembler -o ${binary_path}jdmaster.o ${binary_path}jdmaster.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jchuff.s ${libjpeg}jchuff.c
$assembler -o ${binary_path}jchuff.o ${binary_path}jchuff.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jdhuff.s ${libjpeg}jdhuff.c
$assembler -o ${binary_path}jdhuff.o ${binary_path}jdhuff.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jcphuff.s ${libjpeg}jcphuff.c
$assembler -o ${binary_path}jcphuff.o ${binary_path}jcphuff.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jdphuff.s ${libjpeg}jdphuff.c
$assembler -o ${binary_path}jdphuff.o ${binary_path}jdphuff.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jcmarker.s ${libjpeg}jcmarker.c
$assembler -o ${binary_path}jcmarker.o ${binary_path}jcmarker.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jdmarker.s ${libjpeg}jdmarker.c
$assembler -o ${binary_path}jdmarker.o ${binary_path}jdmarker.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jmemmgr.s ${libjpeg}jmemmgr.c
$assembler -o ${binary_path}jmemmgr.o ${binary_path}jmemmgr.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jcdctmgr.s ${libjpeg}jcdctmgr.c
$assembler -o ${binary_path}jcdctmgr.o ${binary_path}jcdctmgr.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jddctmgr.s ${libjpeg}jddctmgr.c
$assembler -o ${binary_path}jddctmgr.o ${binary_path}jddctmgr.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jmemnobs.s ${libjpeg}jmemnobs.c
$assembler -o ${binary_path}jmemnobs.o ${binary_path}jmemnobs.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jutils.s ${libjpeg}jutils.c
$assembler -o ${binary_path}jutils.o ${binary_path}jutils.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jcparam.s ${libjpeg}jcparam.c
$assembler -o ${binary_path}jcparam.o ${binary_path}jcparam.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jfdctint.s ${libjpeg}jfdctint.c
$assembler -o ${binary_path}jfdctint.o ${binary_path}jfdctint.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jfdctfst.s ${libjpeg}jfdctfst.c
$assembler -o ${binary_path}jfdctfst.o ${binary_path}jfdctfst.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jfdctflt.s ${libjpeg}jfdctflt.c
$assembler -o ${binary_path}jfdctflt.o ${binary_path}jfdctflt.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jidctint.s ${libjpeg}jidctint.c
$assembler -o ${binary_path}jidctint.o ${binary_path}jidctint.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jidctred.s ${libjpeg}jidctred.c
$assembler -o ${binary_path}jidctred.o ${binary_path}jidctred.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jidctflt.s ${libjpeg}jidctflt.c
$assembler -o ${binary_path}jidctflt.o ${binary_path}jidctflt.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jidctfst.s ${libjpeg}jidctfst.c
$assembler -o ${binary_path}jidctfst.o ${binary_path}jidctfst.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jdcolor.s ${libjpeg}jdcolor.c
$assembler -o ${binary_path}jdcolor.o ${binary_path}jdcolor.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jccolor.s ${libjpeg}jccolor.c
$assembler -o ${binary_path}jccolor.o ${binary_path}jccolor.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jquant1.s ${libjpeg}jquant1.c
$assembler -o ${binary_path}jquant1.o ${binary_path}jquant1.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jquant2.s ${libjpeg}jquant2.c
$assembler -o ${binary_path}jquant2.o ${binary_path}jquant2.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jdpostct.s ${libjpeg}jdpostct.c
$assembler -o ${binary_path}jdpostct.o ${binary_path}jdpostct.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jccoefct.s ${libjpeg}jccoefct.c
$assembler -o ${binary_path}jccoefct.o ${binary_path}jccoefct.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jcprepct.s ${libjpeg}jcprepct.c
$assembler -o ${binary_path}jcprepct.o ${binary_path}jcprepct.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jdcoefct.s ${libjpeg}jdcoefct.c
$assembler -o ${binary_path}jdcoefct.o ${binary_path}jdcoefct.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jdmainct.s ${libjpeg}jdmainct.c
$assembler -o ${binary_path}jdmainct.o ${binary_path}jdmainct.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jdmerge.s ${libjpeg}jdmerge.c
$assembler -o ${binary_path}jdmerge.o ${binary_path}jdmerge.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}jerror.s ${libjpeg}jerror.c
$assembler -o ${binary_path}jerror.o ${binary_path}jerror.s
$compiler $include_options $compiler_options $dll_compile_options -Dc_debugging_level=0 $context_options $api_options $extra_options -S -o ${binary_path}pliant_extra.s ${libjpeg}pliant_extra.c
$assembler -o ${binary_path}pliant_extra.o ${binary_path}pliant_extra.s
echo EXPORTS>${binary_path}libjpeg.def
echo jpeg_std_error>>${binary_path}libjpeg.def
echo jpeg_CreateCompress>>${binary_path}libjpeg.def
echo jpeg_set_defaults>>${binary_path}libjpeg.def
echo jpeg_set_quality>>${binary_path}libjpeg.def
echo jpeg_start_compress>>${binary_path}libjpeg.def
echo jpeg_write_scanlines>>${binary_path}libjpeg.def
echo jpeg_finish_compress>>${binary_path}libjpeg.def
echo jpeg_abort_compress>>${binary_path}libjpeg.def
echo jpeg_destroy_compress>>${binary_path}libjpeg.def
echo jpeg_write_marker>>${binary_path}libjpeg.def
echo jpeg_CreateDecompress>>${binary_path}libjpeg.def
echo jpeg_read_header>>${binary_path}libjpeg.def
echo jpeg_start_decompress>>${binary_path}libjpeg.def
echo jpeg_read_scanlines>>${binary_path}libjpeg.def
echo jpeg_finish_decompress>>${binary_path}libjpeg.def
echo jpeg_abort_decompress>>${binary_path}libjpeg.def
echo jpeg_destroy_decompress>>${binary_path}libjpeg.def
echo jpeg_set_marker_processor>>${binary_path}libjpeg.def
${bin}${cross}dlltool --def ${binary_path}libjpeg.def --output-exp ${binary_path}libjpeg.exp --dllname libjpeg.dll
$linker --dll --image-base 0x12000000 --enable-stdcall-fixup -e _init_pliant_dll@12 -s -o ${binary_path}libjpeg.dll ${binary_path}libjpeg.exp ${binary_path}jcapimin.o ${binary_path}jcapistd.o ${binary_path}jcprepct.o ${binary_path}jerror.o ${binary_path}jccoefct.o ${binary_path}jdmerge.o ${binary_path}jdmainct.o ${binary_path}jdpostct.o ${binary_path}jdcoefct.o ${binary_path}jdcolor.o ${binary_path}jccolor.o ${binary_path}jfdctflt.o ${binary_path}jdapimin.o ${binary_path}jcdctmgr.o ${binary_path}jddctmgr.o ${binary_path}jdapistd.o ${binary_path}jcomapi.o ${binary_path}jdinput.o ${binary_path}jcinit.o ${binary_path}jcmainct.o ${binary_path}jcsample.o ${binary_path}jquant1.o ${binary_path}jquant2.o ${binary_path}jdsample.o ${binary_path}jcmaster.o ${binary_path}jdmaster.o ${binary_path}jchuff.o ${binary_path}jdhuff.o ${binary_path}jcphuff.o ${binary_path}jdphuff.o ${binary_path}jcmarker.o ${binary_path}jdmarker.o ${binary_path}jmemmgr.o ${binary_path}jmemnobs.o ${binary_path}jutils.o ${binary_path}jcparam.o ${binary_path}jfdctint.o ${binary_path}jidctflt.o ${binary_path}jidctfst.o ${binary_path}jidctint.o ${binary_path}jfdctfst.o ${binary_path}jidctred.o ${binary_path}pliant_extra.o $extra_files

rm ${binary_path}*.s 2>/dev/null
rm ${binary_path}*.o 2>/dev/null
rm ${binary_path}*.def 2>/dev/null
rm ${binary_path}*.exp 2>/dev/null