Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>pull/202/head
parent
c9a75bccc6
commit
69e1261df6
@ -1,106 +0,0 @@
|
||||
#
|
||||
#
|
||||
# qmake configuration for win32-borland
|
||||
#
|
||||
# Written for Borland C++.
|
||||
#
|
||||
|
||||
MAKEFILE_GENERATOR = BMAKE
|
||||
TEMPLATE = app
|
||||
CONFIG += qt warn_on release link_prl
|
||||
DEFINES += UNICODE
|
||||
QMAKE_NOFORCE = 1
|
||||
|
||||
exists( $(TQTDIR)\.qtwinconfig ) {
|
||||
include( $(TQTDIR)\.qtwinconfig )
|
||||
}
|
||||
|
||||
QMAKE_CC = bcc32
|
||||
QMAKE_LEX = flex
|
||||
QMAKE_LEXFLAGS =
|
||||
QMAKE_YACC = byacc
|
||||
QMAKE_YACCFLAGS = -d
|
||||
QMAKE_CFLAGS = -tWR
|
||||
QMAKE_CFLAGS_WARN_ON = -w -w-hid
|
||||
QMAKE_CFLAGS_WARN_OFF = -w-
|
||||
QMAKE_CFLAGS_RELEASE = -O2
|
||||
QMAKE_CFLAGS_DEBUG = -v
|
||||
QMAKE_CFLAGS_MT = -tWM
|
||||
QMAKE_CFLAGS_MT_DBG = -tWM
|
||||
QMAKE_CFLAGS_MT_DLL = -tWM
|
||||
QMAKE_CFLAGS_MT_DLLDBG = -tWM
|
||||
QMAKE_CFLAGS_YACC =
|
||||
QMAKE_CFLAGS_CONSOLE = -tWC
|
||||
QMAKE_CFLAGS_STL_ON =
|
||||
QMAKE_CFLAGS_STL_OFF =
|
||||
QMAKE_CFLAGS_RTTI_ON =
|
||||
QMAKE_CFLAGS_RTTI_OFF = -RT-
|
||||
QMAKE_CFLAGS_EXCEPTIONS_ON =
|
||||
QMAKE_CFLAGS_EXCEPTIONS_OFF = -x-
|
||||
|
||||
QMAKE_CXX = $$QMAKE_CC
|
||||
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
|
||||
QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON
|
||||
QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF
|
||||
QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE
|
||||
QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG
|
||||
QMAKE_CXXFLAGS_MT = $$QMAKE_CFLAGS_MT
|
||||
QMAKE_CXXFLAGS_MT_DBG = $$QMAKE_CFLAGS_MT_DBG
|
||||
QMAKE_CXXFLAGS_MT_DLL = $$QMAKE_CFLAGS_MT_DLL
|
||||
QMAKE_CXXFLAGS_MT_DLLDBG= $$QMAKE_CFLAGS_MT_DLLDBG
|
||||
QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC
|
||||
QMAKE_CXXFLAGS_CONSOLE = $$QMAKE_CFLAGS_CONSOLE
|
||||
QMAKE_CXXFLAGS_STL_ON = $$QMAKE_CFLAGS_STL_ON
|
||||
QMAKE_CXXFLAGS_STL_OFF = $$QMAKE_CFLAGS_STL_OFF
|
||||
QMAKE_CXXFLAGS_RTTI_ON = $$QMAKE_CFLAGS_RTTI_ON
|
||||
QMAKE_CXXFLAGS_RTTI_OFF = $$QMAKE_CFLAGS_RTTI_OFF
|
||||
QMAKE_CXXFLAGS_EXCEPTIONS_ON = $$QMAKE_CFLAGS_EXCEPTIONS_ON
|
||||
QMAKE_CXXFLAGS_EXCEPTIONS_OFF = $$QMAKE_CFLAGS_EXCEPTIONS_OFF
|
||||
|
||||
QMAKE_INCDIR =
|
||||
QMAKE_INCDIR_TQT = $(TQTDIR)\include
|
||||
QMAKE_LIBDIR = $(BCB)\lib
|
||||
QMAKE_LIBDIR_TQT = $(TQTDIR)\lib
|
||||
|
||||
QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -o$obj $src
|
||||
QMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $<
|
||||
QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$obj $src
|
||||
QMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $<
|
||||
|
||||
QMAKE_LINK = ilink32
|
||||
QMAKE_LFLAGS = -c -x -Gn
|
||||
QMAKE_LFLAGS_RELEASE =
|
||||
QMAKE_LFLAGS_DEBUG = -v
|
||||
QMAKE_LFLAGS_CONSOLE = -ap -Tpe c0x32.obj
|
||||
QMAKE_LFLAGS_WINDOWS = -aa -Tpe c0w32.obj
|
||||
QMAKE_LFLAGS_CONSOLE_DLL= -Gi -ap -Tpd c0d32.obj
|
||||
QMAKE_LFLAGS_WINDOWS_DLL= -Gi -aa -Tpd c0d32.obj
|
||||
|
||||
QMAKE_LIBS = import32.lib
|
||||
QMAKE_LIBS_RT = cw32i.lib
|
||||
QMAKE_LIBS_RTMT = cw32mti.lib
|
||||
QMAKE_LIBS_CONSOLE =
|
||||
QMAKE_LIBS_WINDOWS =
|
||||
QMAKE_LIBS_QT = qt.lib
|
||||
QMAKE_LIBS_QT_THREAD = qtmt.lib
|
||||
QMAKE_LIBS_QT_ENTRY = qtmain.lib
|
||||
|
||||
QMAKE_LIBS_OPENGL =
|
||||
QMAKE_LFLAGS_OPENGL = /dopengl32.dll
|
||||
|
||||
QMAKE_MOC = $(TQTDIR)\bin\tqmoc.exe
|
||||
QMAKE_UIC = $(TQTDIR)\bin\tquic.exe
|
||||
QMAKE_IDC = $(TQTDIR)\bin\idc.exe
|
||||
|
||||
QMAKE_IDL = midl
|
||||
QMAKE_LIB = tlib /C /P256
|
||||
QMAKE_RC = brcc32 -dQ_CC_BOR
|
||||
|
||||
QMAKE_ZIP = zip -r -9
|
||||
|
||||
QMAKE_COPY = copy
|
||||
QMAKE_MOVE = move
|
||||
QMAKE_DEL_FILE = del
|
||||
QMAKE_DEL_DIR = rmdir
|
||||
QMAKE_CHK_DIR_EXISTS = if not exist
|
||||
QMAKE_MKDIR = mkdir
|
@ -1,154 +0,0 @@
|
||||
#ifndef TQPLATFORMDEFS_H
|
||||
#define TQPLATFORMDEFS_H
|
||||
|
||||
#ifdef UNICODE
|
||||
#ifndef _UNICODE
|
||||
#define _UNICODE
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Get TQt defines/settings
|
||||
|
||||
#include "tqglobal.h"
|
||||
#define Q_FS_FAT
|
||||
|
||||
#define _POSIX_
|
||||
#include <limits.h>
|
||||
#undef _POSIX_
|
||||
|
||||
#include <tchar.h>
|
||||
#include <io.h>
|
||||
#include <direct.h>
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <dos.h>
|
||||
#include <stdlib.h>
|
||||
#include <windows.h>
|
||||
|
||||
#if __BORLANDC__ >= 0x550
|
||||
// Borland Builder 6
|
||||
|
||||
#ifdef QT_LARGEFILE_SUPPORT
|
||||
# define QT_STATBUF struct stati64 // non-ANSI defs
|
||||
# define QT_STATBUF4TSTAT struct stati64 // non-ANSI defs
|
||||
# define QT_STAT ::_stati64
|
||||
# define QT_FSTAT ::fstati64
|
||||
# define QT_LSEEK ::_lseeki64
|
||||
# define QT_TSTAT ::_tstati64
|
||||
#else
|
||||
# define QT_STATBUF struct stat // non-ANSI defs
|
||||
# define QT_STATBUF4TSTAT struct _stat // non-ANSI defs
|
||||
# define QT_STAT ::stat
|
||||
# define QT_FSTAT ::fstat
|
||||
# define QT_LSEEK ::_lseek
|
||||
# define QT_TSTAT ::_tstat
|
||||
#endif
|
||||
|
||||
#define QT_STAT_REG _S_IFREG
|
||||
#define QT_STAT_DIR _S_IFDIR
|
||||
#define QT_STAT_MASK _S_IFMT
|
||||
|
||||
#if defined(_S_IFLNK)
|
||||
# define QT_STAT_LNK _S_IFLNK
|
||||
#endif
|
||||
|
||||
#define QT_FILENO _fileno
|
||||
#define QT_OPEN ::open
|
||||
#define QT_CLOSE ::_close
|
||||
|
||||
#define QT_READ ::_read
|
||||
#define QT_WRITE ::_write
|
||||
#define QT_ACCESS ::_access
|
||||
#define QT_GETCWD ::_getcwd
|
||||
#define QT_CHDIR ::chdir
|
||||
#define QT_MKDIR ::_mkdir
|
||||
#define QT_RMDIR ::_rmdir
|
||||
#define QT_OPEN_RDONLY _O_RDONLY
|
||||
#define QT_OPEN_WRONLY _O_WRONLY
|
||||
#define QT_OPEN_RDWR _O_RDWR
|
||||
#define QT_OPEN_CREAT _O_CREAT
|
||||
#define QT_OPEN_TRUNC _O_TRUNC
|
||||
#define QT_OPEN_APPEND _O_APPEND
|
||||
|
||||
#if defined(O_TEXT)
|
||||
# define QT_OPEN_TEXT _O_TEXT
|
||||
# define QT_OPEN_BINARY _O_BINARY
|
||||
#endif
|
||||
|
||||
#else
|
||||
// Borland Builder 5
|
||||
|
||||
#ifdef QT_LARGEFILE_SUPPORT
|
||||
# define QT_STATBUF struct stati64 // non-ANSI defs
|
||||
# define QT_STATBUF4TSTAT struct stati64 // non-ANSI defs
|
||||
# define QT_STAT ::stati64
|
||||
# define QT_FSTAT ::fstati64
|
||||
# define QT_LSEEK ::lseeki64
|
||||
# define QT_TSTAT ::tstati64
|
||||
#else
|
||||
# define QT_STATBUF struct stat // non-ANSI defs
|
||||
# define QT_STATBUF4TSTAT struct stat // non-ANSI defs
|
||||
# define QT_STAT ::stat
|
||||
# define QT_FSTAT ::fstat
|
||||
# define QT_LSEEK ::lseek
|
||||
# define QT_TSTAT ::tstat
|
||||
#endif
|
||||
|
||||
#define QT_STAT_REG S_IFREG
|
||||
#define QT_STAT_DIR S_IFDIR
|
||||
#define QT_STAT_MASK S_IFMT
|
||||
|
||||
#if defined(S_IFLNK)
|
||||
# define QT_STAT_LNK S_IFLNK
|
||||
#endif
|
||||
|
||||
#define QT_FILENO fileno
|
||||
#define QT_OPEN ::open
|
||||
#define QT_CLOSE ::close
|
||||
|
||||
#define QT_READ ::read
|
||||
#define QT_WRITE ::write
|
||||
#define QT_ACCESS ::access
|
||||
|
||||
#if defined(Q_OS_OS2EMX)
|
||||
// This is documented in the un*x to OS/2-EMX Porting FAQ:
|
||||
// http://homepages.tu-darmstadt.de/~st002279/os2/porting.html
|
||||
# define QT_GETCWD ::_getcwd2
|
||||
# define QT_CHDIR ::_chdir2
|
||||
#else
|
||||
# define QT_GETCWD ::getcwd
|
||||
# define QT_CHDIR ::chdir
|
||||
#endif
|
||||
|
||||
#define QT_MKDIR ::mkdir
|
||||
#define QT_RMDIR ::rmdir
|
||||
#define QT_OPEN_RDONLY O_RDONLY
|
||||
#define QT_OPEN_WRONLY O_WRONLY
|
||||
#define QT_OPEN_RDWR O_RDWR
|
||||
#define QT_OPEN_CREAT O_CREAT
|
||||
#define QT_OPEN_TRUNC O_TRUNC
|
||||
#define QT_OPEN_APPEND O_APPEND
|
||||
|
||||
#if defined(O_TEXT)
|
||||
# define QT_OPEN_TEXT O_TEXT
|
||||
# define QT_OPEN_BINARY O_BINARY
|
||||
#endif
|
||||
|
||||
#endif // __BORLANDC__ >= 0x550
|
||||
|
||||
// Borland Builder 5 and 6
|
||||
|
||||
#define QT_SIGNAL_ARGS int
|
||||
|
||||
#define QT_VSNPRINTF ::_vsnprintf
|
||||
#define QT_SNPRINTF ::_snprintf
|
||||
|
||||
# define F_OK 0
|
||||
# define X_OK 1
|
||||
# define W_OK 2
|
||||
# define R_OK 4
|
||||
|
||||
|
||||
#endif // TQPLATFORMDEFS_H
|
@ -1,637 +0,0 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** NmakeMakefileGenerator of BorlandMakefileGenerator class.
|
||||
**
|
||||
** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved.
|
||||
**
|
||||
** This file is part of qmake.
|
||||
**
|
||||
** This file may be used under the terms of the GNU General
|
||||
** Public License versions 2.0 or 3.0 as published by the Free
|
||||
** Software Foundation and appearing in the files LICENSE.GPL2
|
||||
** and LICENSE.GPL3 included in the packaging of this file.
|
||||
** Alternatively you may (at your option) use any later version
|
||||
** of the GNU General Public License if such license has been
|
||||
** publicly approved by Trolltech ASA (or its successors, if any)
|
||||
** and the KDE Free TQt Foundation.
|
||||
**
|
||||
** Please review the following information to ensure GNU General
|
||||
** Public Licensing requirements will be met:
|
||||
** http://trolltech.com/products/qt/licenses/licensing/opensource/.
|
||||
** If you are unsure which license is appropriate for your use, please
|
||||
** review the following information:
|
||||
** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
|
||||
** or contact the sales department at sales@trolltech.com.
|
||||
**
|
||||
** This file may be used under the terms of the Q Public License as
|
||||
** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
|
||||
** included in the packaging of this file. Licensees holding valid TQt
|
||||
** Commercial licenses may use this file in accordance with the TQt
|
||||
** Commercial License Agreement provided with the Software.
|
||||
**
|
||||
** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
|
||||
** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
|
||||
** herein.
|
||||
**
|
||||
**********************************************************************/
|
||||
|
||||
#include "borland_bmake.h"
|
||||
#include "option.h"
|
||||
#include <tqdir.h>
|
||||
#include <tqregexp.h>
|
||||
#include <time.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
BorlandMakefileGenerator::BorlandMakefileGenerator(TQMakeProject *p) : Win32MakefileGenerator(p), init_flag(FALSE)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
bool
|
||||
BorlandMakefileGenerator::writeMakefile(TQTextStream &t)
|
||||
{
|
||||
writeHeader(t);
|
||||
if(!project->variables()["QMAKE_FAILED_REQUIREMENTS"].isEmpty()) {
|
||||
t << "all clean:" << "\n\t"
|
||||
<< "@echo \"Some of the required modules ("
|
||||
<< var("QMAKE_FAILED_REQUIREMENTS") << ") are not available.\"" << "\n\t"
|
||||
<< "@echo \"Skipped.\"" << endl << endl;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if(project->first("TEMPLATE") == "app" ||
|
||||
project->first("TEMPLATE") == "lib") {
|
||||
writeBorlandParts(t);
|
||||
return MakefileGenerator::writeMakefile(t);
|
||||
}
|
||||
else if(project->first("TEMPLATE") == "subdirs") {
|
||||
writeSubDirs(t);
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void
|
||||
BorlandMakefileGenerator::writeBorlandParts(TQTextStream &t)
|
||||
{
|
||||
t << "!if !$d(BCB)" << endl;
|
||||
t << "BCB = $(MAKEDIR)\\.." << endl;
|
||||
t << "!endif" << endl << endl;
|
||||
t << "####### Compiler, tools and options" << endl << endl;
|
||||
t << "CC = " << var("QMAKE_CC") << endl;
|
||||
t << "CXX = " << var("QMAKE_CXX") << endl;
|
||||
t << "LEX = " << var("QMAKE_LEX") << endl;
|
||||
t << "YACC = " << var("QMAKE_YACC") << endl;
|
||||
t << "CFLAGS = " << var("QMAKE_CFLAGS") << " "
|
||||
<< varGlue("PRL_EXPORT_DEFINES","-D"," -D","") << " "
|
||||
<< varGlue("DEFINES","-D"," -D","") << endl;
|
||||
t << "CXXFLAGS= " << var("QMAKE_CXXFLAGS") << " "
|
||||
<< varGlue("PRL_EXPORT_DEFINES","-D"," -D","") << " "
|
||||
<< varGlue("DEFINES","-D"," -D","") << endl;
|
||||
t << "LEXFLAGS=" << var("QMAKE_LEXFLAGS") << endl;
|
||||
t << "YACCFLAGS=" << var("QMAKE_YACCFLAGS") << endl;
|
||||
|
||||
t << "INCPATH = ";
|
||||
TQStringList &incs = project->variables()["INCLUDEPATH"];
|
||||
for(TQStringList::Iterator incit = incs.begin(); incit != incs.end(); ++incit) {
|
||||
TQString inc = (*incit);
|
||||
inc.replace(TQRegExp("\\\\*$"), "");
|
||||
inc.replace("\"", "");
|
||||
t << " -I\"" << inc << "\"";
|
||||
}
|
||||
t << " -I\"" << specdir() << "\""
|
||||
<< endl;
|
||||
|
||||
if(!project->variables()["QMAKE_APP_OR_DLL"].isEmpty()) {
|
||||
t << "LINK = " << var("QMAKE_LINK") << endl;
|
||||
t << "LFLAGS = ";
|
||||
if ( !project->variables()["QMAKE_LIBDIR"].isEmpty() )
|
||||
t << varGlue("QMAKE_LIBDIR","-L",";","") << " ";
|
||||
t << var("QMAKE_LFLAGS") << endl;
|
||||
t << "LIBS = " << var("QMAKE_LIBS") << endl;
|
||||
}
|
||||
else {
|
||||
t << "LIB = " << var("QMAKE_LIB") << endl;
|
||||
}
|
||||
t << "MOC = " << (project->isEmpty("QMAKE_MOC") ? TQString("moc") :
|
||||
Option::fixPathToTargetOS(var("QMAKE_MOC"), FALSE)) << endl;
|
||||
t << "TQUIC = " << (project->isEmpty("QMAKE_UIC") ? TQString("tquic") :
|
||||
Option::fixPathToTargetOS(var("QMAKE_UIC"), FALSE)) << endl;
|
||||
t << "QMAKE = " << (project->isEmpty("QMAKE_QMAKE") ? TQString("qmake") :
|
||||
Option::fixPathToTargetOS(var("QMAKE_QMAKE"), FALSE)) << endl;
|
||||
t << "IDC = " << (project->isEmpty("QMAKE_IDC") ? TQString("idc") :
|
||||
Option::fixPathToTargetOS(var("QMAKE_IDC"), FALSE)) << endl;
|
||||
t << "IDL = " << (project->isEmpty("QMAKE_IDL") ? TQString("midl") :
|
||||
Option::fixPathToTargetOS(var("QMAKE_IDL"), FALSE)) << endl;
|
||||
t << "ZIP = " << var("QMAKE_ZIP") << endl;
|
||||
t << "DEF_FILE = " << varList("DEF_FILE") << endl;
|
||||
t << "RES_FILE = " << varList("RES_FILE") << endl;
|
||||
t << "COPY_FILE = " << var("QMAKE_COPY") << endl;
|
||||
t << "COPY_DIR = " << var("QMAKE_COPY") << endl;
|
||||
t << "DEL_FILE = " << var("QMAKE_DEL_FILE") << endl;
|
||||
t << "DEL_DIR = " << var("QMAKE_DEL_DIR") << endl;
|
||||
t << "MOVE = " << var("QMAKE_MOVE") << endl;
|
||||
t << "CHK_DIR_EXISTS = " << var("QMAKE_CHK_DIR_EXISTS") << endl;
|
||||
t << "MKDIR = " << var("QMAKE_MKDIR") << endl;
|
||||
t << "INSTALL_FILE= " << var("QMAKE_INSTALL_FILE") << endl;
|
||||
t << "INSTALL_DIR = " << var("QMAKE_INSTALL_DIR") << endl;
|
||||
t << endl;
|
||||
|
||||
t << "####### Files" << endl << endl;
|
||||
t << "HEADERS = " << varList("HEADERS") << endl;
|
||||
t << "SOURCES = " << varList("SOURCES") << endl;
|
||||
t << "OBJECTS = " << varList("OBJECTS") << endl;
|
||||
t << "FORMS = " << varList("FORMS") << endl;
|
||||
t << "UICDECLS = " << varList("UICDECLS") << endl;
|
||||
t << "UICIMPLS = " << varList("UICIMPLS") << endl;
|
||||
t << "SRCMOC = " << varList("SRCMOC") << endl;
|
||||
t << "OBJMOC = " << varList("OBJMOC") << endl;
|
||||
|
||||
TQString extraCompilerDeps;
|
||||
if(!project->isEmpty("QMAKE_EXTRA_WIN_COMPILERS")) {
|
||||
t << "OBJCOMP = " << varList("OBJCOMP") << endl;
|
||||
extraCompilerDeps += " $(OBJCOMP) ";
|
||||
|
||||
TQStringList &comps = project->variables()["QMAKE_EXTRA_WIN_COMPILERS"];
|
||||
for(TQStringList::Iterator compit = comps.begin(); compit != comps.end(); ++compit) {
|
||||
TQStringList &vars = project->variables()[(*compit) + ".variables"];
|
||||
for(TQStringList::Iterator varit = vars.begin(); varit != vars.end(); ++varit) {
|
||||
TQStringList vals = project->variables()[(*varit)];
|
||||
if(!vals.isEmpty())
|
||||
t << "QMAKE_COMP_" << (*varit) << " = " << valList(vals) << endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
t << "DIST = " << varList("DISTFILES") << endl;
|
||||
t << "TARGET = "
|
||||
<< varGlue("TARGET",project->first("DESTDIR"),"",project->first("TARGET_EXT"))
|
||||
<< endl;
|
||||
t << endl;
|
||||
|
||||
t << "####### Implicit rules" << endl << endl;
|
||||
t << ".SUFFIXES: .c";
|
||||
TQStringList::Iterator cppit;
|
||||
for(cppit = Option::cpp_ext.begin(); cppit != Option::cpp_ext.end(); ++cppit)
|
||||
t << " " << (*cppit);
|
||||
t << endl << endl;
|
||||
for(cppit = Option::cpp_ext.begin(); cppit != Option::cpp_ext.end(); ++cppit)
|
||||
t << (*cppit) << Option::obj_ext << ":\n\t" << var("QMAKE_RUN_CXX_IMP") << endl << endl;
|
||||
t << ".c" << Option::obj_ext << ":\n\t" << var("QMAKE_RUN_CC_IMP") << endl << endl;
|
||||
|
||||
t << "####### Build rules" << endl << endl;
|
||||
t << "all: " << fileFixify(Option::output.name()) << " " << varGlue("ALL_DEPS"," "," "," ") << " $(TARGET)" << endl << endl;
|
||||
t << "$(TARGET): " << var("PRE_TARGETDEPS") << " $(UICDECLS) $(OBJECTS) $(OBJMOC) "
|
||||
<< extraCompilerDeps << var("POST_TARGETDEPS");
|
||||
if(!project->variables()["QMAKE_APP_OR_DLL"].isEmpty()) {
|
||||
t << "\n\t" << "$(LINK) @&&|" << "\n\t"
|
||||
<< "$(LFLAGS) $(OBJECTS) $(OBJMOC),$(TARGET),,$(LIBS),$(DEF_FILE),$(RES_FILE)";
|
||||
} else {
|
||||
t << "\n\t-$(DEL_FILE) $(TARGET)"
|
||||
<< "\n\t" << "$(LIB) $(TARGET) @&&|" << " \n+"
|
||||
<< project->variables()["OBJECTS"].join(" \\\n+") << " \\\n+"
|
||||
<< project->variables()["OBJMOC"].join(" \\\n+");
|
||||
}
|
||||
t << extraCompilerDeps;
|
||||
t << endl << "|" << endl;
|
||||
|
||||
if ( !project->variables()["QMAKE_POST_LINK"].isEmpty() )
|
||||
t << "\t" <<var("QMAKE_POST_LINK") << endl;
|
||||
|
||||
if(project->isActiveConfig("dll") && !project->variables()["DLLDESTDIR"].isEmpty()) {
|
||||
TQStringList dlldirs = project->variables()["DLLDESTDIR"];
|
||||
for ( TQStringList::Iterator dlldir = dlldirs.begin(); dlldir != dlldirs.end(); ++dlldir ) {
|
||||
t << "\n\t" << "-$(COPY_FILE) \"$(TARGET)\" " << *dlldir;
|
||||
}
|
||||
}
|
||||
TQString targetfilename = project->variables()["TARGET"].first();
|
||||
t << endl << endl;
|
||||
|
||||
if(!project->variables()["RC_FILE"].isEmpty()) {
|
||||
t << var("RES_FILE") << ": " << var("RC_FILE") << "\n\t"
|
||||
<< var("QMAKE_RC") << " " << var("RC_FILE") << endl << endl;
|
||||
}
|
||||
t << "mocables: $(SRCMOC)" << endl
|
||||
<< "uicables: $(UICIMPLS) $(UICDECLS)" << endl << endl;
|
||||
|
||||
writeMakeQmake(t);
|
||||
|
||||
TQStringList dist_files = Option::mkfile::project_files;
|
||||
if(!project->isEmpty("QMAKE_INTERNAL_INCLUDED_FILES"))
|
||||
dist_files += project->variables()["QMAKE_INTERNAL_INCLUDED_FILES"];
|
||||
if(!project->isEmpty("TRANSLATIONS"))
|
||||
dist_files << var("TRANSLATIONS");
|
||||
if(!project->isEmpty("FORMS")) {
|
||||
TQStringList &forms = project->variables()["FORMS"];
|
||||
for(TQStringList::Iterator formit = forms.begin(); formit != forms.end(); ++formit) {
|
||||
TQString ui_h = fileFixify((*formit) + Option::h_ext.first());
|
||||
if(TQFile::exists(ui_h) )
|
||||
dist_files << ui_h;
|
||||
}
|
||||
}
|
||||
t << "dist:" << "\n\t"
|
||||
<< "$(ZIP) " << var("QMAKE_ORIG_TARGET") << ".zip " << "$(SOURCES) $(HEADERS) $(DIST) $(FORMS) "
|
||||
<< dist_files.join(" ") << " " << var("TRANSLATIONS") << " " << var("IMAGES") << endl << endl;
|
||||
|
||||
t << "uiclean:";
|
||||
TQString uiclean = varGlue("UICDECLS" ,"\n\t-$(DEL_FILE) ","\n\t-$(DEL_FILE) ","") + varGlue("UICIMPLS" ,"\n\t-$(DEL_FILE) ","\n\t-$(DEL_FILE) ","");
|
||||
if ( uiclean.isEmpty() ) {
|
||||
// Borland make does not like an empty command section
|
||||
uiclean = "\n\t@cd .";
|
||||
}
|
||||
t << uiclean << endl;
|
||||
|
||||
t << "mocclean:";
|
||||
TQString mocclean = varGlue("SRCMOC" ,"\n\t-$(DEL_FILE) ","\n\t-$(DEL_FILE) ","") + varGlue("OBJMOC" ,"\n\t-$(DEL_FILE) ","\n\t-$(DEL_FILE) ","");
|
||||
if ( mocclean.isEmpty() ) {
|
||||
// Borland make does not like an empty command section
|
||||
mocclean = "\n\t@cd .";
|
||||
}
|
||||
t << mocclean << endl;
|
||||
|
||||
t << "clean: uiclean mocclean"
|
||||
<< varGlue("OBJECTS","\n\t-$(DEL_FILE) ","\n\t-$(DEL_FILE) ","")
|
||||
<< varGlue("QMAKE_CLEAN","\n\t-$(DEL_FILE) ","\n\t-$(DEL_FILE) ","")
|
||||
<< varGlue("CLEAN_FILES","\n\t-$(DEL_FILE) ","\n\t-$(DEL_FILE) ","");
|
||||
if(!project->isEmpty("IMAGES"))
|
||||
t << varGlue("QMAKE_IMAGE_COLLECTION", "\n\t-$(DEL_FILE) ", "\n\t-$(DEL_FILE) ", "");
|
||||
t << endl;
|
||||
|
||||
// user defined targets
|
||||
TQStringList::Iterator it;
|
||||
TQStringList &qut = project->variables()["QMAKE_EXTRA_WIN_TARGETS"];
|
||||
for(it = qut.begin(); it != qut.end(); ++it) {
|
||||
TQString targ = var((*it) + ".target"),
|
||||
cmd = var((*it) + ".commands"), deps;
|
||||
if(targ.isEmpty())
|
||||
targ = (*it);
|
||||
TQStringList &deplist = project->variables()[(*it) + ".depends"];
|
||||
for(TQStringList::Iterator dep_it = deplist.begin(); dep_it != deplist.end(); ++dep_it) {
|
||||
TQString dep = var((*dep_it) + ".target");
|
||||
if(dep.isEmpty())
|
||||
dep = (*dep_it);
|
||||
deps += " " + dep;
|
||||
}
|
||||
if(!project->variables()["QMAKE_NOFORCE"].isEmpty() &&
|
||||
project->variables()[(*it) + ".CONFIG"].findIndex("phony") != -1)
|
||||
deps += TQString(" ") + "FORCE";
|
||||
t << "\n\n" << targ << ":" << deps << "\n\t"
|
||||
<< cmd;
|
||||
}
|
||||
|
||||
t << endl << endl;
|
||||
|
||||
TQStringList &quc = project->variables()["QMAKE_EXTRA_WIN_COMPILERS"];
|
||||
for(it = quc.begin(); it != quc.end(); ++it) {
|
||||
TQString tmp_out = project->variables()[(*it) + ".output"].first();
|
||||
TQString tmp_cmd = project->variables()[(*it) + ".commands"].join(" ");
|
||||
TQString tmp_dep = project->variables()[(*it) + ".depends"].join(" ");
|
||||
TQStringList &vars = project->variables()[(*it) + ".variables"];
|
||||
if(tmp_out.isEmpty() || tmp_cmd.isEmpty())
|
||||
continue;
|
||||
TQStringList &tmp = project->variables()[(*it) + ".input"];
|
||||
for(TQStringList::Iterator it2 = tmp.begin(); it2 != tmp.end(); ++it2) {
|
||||
TQStringList &inputs = project->variables()[(*it2)];
|
||||
for(TQStringList::Iterator input = inputs.begin(); input != inputs.end(); ++input) {
|
||||
TQFileInfo fi(Option::fixPathToLocalOS((*input)));
|
||||
TQString in = Option::fixPathToTargetOS((*input), FALSE),
|
||||
out = tmp_out, cmd = tmp_cmd, deps;
|
||||
out.replace("${QMAKE_FILE_BASE}", fi.baseName());
|
||||
out.replace("${QMAKE_FILE_NAME}", fi.filePath());
|
||||
cmd.replace("${QMAKE_FILE_BASE}", fi.baseName());
|
||||
cmd.replace("${QMAKE_FILE_OUT}", out);
|
||||
cmd.replace("${QMAKE_FILE_NAME}", fi.filePath());
|
||||
for(TQStringList::Iterator it3 = vars.begin(); it3 != vars.end(); ++it3)
|
||||
cmd.replace("$(" + (*it3) + ")", "$(QMAKE_COMP_" + (*it3)+")");
|
||||
if(!tmp_dep.isEmpty()) {
|
||||
char buff[256];
|
||||
TQString dep_cmd = tmp_dep;
|
||||
dep_cmd.replace("${QMAKE_FILE_NAME}", fi.filePath());
|
||||
if(FILE *proc = QT_POPEN(dep_cmd.latin1(), "r")) {
|
||||
while(!feof(proc)) {
|
||||
int read_in = int(fread(buff, 1, 255, proc));
|
||||
if(!read_in)
|
||||
break;
|
||||
int l = 0;
|
||||
for(int i = 0; i < read_in; i++) {
|
||||
if(buff[i] == '\n' || buff[i] == ' ') {
|
||||
deps += " " + TQCString(buff+l, (i - l) + 1);
|
||||
l = i;
|
||||
}
|
||||
}
|
||||
}
|
||||
fclose(proc);
|
||||
}
|
||||
}
|
||||
t << out << ": " << in << deps << "\n\t"
|
||||
<< cmd << endl << endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
t << endl;
|
||||
|
||||
t << "distclean: clean"
|
||||
<< "\n\t-$(DEL_FILE) $(TARGET)"
|
||||
<< endl << endl;
|
||||
}
|
||||
|
||||
void
|
||||
BorlandMakefileGenerator::init()
|
||||
{
|
||||
if(init_flag)
|
||||
return;
|
||||
init_flag = TRUE;
|
||||
|
||||
project->variables()["QMAKE_ORIG_TARGET"] = project->variables()["TARGET"];
|
||||
|
||||
/* this should probably not be here, but I'm using it to wrap the .t files */
|
||||
if(project->first("TEMPLATE") == "app")
|
||||
project->variables()["QMAKE_APP_FLAG"].append("1");
|
||||
else if(project->first("TEMPLATE") == "lib")
|
||||
project->variables()["QMAKE_LIB_FLAG"].append("1");
|
||||
else if(project->first("TEMPLATE") == "subdirs") {
|
||||
MakefileGenerator::init();
|
||||
if(project->variables()["MAKEFILE"].isEmpty())
|
||||
project->variables()["MAKEFILE"].append("Makefile");
|
||||
if(project->variables()["QMAKE"].isEmpty())
|
||||
project->variables()["QMAKE"].append("qmake");
|
||||
return;
|
||||
}
|
||||
|
||||
if(project->isEmpty("QMAKE_INSTALL_FILE"))
|
||||
project->variables()["QMAKE_INSTALL_FILE"].append("$(COPY_FILE)");
|
||||
if(project->isEmpty("QMAKE_INSTALL_DIR"))
|
||||
project->variables()["QMAKE_INSTALL_DIR"].append("$(COPY_DIR)");
|
||||
|
||||
bool is_qt = (project->first("TARGET") == "qt" TQTDLL_POSTFIX || project->first("TARGET") == "qtmt" TQTDLL_POSTFIX);
|
||||
TQStringList &configs = project->variables()["CONFIG"];
|
||||
if (project->isActiveConfig("shared"))
|
||||
project->variables()["DEFINES"].append("QT_DLL");
|
||||
if (project->isActiveConfig("qt_dll"))
|
||||
if(configs.findIndex("qt") == -1) configs.append("qt");
|
||||
if ( project->isActiveConfig("qtopia") ) {
|
||||
if(configs.findIndex("qtopialib") == -1)
|
||||
configs.append("qtopialib");
|
||||
if(configs.findIndex("qtopiainc") == -1)
|
||||
configs.append("qtopiainc");
|
||||
}
|
||||
if ( project->isActiveConfig("qt") ) {
|
||||
if ( project->isActiveConfig("plugin") ) {
|
||||
project->variables()["CONFIG"].append("dll");
|
||||
project->variables()["DEFINES"].append("QT_PLUGIN");
|
||||
}
|
||||
if ( (project->variables()["DEFINES"].findIndex("QT_NODLL") == -1) &&
|
||||
((project->variables()["DEFINES"].findIndex("QT_MAKEDLL") != -1 ||
|
||||
project->variables()["DEFINES"].findIndex("QT_DLL") != -1) ||
|
||||
(getenv("QT_DLL") && !getenv("QT_NODLL"))) ) {
|
||||
project->variables()["QMAKE_QT_DLL"].append("1");
|
||||
if ( is_qt && !project->variables()["QMAKE_LIB_FLAG"].isEmpty() )
|
||||
project->variables()["CONFIG"].append("dll");
|
||||
}
|
||||
}
|
||||
if ( project->isActiveConfig("dll") || !project->variables()["QMAKE_APP_FLAG"].isEmpty() ) {
|
||||
project->variables()["CONFIG"].remove("staticlib");
|
||||
project->variables()["QMAKE_APP_OR_DLL"].append("1");
|
||||
} else {
|
||||
project->variables()["CONFIG"].append("staticlib");
|
||||
}
|
||||
if ( project->isActiveConfig("warn_off") ) {
|
||||
project->variables()["QMAKE_CFLAGS"] += project->variables()["QMAKE_CFLAGS_WARN_OFF"];
|
||||
project->variables()["QMAKE_CXXFLAGS"] += project->variables()["QMAKE_CXXFLAGS_WARN_OFF"];
|
||||
} else if ( project->isActiveConfig("warn_on") ) {
|
||||
project->variables()["QMAKE_CFLAGS"] += project->variables()["QMAKE_CFLAGS_WARN_ON"];
|
||||
project->variables()["QMAKE_CXXFLAGS"] += project->variables()["QMAKE_CXXFLAGS_WARN_ON"];
|
||||
}
|
||||
if(project->isActiveConfig("qt")) {
|
||||
if ( project->isActiveConfig("thread") )
|
||||
project->variables()[is_qt ? "PRL_EXPORT_DEFINES" : "DEFINES"].append("TQT_THREAD_SUPPORT");
|
||||
if ( project->isActiveConfig("accessibility" ) )
|
||||
project->variables()[is_qt ? "PRL_EXPORT_DEFINES" : "DEFINES"].append("QT_ACCESSIBILITY_SUPPORT");
|
||||
if ( project->isActiveConfig("tablet") )
|
||||
project->variables()[is_qt ? "PRL_EXPORT_DEFINES" : "DEFINES"].append("QT_TABLET_SUPPORT");
|
||||
}
|
||||
|
||||
if ( project->isActiveConfig("debug") ) {
|
||||
if ( project->isActiveConfig("thread") ) {
|
||||
if ( project->isActiveConfig("dll") ) {
|
||||
project->variables()["QMAKE_CFLAGS"] += project->variables()["QMAKE_CFLAGS_MT_DLLDBG"];
|
||||
project->variables()["QMAKE_CXXFLAGS"] += project->variables()["QMAKE_CXXFLAGS_MT_DLLDBG"];
|
||||
} else {
|
||||
project->variables()["QMAKE_CFLAGS"] += project->variables()["QMAKE_CFLAGS_MT_DBG"];
|
||||
project->variables()["QMAKE_CXXFLAGS"] += project->variables()["QMAKE_CXXFLAGS_MT_DBG"];
|
||||
}
|
||||
}
|
||||
project->variables()["QMAKE_CFLAGS"] += project->variables()["QMAKE_CFLAGS_DEBUG"];
|
||||
project->variables()["QMAKE_CXXFLAGS"] += project->variables()["QMAKE_CXXFLAGS_DEBUG"];
|
||||
project->variables()["QMAKE_LFLAGS"] += project->variables()["QMAKE_LFLAGS_DEBUG"];
|
||||
} else {
|
||||
if ( project->isActiveConfig("thread") ) {
|
||||
if ( project->isActiveConfig("dll") ) {
|
||||
project->variables()["QMAKE_CFLAGS"] += project->variables()["QMAKE_CFLAGS_MT_DLL"];
|
||||
project->variables()["QMAKE_CXXFLAGS"] += project->variables()["QMAKE_CXXFLAGS_MT_DLL"];
|
||||
} else {
|
||||
project->variables()["QMAKE_CFLAGS"] += project->variables()["QMAKE_CFLAGS_MT"];
|
||||
project->variables()["QMAKE_CXXFLAGS"] += project->variables()["QMAKE_CXXFLAGS_MT"];
|
||||
}
|
||||
}
|
||||
project->variables()["QMAKE_CFLAGS"] += project->variables()["QMAKE_CFLAGS_RELEASE"];
|
||||
project->variables()["QMAKE_CXXFLAGS"] += project->variables()["QMAKE_CXXFLAGS_RELEASE"];
|
||||
project->variables()["QMAKE_LFLAGS"] += project->variables()["QMAKE_LFLAGS_RELEASE"];
|
||||
}
|
||||
|
||||
if ( !project->variables()["QMAKE_INCDIR"].isEmpty()) {
|
||||
project->variables()["INCLUDEPATH"] += project->variables()["QMAKE_INCDIR"];
|
||||
}
|
||||
if ( project->isActiveConfig("qt") || project->isActiveConfig("opengl") ) {
|
||||
project->variables()["CONFIG"].append("windows");
|
||||
}
|
||||
if ( project->isActiveConfig("qtopiainc") )
|
||||
project->variables()["INCLUDEPATH"] += project->variables()["QMAKE_INCDIR_TQTOPIA"];
|
||||
if ( project->isActiveConfig("qtopialib") ) {
|
||||
if(!project->isEmpty("QMAKE_LIBDIR_TQTOPIA"))
|
||||
project->variables()["QMAKE_LIBDIR"] += project->variables()["QMAKE_LIBDIR_TQTOPIA"];
|
||||
project->variables()["QMAKE_LIBS"] += project->variables()["QMAKE_LIBS_QTOPIA"];
|
||||
}
|
||||
if ( project->isActiveConfig("qt") ) {
|
||||
project->variables()["CONFIG"].append("moc");
|
||||
project->variables()["INCLUDEPATH"] += project->variables()["QMAKE_INCDIR_TQT"];
|
||||
project->variables()["QMAKE_LIBDIR"] += project->variables()["QMAKE_LIBDIR_TQT"];
|
||||
if ( !project->isActiveConfig("debug") )
|
||||
project->variables()[is_qt ? "PRL_EXPORT_DEFINES" : "DEFINES"].append("TQT_NO_DEBUG");
|
||||
if ( is_qt && !project->variables()["QMAKE_LIB_FLAG"].isEmpty() ) {
|
||||
if ( !project->variables()["QMAKE_QT_DLL"].isEmpty()) {
|
||||
project->variables()["DEFINES"].append("QT_MAKEDLL");
|
||||
project->variables()["QMAKE_LFLAGS"] += project->variables()["QMAKE_LFLAGS_QT_DLL"];
|
||||
}
|
||||
} else {
|
||||
if(project->isActiveConfig("thread"))
|
||||
project->variables()["QMAKE_LIBS"] += project->variables()["QMAKE_LIBS_QT_THREAD"];
|
||||
else
|
||||
project->variables()["QMAKE_LIBS"] += project->variables()["QMAKE_LIBS_QT"];
|
||||
if ( !project->variables()["QMAKE_QT_DLL"].isEmpty() ) {
|
||||
int hver = findHighestVersion(project->first("QMAKE_LIBDIR_TQT"), "qt");
|
||||
if ( hver == -1 )
|
||||
hver = findHighestVersion(project->first("QMAKE_LIBDIR_TQT"), "qtmt");
|
||||
if(hver != -1) {
|
||||
TQString ver;
|
||||
ver.sprintf("qt%s" TQTDLL_POSTFIX "%d.lib", (project->isActiveConfig("thread") ? "mt" : ""), hver);
|
||||
TQStringList &libs = project->variables()["QMAKE_LIBS"];
|
||||
for(TQStringList::Iterator libit = libs.begin(); libit != libs.end(); ++libit)
|
||||
(*libit).replace(TQRegExp("qt(mt)?\\.lib"), ver);
|
||||
}
|
||||
}
|
||||
if ( !project->isActiveConfig("dll") && !project->isActiveConfig("plugin") ) {
|
||||
project->variables()["QMAKE_LIBS"] += project->variables()["QMAKE_LIBS_QT_ENTRY"];
|
||||
}
|
||||
}
|
||||
}
|
||||
if ( project->isActiveConfig("opengl") ) {
|
||||
project->variables()["QMAKE_LIBS"] += project->variables()["QMAKE_LIBS_OPENGL"];
|
||||
project->variables()["QMAKE_LFLAGS"] += project->variables()["QMAKE_LFLAGS_OPENGL"];
|
||||
}
|
||||
if ( project->isActiveConfig("dll") ) {
|
||||
project->variables()["QMAKE_CFLAGS_CONSOLE_ANY"] = project->variables()["QMAKE_CFLAGS_CONSOLE_DLL"];
|
||||
project->variables()["QMAKE_CXXFLAGS_CONSOLE_ANY"] = project->variables()["QMAKE_CXXFLAGS_CONSOLE_DLL"];
|
||||
project->variables()["QMAKE_LFLAGS_CONSOLE_ANY"] = project->variables()["QMAKE_LFLAGS_CONSOLE_DLL"];
|
||||
project->variables()["QMAKE_LFLAGS_WINDOWS_ANY"] = project->variables()["QMAKE_LFLAGS_WINDOWS_DLL"];
|
||||
if ( !project->variables()["QMAKE_LIB_FLAG"].isEmpty()) {
|
||||
project->variables()["TARGET_EXT"].append(
|
||||
TQStringList::split('.',project->first("VERSION")).join("") + ".dll");
|
||||
} else {
|
||||
project->variables()["TARGET_EXT"].append(".dll");
|
||||
}
|
||||
} else {
|
||||
project->variables()["QMAKE_CFLAGS_CONSOLE_ANY"] = project->variables()["QMAKE_CFLAGS_CONSOLE"];
|
||||
project->variables()["QMAKE_CXXFLAGS_CONSOLE_ANY"] = project->variables()["QMAKE_CXXFLAGS_CONSOLE"];
|
||||
project->variables()["QMAKE_LFLAGS_CONSOLE_ANY"] = project->variables()["QMAKE_LFLAGS_CONSOLE"];
|
||||
project->variables()["QMAKE_LFLAGS_WINDOWS_ANY"] = project->variables()["QMAKE_LFLAGS_WINDOWS"];
|
||||
if ( !project->variables()["QMAKE_APP_FLAG"].isEmpty()) {
|
||||
project->variables()["TARGET_EXT"].append(".exe");
|
||||
} else {
|
||||
project->variables()["TARGET_EXT"].append(".lib");
|
||||
}
|
||||
}
|
||||
if ( project->isActiveConfig("windows") ) {
|
||||
if ( project->isActiveConfig("console") ) {
|
||||
project->variables()["QMAKE_CFLAGS"] += project->variables()["QMAKE_CFLAGS_CONSOLE_ANY"];
|
||||
project->variables()["QMAKE_CXXFLAGS"] += project->variables()["QMAKE_CXXFLAGS_CONSOLE_ANY"];
|
||||
project->variables()["QMAKE_LFLAGS"] += project->variables()["QMAKE_LFLAGS_CONSOLE_ANY"];
|
||||
project->variables()["QMAKE_LIBS"] += project->variables()["QMAKE_LIBS_CONSOLE"];
|
||||
} else {
|
||||
project->variables()["QMAKE_LFLAGS"] += project->variables()["QMAKE_LFLAGS_WINDOWS_ANY"];
|
||||
}
|
||||
project->variables()["QMAKE_LIBS"] += project->variables()["QMAKE_LIBS_WINDOWS"];
|
||||
} else {
|
||||
project->variables()["QMAKE_CFLAGS"] += project->variables()["QMAKE_CFLAGS_CONSOLE_ANY"];
|
||||
project->variables()["QMAKE_CXXFLAGS"] += project->variables()["QMAKE_CXXFLAGS_CONSOLE_ANY"];
|
||||
project->variables()["QMAKE_LFLAGS"] += project->variables()["QMAKE_LFLAGS_CONSOLE_ANY"];
|
||||
project->variables()["QMAKE_LIBS"] += project->variables()["QMAKE_LIBS_CONSOLE"];
|
||||
}
|
||||
if ( project->isActiveConfig("stl") ) {
|
||||
project->variables()["QMAKE_CFLAGS"] += project->variables()["QMAKE_CFLAGS_STL_ON"];
|
||||
project->variables()["QMAKE_CXXFLAGS"] += project->variables()["QMAKE_CXXFLAGS_STL_ON"];
|
||||
} else {
|
||||
project->variables()["QMAKE_CFLAGS"] += project->variables()["QMAKE_CFLAGS_STL_OFF"];
|
||||
project->variables()["QMAKE_CXXFLAGS"] += project->variables()["QMAKE_CXXFLAGS_STL_OFF"];
|
||||
}
|
||||
if ( project->isActiveConfig("exceptions") ) {
|
||||
project->variables()["QMAKE_CFLAGS"] += project->variables()["QMAKE_CFLAGS_EXCEPTIONS_ON"];
|
||||
project->variables()["QMAKE_CXXFLAGS"] += project->variables()["QMAKE_CXXFLAGS_EXCEPTIONS_ON"];
|
||||
} else {
|
||||
project->variables()["QMAKE_CFLAGS"] += project->variables()["QMAKE_CFLAGS_EXCEPTIONS_OFF"];
|
||||
project->variables()["QMAKE_CXXFLAGS"] += project->variables()["QMAKE_CXXFLAGS_EXCEPTIONS_OFF"];
|
||||
}
|
||||
if ( project->isActiveConfig("rtti") ) {
|
||||
project->variables()["QMAKE_CFLAGS"] += project->variables()["QMAKE_CFLAGS_RTTI_ON"];
|
||||
project->variables()["QMAKE_CXXFLAGS"] += project->variables()["QMAKE_CXXFLAGS_RTTI_ON"];
|
||||
} else {
|
||||
project->variables()["QMAKE_CFLAGS"] += project->variables()["QMAKE_CFLAGS_RTTI_OFF"];
|
||||
project->variables()["QMAKE_CXXFLAGS"] += project->variables()["QMAKE_CXXFLAGS_RTTI_OFF"];
|
||||
}
|
||||
|
||||
if ( project->isActiveConfig("thread") ) {
|
||||
project->variables()["QMAKE_LIBS"] += project->variables()["QMAKE_LIBS_RTMT"];
|
||||
} else {
|
||||
project->variables()["QMAKE_LIBS"] += project->variables()["QMAKE_LIBS_RT"];
|
||||
}
|
||||
if ( project->isActiveConfig("moc") ) {
|
||||
setTQMocAware(TRUE);
|
||||
}
|
||||
project->variables()["QMAKE_LIBS"] += project->variables()["LIBS"];
|
||||
// Update -lname to name.lib, and -Ldir to
|
||||
TQStringList &libList = project->variables()["QMAKE_LIBS"];
|
||||
for( TQStringList::Iterator stIt = libList.begin(); stIt != libList.end(); ) {
|
||||
TQString s = *stIt;
|
||||
if( s.startsWith( "-l" ) ) {
|
||||
stIt = libList.remove( stIt );
|
||||
stIt = libList.insert( stIt, s.mid( 2 ) + ".lib" );
|
||||
} else if( s.startsWith( "-L" ) ) {
|
||||
stIt = libList.remove( stIt );
|
||||
project->variables()["QMAKE_LIBDIR"].append(TQDir::convertSeparators(s.mid( 2 )));
|
||||
} else {
|
||||
stIt++;
|
||||
}
|
||||
}
|
||||
project->variables()["QMAKE_FILETAGS"] += TQStringList::split(' ',
|
||||
"HEADERS SOURCES DEF_FILE RC_FILE TARGET QMAKE_LIBS DESTDIR DLLDESTDIR INCLUDEPATH");
|
||||
TQStringList &l = project->variables()["QMAKE_FILETAGS"];
|
||||
TQStringList::Iterator it;
|
||||
for(it = l.begin(); it != l.end(); ++it) {
|
||||
TQStringList &gdmf = project->variables()[(*it)];
|
||||
for(TQStringList::Iterator inner = gdmf.begin(); inner != gdmf.end(); ++inner)
|
||||
(*inner) = Option::fixPathToTargetOS((*inner), FALSE);
|
||||
}
|
||||
|
||||
if ( !project->variables()["RC_FILE"].isEmpty()) {
|
||||
if ( !project->variables()["RES_FILE"].isEmpty()) {
|
||||
fprintf(stderr, "Both .rc and .res file specified.\n");
|
||||
fprintf(stderr, "Please specify one of them, not both.");
|
||||
exit(666);
|
||||
}
|
||||
project->variables()["RES_FILE"] = project->variables()["RC_FILE"];
|
||||
project->variables()["RES_FILE"].first().replace(".rc",".res");
|
||||
project->variables()["POST_TARGETDEPS"] += project->variables()["RES_FILE"];
|
||||
project->variables()["CLEAN_FILES"] += project->variables()["RES_FILE"];
|
||||
}
|
||||
MakefileGenerator::init();
|
||||
if ( !project->variables()["VERSION"].isEmpty()) {
|
||||
TQStringList l = TQStringList::split('.', project->first("VERSION"));
|
||||
project->variables()["VER_MAJ"].append(l[0]);
|
||||
project->variables()["VER_MIN"].append(l[1]);
|
||||
}
|
||||
|
||||
if ( project->isActiveConfig("dll") || !project->variables()["QMAKE_APP_FLAG"].isEmpty() ) {
|
||||
// bcc does not generate a .tds file for static libs
|
||||
TQString tdsPostfix;
|
||||
if ( !project->variables()["VERSION"].isEmpty() ) {
|
||||
tdsPostfix = TQStringList::split( '.', project->first("VERSION") ).join("")
|
||||
+ ".tds";
|
||||
} else {
|
||||
tdsPostfix = ".tds";
|
||||
}
|
||||
project->variables()["QMAKE_CLEAN"].append(
|
||||
project->first("DESTDIR") + project->first("TARGET") + tdsPostfix );
|
||||
}
|
||||
|
||||
TQStringList &quc = project->variables()["QMAKE_EXTRA_WIN_COMPILERS"];
|
||||
for(it = quc.begin(); it != quc.end(); ++it) {
|
||||
TQString tmp_out = project->variables()[(*it) + ".output"].first();
|
||||
if(tmp_out.isEmpty())
|
||||
continue;
|
||||
TQStringList &tmp = project->variables()[(*it) + ".input"];
|
||||
for(TQStringList::Iterator it2 = tmp.begin(); it2 != tmp.end(); ++it2) {
|
||||
TQStringList &inputs = project->variables()[(*it2)];
|
||||
for(TQStringList::Iterator input = inputs.begin(); input != inputs.end(); ++input) {
|
||||
TQFileInfo fi(Option::fixPathToLocalOS((*input)));
|
||||
TQString in = Option::fixPathToTargetOS((*input), FALSE),
|
||||
out = tmp_out;
|
||||
out.replace("${QMAKE_FILE_BASE}", fi.baseName());
|
||||
out.replace("${QMAKE_FILE_NAME}", fi.filePath());
|
||||
if(project->variables()[(*it) + ".CONFIG"].findIndex("no_link") == -1)
|
||||
project->variables()["OBJCOMP"] += out;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,60 +0,0 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Definition of BorlandMakefileGenerator class.
|
||||
**
|
||||
** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved.
|
||||
**
|
||||
** This file is part of qmake.
|
||||
**
|
||||
** This file may be used under the terms of the GNU General
|
||||
** Public License versions 2.0 or 3.0 as published by the Free
|
||||
** Software Foundation and appearing in the files LICENSE.GPL2
|
||||
** and LICENSE.GPL3 included in the packaging of this file.
|
||||
** Alternatively you may (at your option) use any later version
|
||||
** of the GNU General Public License if such license has been
|
||||
** publicly approved by Trolltech ASA (or its successors, if any)
|
||||
** and the KDE Free TQt Foundation.
|
||||
**
|
||||
** Please review the following information to ensure GNU General
|
||||
** Public Licensing requirements will be met:
|
||||
** http://trolltech.com/products/qt/licenses/licensing/opensource/.
|
||||
** If you are unsure which license is appropriate for your use, please
|
||||
** review the following information:
|
||||
** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
|
||||
** or contact the sales department at sales@trolltech.com.
|
||||
**
|
||||
** This file may be used under the terms of the Q Public License as
|
||||
** defined by Trolltech ASA and appearing in the file LICENSE.TQPL
|
||||
** included in the packaging of this file. Licensees holding valid TQt
|
||||
** Commercial licenses may use this file in accordance with the TQt
|
||||
** Commercial License Agreement provided with the Software.
|
||||
**
|
||||
** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
|
||||
** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
|
||||
** herein.
|
||||
**
|
||||
**********************************************************************/
|
||||
|
||||
#ifndef __BORLAND_BMAKE_H__
|
||||
#define __BORLAND_BMAKE_H__
|
||||
|
||||
#include "winmakefile.h"
|
||||
|
||||
class BorlandMakefileGenerator : public Win32MakefileGenerator
|
||||
{
|
||||
bool init_flag;
|
||||
void writeBorlandParts(TQTextStream &);
|
||||
|
||||
bool writeMakefile(TQTextStream &);
|
||||
void init();
|
||||
|
||||
public:
|
||||
BorlandMakefileGenerator(TQMakeProject *p);
|
||||
~BorlandMakefileGenerator();
|
||||
};
|
||||
|
||||
inline BorlandMakefileGenerator::~BorlandMakefileGenerator()
|
||||
{ }
|
||||
|
||||
#endif /* __BORLAND_BMAKE_H__ */
|
@ -1,105 +0,0 @@
|
||||
#
|
||||
# For conditions of distribution and use, see copyright notice in libmng.h
|
||||
#
|
||||
# makefile for libmng - THE MNG library
|
||||
# this makefile is suitable for Borland C++ Builder.
|
||||
# it works (at least) with Borland C++ Builder v3
|
||||
|
||||
# Configuration options are now in mng_conf.h
|
||||
# this option forces dll compatibility
|
||||
MNGOPT = -DMNG_BUILD_DLL
|
||||
|
||||
# The name of your C compiler:
|
||||
CC= bcc32
|
||||
|
||||
# compiler options:
|
||||
CFLAGS= -WD -O2 -Hc -w-par -k -y -v -vi -c -tWD \
|
||||
-wuse -wucp -wstv -wstu -wsig -wpin -wnod -wnak -wdef -wcln -wbbf -wasm -wamp \
|
||||
-wamb -Tkh30000 -ff -5 -I.;..\zlib;..\jpgsrc6b;..\lcms\include $(MNGOPT)
|
||||
|
||||
# source files
|
||||
SOURCES= libmng_hlapi.c libmng_callback_xs.c libmng_prop_xs.c libmng_chunk_xs.c \
|
||||
libmng_read.c libmng_write.c libmng_display.c \
|
||||
libmng_object_prc.c libmng_chunk_prc.c libmng_chunk_io.c libmng_error.c \
|
||||
libmng_trace.c libmng_pixels.c libmng_filter.c libmng_dither.c \
|
||||
libmng_zlib.c libmng_jpeg.c libmng_cms.c
|
||||
|
||||
# object files
|
||||
OBJECTS= libmng_hlapi.obj libmng_callback_xs.obj libmng_prop_xs.obj libmng_chunk_xs.obj \
|
||||
libmng_read.obj libmng_write.obj libmng_display.obj \
|
||||
libmng_object_prc.obj libmng_chunk_prc.obj libmng_chunk_io.obj libmng_error.obj \
|
||||
libmng_trace.obj libmng_pixels.obj libmng_filter.obj libmng_dither.obj \
|
||||
libmng_zlib.obj libmng_jpeg.obj libmng_cms.obj
|
||||
|
||||
# type dependancies
|
||||
.c.obj:
|
||||
$(CC) $(CFLAGS) -c{ $<}
|
||||
|
||||
# make options
|
||||
all: libmng.lib
|
||||
|
||||
clean:
|
||||
- del *.obj
|
||||
- del libmng.lib
|
||||
|
||||
# file dependancies
|
||||
libmng.lib: $(OBJECTS)
|
||||
- del libmng.lib
|
||||
tlib libmng.lib /E /C @&&|
|
||||
+libmng_hlapi.obj +libmng_callback_xs.obj +libmng_prop_xs.obj +libmng_chunk_xs.obj &
|
||||
+libmng_read.obj +libmng_write.obj +libmng_display.obj &
|
||||
+libmng_object_prc.obj +libmng_chunk_prc.obj +libmng_chunk_io.obj +libmng_error.obj &
|
||||
+libmng_trace.obj +libmng_pixels.obj +libmng_filter.obj +libmng_dither.obj &
|
||||
+libmng_zlib.obj +libmng_jpeg.obj +libmng_cms.obj
|
||||
|
|
||||
|
||||
libmng_hlapi.obj: libmng_hlapi.c libmng.h libmng_conf.h libmng_types.h \
|
||||
libmng_data.h libmng_objects.h libmng_object_prc.h \
|
||||
libmng_chunks.h libmng_memory.h libmng_error.h libmng_trace.h libmng_read.h \
|
||||
libmng_write.h libmng_display.h libmng_zlib.h libmng_cms.h libmng_zlib.h
|
||||
libmng_callback_xs.obj: libmng_callback_xs.c libmng.h libmng_conf.h libmng_types.h \
|
||||
libmng_data.h libmng_error.h libmng_trace.h
|
||||
libmng_prop_xs.obj: libmng_prop_xs.c libmng.h libmng_conf.h libmng_types.h \
|
||||
libmng_data.h libmng_error.h libmng_trace.h libmng_cms.h
|
||||
libmng_chunk_xs.obj: libmng_chunk_xs.c libmng.h libmng_conf.h libmng_types.h \
|
||||
libmng_data.h libmng_chunks.h libmng_chunk_prc.h libmng_error.h libmng_trace.h
|
||||
libmng_read.obj: libmng_read.c libmng.h libmng_conf.h libmng_types.h \
|
||||
libmng_data.h libmng_objects.h libmng_object_prc.h \
|
||||
libmng_chunks.h libmng_chunk_prc.h libmng_chunk_io.h libmng_memory.h \
|
||||
libmng_error.h libmng_trace.h libmng_read.h libmng_display.h
|
||||
libmng_write.obj: libmng_write.c libmng.h libmng_conf.h libmng_types.h \
|
||||
libmng_data.h libmng_error.h libmng_trace.h libmng_write.h
|
||||
libmng_display.obj: libmng_display.c libmng.h libmng_conf.h libmng_types.h \
|
||||
libmng_data.h libmng_objects.h libmng_object_prc.h libmng_memory.h \
|
||||
libmng_error.h libmng_trace.h libmng_zlib.h libmng_cms.h \
|
||||
libmng_pixels.h libmng_display.h
|
||||
libmng_object_prc.obj: libmng_object_prc.c libmng.h libmng_conf.h libmng_types.h \
|
||||
libmng_data.h libmng_objects.h libmng_object_prc.h libmng_memory.h \
|
||||
libmng_error.h libmng_trace.h libmng_display.h libmng_pixels.h
|
||||
libmng_chunk_prc.obj: libmng_chunk_prc.c libmng.h libmng_conf.h libmng_types.h \
|
||||
libmng_data.h libmng_chunks.h libmng_chunk_prc.h libmng_memory.h \
|
||||
libmng_error.h libmng_trace.h
|
||||
libmng_chunk_io.obj: libmng_chunk_io.c libmng.h libmng_conf.h libmng_types.h \
|
||||
libmng_data.h libmng_objects.h libmng_object_prc.h libmng_chunks.h \
|
||||
libmng_chunk_io.h libmng_chunk_prc libmng_memory.h libmng_error.h \
|
||||
libmng_trace.h libmng_display.h libmng_zlib.h libmng_pixels.h
|
||||
libmng_error.obj: libmng_error.c libmng.h libmng_conf.h libmng_types.h \
|
||||
libmng_data.h libmng_error.h libmng_trace.h
|
||||
libmng_trace.obj: libmng_trace.c libmng.h libmng_conf.h libmng_types.h \
|
||||
libmng_data.h libmng_error.h libmng_trace.h
|
||||
libmng_pixels.obj: libmng_pixels.c libmng.h libmng_conf.h libmng_types.h \
|
||||
libmng_data.h libmng_objects.h libmng_memory.h libmng_error.h libmng_trace.h \
|
||||
libmng_cms.h libmng_filter.h libmng_pixels.h
|
||||
libmng_filter.obj: libmng_filter.c libmng.h libmng_conf.h libmng_types.h \
|
||||
libmng_data.h libmng_error.h libmng_trace.h libmng_filter.h
|
||||
libmng_dither.obj: libmng_dither.c libmng.h libmng_conf.h libmng_types.h \
|
||||
libmng_data.h libmng_error.h libmng_trace.h libmng_dither.h
|
||||
libmng_zlib.obj: libmng_zlib.c libmng.h libmng_conf.h libmng_types.h \
|
||||
libmng_data.h libmng_memory.h libmng_error.h libmng_trace.h libmng_pixels.h \
|
||||
libmng_filter.h libmng_zlib.h
|
||||
libmng_jpeg.obj: libmng_jpeg.c libmng.h libmng_conf.h libmng_types.h \
|
||||
libmng_data.h libmng_memory.h libmng_error.h libmng_trace.h \
|
||||
libmng_pixels.h libmng_jpeg.h
|
||||
libmng_cms.obj: libmng_cms.c libmng.h libmng_conf.h libmng_types.h \
|
||||
libmng_data.h libmng_objects.h libmng_error.h libmng_trace.h libmng_cms.h
|
||||
|
@ -1,22 +0,0 @@
|
||||
USEUNIT("libpng.cpp");
|
||||
USEUNIT("..\..\pngwutil.c");
|
||||
USEUNIT("..\..\pngerror.c");
|
||||
USEUNIT("..\..\pngget.c");
|
||||
USEUNIT("..\..\pngmem.c");
|
||||
USEUNIT("..\..\pngpread.c");
|
||||
USEUNIT("..\..\pngread.c");
|
||||
USEUNIT("..\..\pngrio.c");
|
||||
USEUNIT("..\..\pngrtran.c");
|
||||
USEUNIT("..\..\pngrutil.c");
|
||||
USEUNIT("..\..\pngset.c");
|
||||
USEUNIT("..\..\pngtrans.c");
|
||||
USEUNIT("..\..\pngwio.c");
|
||||
USEUNIT("..\..\pngwrite.c");
|
||||
USEUNIT("..\..\pngwtran.c");
|
||||
USEUNIT("..\..\png.c");
|
||||
USELIB("zlib.lib");
|
||||
//---------------------------------------------------------------------------
|
||||
This file is used by the project manager only and should be treated like the project file
|
||||
|
||||
|
||||
DllEntryPoint
|
@ -1,25 +0,0 @@
|
||||
#------------------------------------------------------------------------------
|
||||
VERSION = BWS.01
|
||||
#------------------------------------------------------------------------------
|
||||
!ifndef ROOT
|
||||
ROOT = $(MAKEDIR)\..
|
||||
!endif
|
||||
#------------------------------------------------------------------------------
|
||||
MAKE = $(ROOT)\bin\make.exe -$(MAKEFLAGS) -f$**
|
||||
DCC = $(ROOT)\bin\dcc32.exe $**
|
||||
BRCC = $(ROOT)\bin\brcc32.exe $**
|
||||
#------------------------------------------------------------------------------
|
||||
PROJECTS = libpngstat.lib libpng.dll
|
||||
#------------------------------------------------------------------------------
|
||||
default: $(PROJECTS)
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
libpngstat.lib: libpngstat.bpr
|
||||
$(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $**
|
||||
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
|
||||
|
||||
libpng.dll: libpng.bpr
|
||||
$(ROOT)\bin\bpr2mak $**
|
||||
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
|
||||
|
||||
|
@ -1,157 +0,0 @@
|
||||
<?xml version='1.0' encoding='utf-8' ?>
|
||||
<!-- C++Builder XML Project -->
|
||||
<PROJECT>
|
||||
<MACROS>
|
||||
<VERSION value="BCB.05.03"/>
|
||||
<PROJECT value="libpng.dll"/>
|
||||
<OBJFILES value="libpng.obj ..\..\pngwutil.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 ..\..\png.obj"/>
|
||||
<RESFILES value=""/>
|
||||
<DEFFILE value=""/>
|
||||
<RESDEPEN value="$(RESFILES)"/>
|
||||
<LIBFILES value="zlib.lib"/>
|
||||
<LIBRARIES value="bcbsmp50.lib dclocx50.lib NMFast50.lib Tee50.lib Vclx50.lib Vcl50.lib"/>
|
||||
<SPARELIBS value="Vcl50.lib Vclx50.lib Tee50.lib NMFast50.lib dclocx50.lib bcbsmp50.lib"/>
|
||||
<PACKAGES value="Vcl50.bpi Vclx50.bpi bcbsmp50.bpi Qrpt50.bpi Vcldb50.bpi Vclbde50.bpi
|
||||
ibsmp50.bpi vcldbx50.bpi TeeUI50.bpi TeeDB50.bpi Tee50.bpi TeeQR50.bpi
|
||||
VCLIB50.bpi bcbie50.bpi vclie50.bpi Inetdb50.bpi Inet50.bpi NMFast50.bpi
|
||||
dclocx50.bpi bcb97axserver50.bpi SIMULUSCOMPONENTS.bpi Simulus2.bpi"/>
|
||||
<PATHCPP value=".;..\.."/>
|
||||
<PATHPAS value=".;"/>
|
||||
<PATHRC value=".;"/>
|
||||
<PATHASM value=".;"/>
|
||||
<DEBUGLIBPATH value="$(BCB)\lib\debug"/>
|
||||
<RELEASELIBPATH value="$(BCB)\lib\release"/>
|
||||
<LINKER value="tlink32"/>
|
||||
<USERDEFINES value="ZLIB_DLL;Z_PREFIX;PNG_BUILD_DLL;PNG_NO_MODULEDEF"/>
|
||||
<SYSDEFINES value="NO_STRICT;_NO_VCL;_RTLDLL"/>
|
||||
<MAINSOURCE value="libpng.bpf"/>
|
||||
<INCLUDEPATH value="..\..;..\..\..\zlib;$(BCB)\include"/>
|
||||
<LIBPATH value="..\..;$(BCB)\lib\obj;$(BCB)\lib"/>
|
||||
<WARNINGS value="-w8092 -w8091 -w8090 -w8089 -w8087 -wprc -wucp -wstv -wstu -wsig -wpin
|
||||
-wnod -wnak -wdef -wcln -wbbf -wasm -wamp -wamb"/>
|
||||
</MACROS>
|
||||
<OPTIONS>
|
||||
<CFLAG1 value="-WD -O2 -w -Vx -Ve -x- -RT- -X- -a8 -5 -b- -d -k- -vi -tWD -tWM -c"/>
|
||||
<PFLAGS value="-$Y- -$L- -$D- -$C- -v -JPHNE -M"/>
|
||||
<RFLAGS value=""/>
|
||||
<AFLAGS value="/mx /w2 /zn"/>
|
||||
<LFLAGS value="-D"" -aa -Tpd -x -Gn -Gi -w"/>
|
||||
</OPTIONS>
|
||||
<LINKER>
|
||||
<ALLOBJ value="c0d32.obj $(OBJFILES)"/>
|
||||
<ALLRES value="$(RESFILES)"/>
|
||||
<ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mti.lib"/>
|
||||
</LINKER>
|
||||
<IDEOPTIONS>
|
||||
[Version Info]
|
||||
IncludeVerInfo=0
|
||||
AutoIncBuild=0
|
||||
MajorVer=1
|
||||
MinorVer=0
|
||||
Release=0
|
||||
Build=0
|
||||
Debug=0
|
||||
PreRelease=0
|
||||
Special=0
|
||||
Private=0
|
||||
DLL=1
|
||||
Locale=2057
|
||||
CodePage=1252
|
||||
|
||||
[Version Info Keys]
|
||||
CompanyName=
|
||||
FileDescription=
|
||||
FileVersion=1.0.0.0
|
||||
InternalName=
|
||||
LegalCopyright=
|
||||
LegalTrademarks=
|
||||
OriginalFilename=
|
||||
ProductName=
|
||||
ProductVersion=
|
||||
Comments=
|
||||
|
||||
[HistoryLists\hlIncludePath]
|
||||
Count=18
|
||||
Item0=..\..;..\..\..\zlib;$(BCB)\include
|
||||
Item1=..\..;P:\My Documents\Source\PNG+ZLib\zlib;$(BCB)\include
|
||||
Item2=..\..;..\Source\ThirdParty\PortableNetworkGraphics\external;..\Source\ThirdParty\PortableNetworkGraphics;..\Source\ThirdParty\ZLibCompression\external;$(BCB)\include
|
||||
Item3=..\Source\ThirdParty\PortableNetworkGraphics\external;..\Source\ThirdParty\PortableNetworkGraphics;..\Source\ThirdParty\ZLibCompression\external;$(BCB)\include
|
||||
Item4=..\Source\ThirdParty\PortableNetworkGraphics\external;..\Source\ThirdParty\PortableNetworkGraphics;..\Source\ThirdParty\ZLibCompression;$(BCB)\include
|
||||
Item5=..\Source\ThirdParty\PortableNetworkGraphics;..\Source\ThirdParty\ZLibCompression;$(BCB)\include
|
||||
Item6=..\Source\ThirdParty\PortableNetworkGraphics;P:\Development\Source\ThirdParty\ZLibCompression;$(BCB)\include
|
||||
Item7=..\Source\ThirdParty\PortableNetworkGraphics;$(BCB)\include
|
||||
Item8=$(BCB)\include
|
||||
Item9=..\Source;..\Source\General\Templates;..\Source\SIMUtilities;$(BCB)\include;$(BCB)\include\vcl
|
||||
Item10=P:\Development\Source\;P:\Development\Source\General\Templates\;P:\Development\Source\SIMUtilities\;$(BCB)\include;$(BCB)\include\vcl
|
||||
Item11=P:\Development\Source;P:\Development\Source\General\Templates\;P:\Development\Source\SIMUtilities\;$(BCB)\include;$(BCB)\include\vcl
|
||||
Item12=P:\Development\Source\General\Templates\;P:\Development\Source\SIMUtilities\;$(BCB)\include;$(BCB)\include\vcl
|
||||
Item13=P:\Development\Source\General\Templates\;P:\Development\Source\SIMUtilities;$(BCB)\include;$(BCB)\include\vcl
|
||||
Item14=P:\Development\Source\General\Templates\;$(BCB)\include;$(BCB)\include\vcl
|
||||
Item15=P:\Development\Source\General\Templates;$(BCB)\include;$(BCB)\include\vcl
|
||||
Item16=P:\Development\Source;$(BCB)\include;$(BCB)\include\vcl
|
||||
Item17=$(BCB)\include;$(BCB)\include\vcl
|
||||
|
||||
[HistoryLists\hlLibraryPath]
|
||||
Count=10
|
||||
Item0=..\..;$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item1=..\..;..\Source\ThirdParty\PortableNetworkGraphics\external;..\Source\ThirdParty\PortableNetworkGraphics;$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item2=..\Source\ThirdParty\PortableNetworkGraphics\external;..\Source\ThirdParty\PortableNetworkGraphics;$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item3=..\Source\ThirdParty\PortableNetworkGraphics;$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item4=$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item5=..\Source\SIMUtilities;..\Source;$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item6=P:\Development\Source\SIMUtilities\;P:\Development\Source\;$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item7=P:\Development\Source\SIMUtilities;P:\Development\Source\;$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item8=P:\Development\Source\;$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item9=P:\Development\Source;$(BCB)\lib\obj;$(BCB)\lib
|
||||
|
||||
[HistoryLists\hlDebugSourcePath]
|
||||
Count=1
|
||||
Item0=$(BCB)\source\vcl
|
||||
|
||||
[HistoryLists\hlConditionals]
|
||||
Count=20
|
||||
Item0=ZLIB_DLL;Z_PREFIX;PNG_BUILD_DLL;PNG_NO_MODULEDEF
|
||||
Item1=_DEBUG;ZLIB_DLL;Z_PREFIX;PNG_BUILD_DLL;PNG_NO_MODULEDEF
|
||||
Item2=PNG_BUILD_DLL;ZLIB_DLL;_DEBUG;PNG_NO_MODULEDEF
|
||||
Item3=PNG_BUILD_DLL;ZLIB_DLL;_DEBUG;PNG_DEBUG=5;PNG_NO_MODULEDEF;PNG_NO_GLOBAL_ARRAYS
|
||||
Item4=PNG_BUILD_DLL;ZLIB_DLL;_DEBUG;PNG_DEBUG=5;PNG_NO_MODULEDEF;PNG_SETJMP_NOT_SUPPORTED;PNG_DEBUG_FILE=stderr
|
||||
Item5=PNG_BUILD_DLL;ZLIB_DLL;_DEBUG;PNG_DEBUG;PNG_NO_MODULEDEF;PNG_SETJMP_NOT_SUPPORTED
|
||||
Item6=PNG_BUILD_DLL;ZLIB_DLL;_DEBUG;PNG_DEBUG=5;PNG_NO_MODULEDEF;PNG_SETJMP_NOT_SUPPORTED
|
||||
Item7=PNG_BUILD_DLL;ZLIB_DLL;_DEBUG;PNG_DEBUG=5;PNG_NO_MODULEDEF
|
||||
Item8=PNG_BUILD_DLL;ZLIB_DLL;_DEBUG;PNG_DEBUG=5
|
||||
Item9=PNG_BUILD_DLL;ZLIB_DLL;_DEBUG
|
||||
Item10=PNG_BUILD_DLL;ZLIB_DLL
|
||||
Item11=PNG_BUILD_DLL
|
||||
Item12=PNG_DLL;PNG_BUILD_DLL;ZLIB_DLL
|
||||
Item13=PNG_DLL;PNG_BUILD_DLL;PNG_NO_GLOBAL_ARRAYS;ZLIB_DLL
|
||||
Item14=PNG_DLL;PNG_BUILD_DLL;PNG_NO_GLOBAL_ARRAYS
|
||||
Item15=PNG_DLL;PNG_BUILD_DLL
|
||||
Item16=PNG_DLL;PNG_BUILD_DLL;PNG_MODULEDEF
|
||||
Item17=_HTML_FORM
|
||||
Item18=_DEBUG;_HTML_FORM
|
||||
Item19=_DEBUG
|
||||
|
||||
[HistoryLists\hlIntOutputDir]
|
||||
Count=2
|
||||
Item0=..\Obj
|
||||
Item1=P:\Development\Obj
|
||||
|
||||
[Debugging]
|
||||
DebugSourceDirs=
|
||||
|
||||
[Parameters]
|
||||
RunParams=
|
||||
HostApplication=P:\Development\Executables\LibPNGTestApp.exe
|
||||
RemoteHost=
|
||||
RemotePath=
|
||||
RemoteDebug=0
|
||||
|
||||
[Compiler]
|
||||
ShowInfoMsgs=0
|
||||
LinkDebugVcl=0
|
||||
LinkCGLIB=0
|
||||
</IDEOPTIONS>
|
||||
</PROJECT>
|
@ -1,28 +0,0 @@
|
||||
//---------------------------------------------------------------------------
|
||||
#include <windows.h>
|
||||
//---------------------------------------------------------------------------
|
||||
// Important note about DLL memory management when your DLL uses the
|
||||
// static version of the RunTime Library:
|
||||
//
|
||||
// If your DLL exports any functions that pass String objects (or structs/
|
||||
// classes containing nested Strings) as parameter or function results,
|
||||
// you will need to add the library MEMMGR.LIB to both the DLL project and
|
||||
// any other projects that use the DLL. You will also need to use MEMMGR.LIB
|
||||
// if any other projects which use the DLL will be performing new or delete
|
||||
// operations on any non-TObject-derived classes which are exported from the
|
||||
// DLL. Adding MEMMGR.LIB to your project will change the DLL and its calling
|
||||
// EXE's to use the BORLNDMM.DLL as their memory manager. In these cases,
|
||||
// the file BORLNDMM.DLL should be deployed along with your DLL.
|
||||
//
|
||||
// To avoid using BORLNDMM.DLL, pass string information using "char *" or
|
||||
// ShortString parameters.
|
||||
//
|
||||
// If your DLL uses the dynamic version of the RTL, you do not need to
|
||||
// explicitly add MEMMGR.LIB as this will be done implicitly for you
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
int WINAPI DllEntryPoint(HINSTANCE, unsigned long, void*)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
@ -1,19 +0,0 @@
|
||||
Project files to build libpng using Borland C++ Builder v5.0
|
||||
|
||||
To use this dll, you will need to:
|
||||
|
||||
1) add the following conditional defines to your project
|
||||
|
||||
PNG_USE_DLL
|
||||
Z_PREFIX
|
||||
|
||||
2) add the paths to png.h and zlib.h to your include path
|
||||
|
||||
3) add libpng.lib or libpngstat.lib to the project.
|
||||
|
||||
If you are using libpng.dll, libpng.dll and zlib.dll will be required for the code to run.
|
||||
|
||||
Alternatively, the libpng.dll can be built using zlibstat.lib to produce one dll containing both the zlib and png code.
|
||||
|
||||
See the libpng documentation for instructions on how to use the code.
|
||||
|
@ -1,22 +0,0 @@
|
||||
USELIB("zlibstat.lib");
|
||||
USEUNIT("..\..\pngerror.c");
|
||||
USEUNIT("..\..\png.c");
|
||||
USEUNIT("..\..\pngwutil.c");
|
||||
USEUNIT("..\..\pngmem.c");
|
||||
USEUNIT("..\..\pngpread.c");
|
||||
USEUNIT("..\..\pngread.c");
|
||||
USEUNIT("..\..\pngrio.c");
|
||||
USEUNIT("..\..\pngrtran.c");
|
||||
USEUNIT("..\..\pngrutil.c");
|
||||
USEUNIT("..\..\pngset.c");
|
||||
USEUNIT("..\..\pngtrans.c");
|
||||
USEUNIT("..\..\pngwio.c");
|
||||
USEUNIT("..\..\pngwrite.c");
|
||||
USEUNIT("..\..\pngwtran.c");
|
||||
USEUNIT("..\..\pngget.c");
|
||||
//---------------------------------------------------------------------------
|
||||
#define Library
|
||||
|
||||
// To add a file to the library use the Project menu 'Add to Project'.
|
||||
|
||||
|
@ -1,109 +0,0 @@
|
||||
<?xml version='1.0' encoding='utf-8' ?>
|
||||
<!-- C++Builder XML Project -->
|
||||
<PROJECT>
|
||||
<MACROS>
|
||||
<VERSION value="BCB.05.03"/>
|
||||
<PROJECT value="libpngstat.lib"/>
|
||||
<OBJFILES value="..\..\pngerror.obj ..\..\png.obj ..\..\pngwutil.obj ..\..\pngmem.obj
|
||||
..\..\pngpread.obj ..\..\pngread.obj ..\..\pngrio.obj ..\..\pngrtran.obj
|
||||
..\..\pngrutil.obj ..\..\pngset.obj ..\..\pngtrans.obj ..\..\pngwio.obj
|
||||
..\..\pngwrite.obj ..\..\pngwtran.obj ..\..\pngget.obj"/>
|
||||
<RESFILES value=""/>
|
||||
<DEFFILE value=""/>
|
||||
<RESDEPEN value="$(RESFILES)"/>
|
||||
<LIBFILES value="zlibstat.lib"/>
|
||||
<LIBRARIES value=""/>
|
||||
<PACKAGES value=""/>
|
||||
<PATHCPP value=".;..\.."/>
|
||||
<PATHPAS value=".;"/>
|
||||
<PATHRC value=".;"/>
|
||||
<PATHASM value=".;"/>
|
||||
<LINKER value="TLib"/>
|
||||
<USERDEFINES value=""/>
|
||||
<SYSDEFINES value="_RTLDLL;NO_STRICT"/>
|
||||
<MAINSOURCE value="libpngstat.bpf"/>
|
||||
<INCLUDEPATH value="..\..;..\..\..\zlib;$(BCB)\include"/>
|
||||
<LIBPATH value="..\..;$(BCB)\lib\obj;$(BCB)\lib"/>
|
||||
<WARNINGS value="-w-par"/>
|
||||
<LISTFILE value=""/>
|
||||
</MACROS>
|
||||
<OPTIONS>
|
||||
<CFLAG1 value="-O2 -w -Vx -Ve -X- -a8 -5 -b- -d -k- -vi -c -tW -tWM"/>
|
||||
<PFLAGS value="-$Y- -$L- -$D- -$C- -v -JPHNE -M"/>
|
||||
<AFLAGS value="/mx /w2 /zn"/>
|
||||
<LFLAGS value=""/>
|
||||
</OPTIONS>
|
||||
<LINKER>
|
||||
<ALLOBJ value="$(OBJFILES)"/>
|
||||
<ALLLIB value=""/>
|
||||
</LINKER>
|
||||
<IDEOPTIONS>
|
||||
[Version Info]
|
||||
IncludeVerInfo=0
|
||||
AutoIncBuild=0
|
||||
MajorVer=1
|
||||
MinorVer=0
|
||||
Release=0
|
||||
Build=0
|
||||
Debug=0
|
||||
PreRelease=0
|
||||
Special=0
|
||||
Private=0
|
||||
DLL=0
|
||||
Locale=2057
|
||||
CodePage=1252
|
||||
|
||||
[Version Info Keys]
|
||||
CompanyName=
|
||||
FileDescription=
|
||||
FileVersion=1.0.0.0
|
||||
InternalName=
|
||||
LegalCopyright=
|
||||
LegalTrademarks=
|
||||
OriginalFilename=
|
||||
ProductName=
|
||||
ProductVersion=1.0.0.0
|
||||
Comments=
|
||||
|
||||
[HistoryLists\hlIncludePath]
|
||||
Count=2
|
||||
Item0=..\..;P:\My Documents\Source\PNG+ZLib\zlib;$(BCB)\include
|
||||
Item1=..\..;$(BCB)\include;$(BCB)\include\vcl
|
||||
|
||||
[HistoryLists\hlLibraryPath]
|
||||
Count=1
|
||||
Item0=..\..;$(BCB)\lib\obj;$(BCB)\lib
|
||||
|
||||
[HistoryLists\hlDebugSourcePath]
|
||||
Count=1
|
||||
Item0=$(BCB)\source\vcl
|
||||
|
||||
[HistoryLists\hlConditionals]
|
||||
Count=1
|
||||
Item0=_DEBUG
|
||||
|
||||
[HistoryLists\hlTlibPageSize]
|
||||
Count=1
|
||||
Item0=0x0010
|
||||
|
||||
[Debugging]
|
||||
DebugSourceDirs=$(BCB)\source\vcl
|
||||
|
||||
[Parameters]
|
||||
RunParams=
|
||||
HostApplication=
|
||||
RemoteHost=
|
||||
RemotePath=
|
||||
RemoteDebug=0
|
||||
|
||||
[Compiler]
|
||||
ShowInfoMsgs=0
|
||||
LinkDebugVcl=0
|
||||
LinkCGLIB=0
|
||||
|
||||
[Language]
|
||||
ActiveLang=
|
||||
ProjectLang=
|
||||
RootDir=
|
||||
</IDEOPTIONS>
|
||||
</PROJECT>
|
@ -1,33 +0,0 @@
|
||||
#------------------------------------------------------------------------------
|
||||
VERSION = BWS.01
|
||||
#------------------------------------------------------------------------------
|
||||
!ifndef ROOT
|
||||
ROOT = $(MAKEDIR)\..
|
||||
!endif
|
||||
#------------------------------------------------------------------------------
|
||||
MAKE = $(ROOT)\bin\make.exe -$(MAKEFLAGS) -f$**
|
||||
DCC = $(ROOT)\bin\dcc32.exe $**
|
||||
BRCC = $(ROOT)\bin\brcc32.exe $**
|
||||
#------------------------------------------------------------------------------
|
||||
PROJECTS = zlibstat.lib libpngstat.lib zlib.dll libpng.dll
|
||||
#------------------------------------------------------------------------------
|
||||
default: $(PROJECTS)
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
libpng.dll: libpng.bpr
|
||||
$(ROOT)\bin\bpr2mak $**
|
||||
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
|
||||
|
||||
zlibstat.lib: zlibstat.bpr
|
||||
$(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $**
|
||||
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
|
||||
|
||||
zlib.dll: zlib.bpr
|
||||
$(ROOT)\bin\bpr2mak $**
|
||||
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
|
||||
|
||||
libpngstat.lib: libpngstat.bpr
|
||||
$(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $**
|
||||
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
|
||||
|
||||
|
@ -1,20 +0,0 @@
|
||||
USEUNIT("zlib.cpp");
|
||||
USEUNIT("..\..\..\zlib\zutil.c");
|
||||
USEUNIT("..\..\..\zlib\compress.c");
|
||||
USEUNIT("..\..\..\zlib\crc32.c");
|
||||
USEUNIT("..\..\..\zlib\deflate.c");
|
||||
USEUNIT("..\..\..\zlib\gzio.c");
|
||||
USEUNIT("..\..\..\zlib\infblock.c");
|
||||
USEUNIT("..\..\..\zlib\infcodes.c");
|
||||
USEUNIT("..\..\..\zlib\inffast.c");
|
||||
USEUNIT("..\..\..\zlib\inflate.c");
|
||||
USEUNIT("..\..\..\zlib\inftrees.c");
|
||||
USEUNIT("..\..\..\zlib\infutil.c");
|
||||
USEUNIT("..\..\..\zlib\trees.c");
|
||||
USEUNIT("..\..\..\zlib\uncompr.c");
|
||||
USEUNIT("..\..\..\zlib\adler32.c");
|
||||
//---------------------------------------------------------------------------
|
||||
This file is used by the project manager only and should be treated like the project file
|
||||
|
||||
|
||||
DllEntryPoint
|
@ -1,25 +0,0 @@
|
||||
#------------------------------------------------------------------------------
|
||||
VERSION = BWS.01
|
||||
#------------------------------------------------------------------------------
|
||||
!ifndef ROOT
|
||||
ROOT = $(MAKEDIR)\..
|
||||
!endif
|
||||
#------------------------------------------------------------------------------
|
||||
MAKE = $(ROOT)\bin\make.exe -$(MAKEFLAGS) -f$**
|
||||
DCC = $(ROOT)\bin\dcc32.exe $**
|
||||
BRCC = $(ROOT)\bin\brcc32.exe $**
|
||||
#------------------------------------------------------------------------------
|
||||
PROJECTS = zlibstat.lib zlib.dll
|
||||
#------------------------------------------------------------------------------
|
||||
default: $(PROJECTS)
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
zlibstat.lib: zlibstat.bpr
|
||||
$(ROOT)\bin\bpr2mak -t$(ROOT)\bin\deflib.bmk $**
|
||||
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
|
||||
|
||||
zlib.dll: zlib.bpr
|
||||
$(ROOT)\bin\bpr2mak $**
|
||||
$(ROOT)\bin\make -$(MAKEFLAGS) -f$*.mak
|
||||
|
||||
|
@ -1,147 +0,0 @@
|
||||
<?xml version='1.0' encoding='utf-8' ?>
|
||||
<!-- C++Builder XML Project -->
|
||||
<PROJECT>
|
||||
<MACROS>
|
||||
<VERSION value="BCB.05.03"/>
|
||||
<PROJECT value="zlib.dll"/>
|
||||
<OBJFILES value="zlib.obj ..\..\..\zlib\zutil.obj ..\..\..\zlib\compress.obj
|
||||
..\..\..\zlib\crc32.obj ..\..\..\zlib\deflate.obj ..\..\..\zlib\gzio.obj
|
||||
..\..\..\zlib\infblock.obj ..\..\..\zlib\infcodes.obj
|
||||
..\..\..\zlib\inffast.obj ..\..\..\zlib\inflate.obj
|
||||
..\..\..\zlib\inftrees.obj ..\..\..\zlib\infutil.obj
|
||||
..\..\..\zlib\trees.obj ..\..\..\zlib\uncompr.obj ..\..\..\zlib\adler32.obj"/>
|
||||
<RESFILES value=""/>
|
||||
<DEFFILE value=""/>
|
||||
<RESDEPEN value="$(RESFILES)"/>
|
||||
<LIBFILES value=""/>
|
||||
<LIBRARIES value="bcbsmp50.lib dclocx50.lib NMFast50.lib Tee50.lib Vclx50.lib Vcl50.lib"/>
|
||||
<SPARELIBS value="Vcl50.lib Vclx50.lib Tee50.lib NMFast50.lib dclocx50.lib bcbsmp50.lib"/>
|
||||
<PACKAGES value="Vcl50.bpi Vclx50.bpi bcbsmp50.bpi Qrpt50.bpi Vcldb50.bpi Vclbde50.bpi
|
||||
ibsmp50.bpi vcldbx50.bpi TeeUI50.bpi TeeDB50.bpi Tee50.bpi TeeQR50.bpi
|
||||
VCLIB50.bpi bcbie50.bpi vclie50.bpi Inetdb50.bpi Inet50.bpi NMFast50.bpi
|
||||
dclocx50.bpi bcb97axserver50.bpi SIMULUSCOMPONENTS.bpi Simulus2.bpi"/>
|
||||
<PATHCPP value=".;..\..\..\zlib"/>
|
||||
<PATHPAS value=".;"/>
|
||||
<PATHRC value=".;"/>
|
||||
<PATHASM value=".;"/>
|
||||
<DEBUGLIBPATH value="$(BCB)\lib\debug"/>
|
||||
<RELEASELIBPATH value="$(BCB)\lib\release"/>
|
||||
<LINKER value="tlink32"/>
|
||||
<USERDEFINES value="ZLIB_DLL;Z_PREFIX"/>
|
||||
<SYSDEFINES value="NO_STRICT;_NO_VCL;_RTLDLL"/>
|
||||
<MAINSOURCE value="zlib.bpf"/>
|
||||
<INCLUDEPATH value="..\..\..\zlib;$(BCB)\include"/>
|
||||
<LIBPATH value="..\..\..\zlib;$(BCB)\lib\obj;$(BCB)\lib"/>
|
||||
<WARNINGS value="-w8092 -w8091 -w8090 -w8089 -w8087 -wprc -wuse -wucp -wstv -wstu -wpin
|
||||
-w-par -wnod -wnak -wdef -wcln -wbbf -w-aus -wasm -wamp -wamb"/>
|
||||
</MACROS>
|
||||
<OPTIONS>
|
||||
<CFLAG1 value="-WD -O2 -w -Vx -Ve -x- -RT- -ff -X- -a8 -5 -b- -d -k- -vi -tWD -tWM -c"/>
|
||||
<PFLAGS value="-$Y- -$L- -$D- -$C- -v -JPHNE -M"/>
|
||||
<RFLAGS value=""/>
|
||||
<AFLAGS value="/mx /w2 /zn"/>
|
||||
<LFLAGS value="-D"" -aa -Tpd -x -Gn -Gi -w"/>
|
||||
</OPTIONS>
|
||||
<LINKER>
|
||||
<ALLOBJ value="c0d32.obj $(OBJFILES)"/>
|
||||
<ALLRES value="$(RESFILES)"/>
|
||||
<ALLLIB value="$(LIBFILES) $(LIBRARIES) import32.lib cw32mti.lib"/>
|
||||
</LINKER>
|
||||
<IDEOPTIONS>
|
||||
[Version Info]
|
||||
IncludeVerInfo=0
|
||||
AutoIncBuild=0
|
||||
MajorVer=1
|
||||
MinorVer=0
|
||||
Release=0
|
||||
Build=0
|
||||
Debug=0
|
||||
PreRelease=0
|
||||
Special=0
|
||||
Private=0
|
||||
DLL=1
|
||||
Locale=2057
|
||||
CodePage=1252
|
||||
|
||||
[Version Info Keys]
|
||||
CompanyName=
|
||||
FileDescription=
|
||||
FileVersion=1.0.0.0
|
||||
InternalName=
|
||||
LegalCopyright=
|
||||
LegalTrademarks=
|
||||
OriginalFilename=
|
||||
ProductName=
|
||||
ProductVersion=1.0.0.0
|
||||
Comments=
|
||||
|
||||
[HistoryLists\hlIncludePath]
|
||||
Count=16
|
||||
Item0=..\..\..\zlib;$(BCB)\include
|
||||
Item1=..\..\..;..\Source\ThirdParty\ZLibCompression\external;..\Source\ThirdParty\ZLibCompression;..\..\..\zlib;$(BCB)\include
|
||||
Item2=..\Source\ThirdParty\ZLibCompression\external;..\Source\ThirdParty\ZLibCompression;..\..\..\zlib;$(BCB)\include
|
||||
Item3=P:\My Documents\Source\PNG+ZLib\zlib;$(BCB)\include
|
||||
Item4=..\Source\ThirdParty\ZLibCompression\external;..\Source\ThirdParty\ZLibCompression;$(BCB)\include
|
||||
Item5=..\Source\ThirdParty\ZLibCompression;$(BCB)\include
|
||||
Item6=$(BCB)\include
|
||||
Item7=..\Source;..\Source\General\Templates;..\Source\SIMUtilities;$(BCB)\include;$(BCB)\include\vcl
|
||||
Item8=P:\Development\Source\;P:\Development\Source\General\Templates\;P:\Development\Source\SIMUtilities\;$(BCB)\include;$(BCB)\include\vcl
|
||||
Item9=P:\Development\Source;P:\Development\Source\General\Templates\;P:\Development\Source\SIMUtilities\;$(BCB)\include;$(BCB)\include\vcl
|
||||
Item10=P:\Development\Source\General\Templates\;P:\Development\Source\SIMUtilities\;$(BCB)\include;$(BCB)\include\vcl
|
||||
Item11=P:\Development\Source\General\Templates\;P:\Development\Source\SIMUtilities;$(BCB)\include;$(BCB)\include\vcl
|
||||
Item12=P:\Development\Source\General\Templates\;$(BCB)\include;$(BCB)\include\vcl
|
||||
Item13=P:\Development\Source\General\Templates;$(BCB)\include;$(BCB)\include\vcl
|
||||
Item14=P:\Development\Source;$(BCB)\include;$(BCB)\include\vcl
|
||||
Item15=$(BCB)\include;$(BCB)\include\vcl
|
||||
|
||||
[HistoryLists\hlLibraryPath]
|
||||
Count=12
|
||||
Item0=..\..\..\zlib;$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item1=..\..\..;..\Source\ThirdParty\ZLibCompression\external;..\Source\ThirdParty\ZLibCompression;..\..\..\zlib;$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item2=..\Source\ThirdParty\ZLibCompression\external;..\Source\ThirdParty\ZLibCompression;..\..\..\zlib;$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item3=P:\My Documents\Source\PNG+ZLib\zlib;$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item4=..\Source\ThirdParty\ZLibCompression\external;..\Source\ThirdParty\ZLibCompression;$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item5=$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item6=..\Source\ThirdParty\ZLibCompression;$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item7=..\Source\SIMUtilities;..\Source;$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item8=P:\Development\Source\SIMUtilities\;P:\Development\Source\;$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item9=P:\Development\Source\SIMUtilities;P:\Development\Source\;$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item10=P:\Development\Source\;$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item11=P:\Development\Source;$(BCB)\lib\obj;$(BCB)\lib
|
||||
|
||||
[HistoryLists\hlDebugSourcePath]
|
||||
Count=1
|
||||
Item0=$(BCB)\source\vcl
|
||||
|
||||
[HistoryLists\hlConditionals]
|
||||
Count=8
|
||||
Item0=ZLIB_DLL;Z_PREFIX
|
||||
Item1=ZLIB_DLL;_DEBUG;Z_PREFIX
|
||||
Item2=ZLIB_DLL;_DEBUG
|
||||
Item3=ZLIB_DLL
|
||||
Item4=_WINDOWS;ZLIB_DLL
|
||||
Item5=_HTML_FORM
|
||||
Item6=_DEBUG;_HTML_FORM
|
||||
Item7=_DEBUG
|
||||
|
||||
[HistoryLists\hlIntOutputDir]
|
||||
Count=2
|
||||
Item0=..\Obj
|
||||
Item1=P:\Development\Obj
|
||||
|
||||
[Debugging]
|
||||
DebugSourceDirs=
|
||||
|
||||
[Parameters]
|
||||
RunParams=
|
||||
HostApplication=
|
||||
RemoteHost=
|
||||
RemotePath=
|
||||
RemoteDebug=0
|
||||
|
||||
[Compiler]
|
||||
ShowInfoMsgs=0
|
||||
LinkDebugVcl=0
|
||||
LinkCGLIB=0
|
||||
</IDEOPTIONS>
|
||||
</PROJECT>
|
@ -1,29 +0,0 @@
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
#include <windows.h>
|
||||
//---------------------------------------------------------------------------
|
||||
// Important note about DLL memory management when your DLL uses the
|
||||
// static version of the RunTime Library:
|
||||
//
|
||||
// If your DLL exports any functions that pass String objects (or structs/
|
||||
// classes containing nested Strings) as parameter or function results,
|
||||
// you will need to add the library MEMMGR.LIB to both the DLL project and
|
||||
// any other projects that use the DLL. You will also need to use MEMMGR.LIB
|
||||
// if any other projects which use the DLL will be performing new or delete
|
||||
// operations on any non-TObject-derived classes which are exported from the
|
||||
// DLL. Adding MEMMGR.LIB to your project will change the DLL and its calling
|
||||
// EXE's to use the BORLNDMM.DLL as their memory manager. In these cases,
|
||||
// the file BORLNDMM.DLL should be deployed along with your DLL.
|
||||
//
|
||||
// To avoid using BORLNDMM.DLL, pass string information using "char *" or
|
||||
// ShortString parameters.
|
||||
//
|
||||
// If your DLL uses the dynamic version of the RTL, you do not need to
|
||||
// explicitly add MEMMGR.LIB as this will be done implicitly for you
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
int WINAPI DllEntryPoint(HINSTANCE, unsigned long, void*)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
//---------------------------------------------------------------------------
|
@ -1,20 +0,0 @@
|
||||
USEUNIT("..\..\..\zlib\zutil.c");
|
||||
USEUNIT("..\..\..\zlib\compress.c");
|
||||
USEUNIT("..\..\..\zlib\crc32.c");
|
||||
USEUNIT("..\..\..\zlib\deflate.c");
|
||||
USEUNIT("..\..\..\zlib\gzio.c");
|
||||
USEUNIT("..\..\..\zlib\infblock.c");
|
||||
USEUNIT("..\..\..\zlib\infcodes.c");
|
||||
USEUNIT("..\..\..\zlib\inffast.c");
|
||||
USEUNIT("..\..\..\zlib\inflate.c");
|
||||
USEUNIT("..\..\..\zlib\inftrees.c");
|
||||
USEUNIT("..\..\..\zlib\infutil.c");
|
||||
USEUNIT("..\..\..\zlib\trees.c");
|
||||
USEUNIT("..\..\..\zlib\uncompr.c");
|
||||
USEUNIT("..\..\..\zlib\adler32.c");
|
||||
//---------------------------------------------------------------------------
|
||||
#define Library
|
||||
|
||||
// To add a file to the library use the Project menu 'Add to Project'.
|
||||
|
||||
|
@ -1,131 +0,0 @@
|
||||
<?xml version='1.0' encoding='utf-8' ?>
|
||||
<!-- C++Builder XML Project -->
|
||||
<PROJECT>
|
||||
<MACROS>
|
||||
<VERSION value="BCB.05.03"/>
|
||||
<PROJECT value="zlibstat.lib"/>
|
||||
<OBJFILES value="..\..\..\zlib\zutil.obj ..\..\..\zlib\compress.obj ..\..\..\zlib\crc32.obj
|
||||
..\..\..\zlib\deflate.obj ..\..\..\zlib\gzio.obj
|
||||
..\..\..\zlib\infblock.obj ..\..\..\zlib\infcodes.obj
|
||||
..\..\..\zlib\inffast.obj ..\..\..\zlib\inflate.obj
|
||||
..\..\..\zlib\inftrees.obj ..\..\..\zlib\infutil.obj
|
||||
..\..\..\zlib\trees.obj ..\..\..\zlib\uncompr.obj ..\..\..\zlib\adler32.obj"/>
|
||||
<RESFILES value=""/>
|
||||
<DEFFILE value=""/>
|
||||
<RESDEPEN value="$(RESFILES)"/>
|
||||
<LIBFILES value=""/>
|
||||
<LIBRARIES value=""/>
|
||||
<PACKAGES value=""/>
|
||||
<PATHCPP value=".;..\..\..\zlib"/>
|
||||
<PATHPAS value=".;"/>
|
||||
<PATHRC value=".;"/>
|
||||
<PATHASM value=".;"/>
|
||||
<LINKER value="TLib"/>
|
||||
<USERDEFINES value="Z_PREFIX"/>
|
||||
<SYSDEFINES value="_RTLDLL;NO_STRICT"/>
|
||||
<MAINSOURCE value="zlibstat.bpf"/>
|
||||
<INCLUDEPATH value="..\..\..\zlib;$(BCB)\include"/>
|
||||
<LIBPATH value="..\..\..\zlib;$(BCB)\lib\obj;$(BCB)\lib"/>
|
||||
<WARNINGS value="-w8092 -w8091 -w8090 -w8089 -w8087 -wprc -wuse -wucp -wstv -wstu -wpin
|
||||
-wnod -wnak -wdef -wcln -wbbf -w-aus -wasm -wamp -wamb"/>
|
||||
<LISTFILE value=""/>
|
||||
</MACROS>
|
||||
<OPTIONS>
|
||||
<CFLAG1 value="-O2 -w -Vx -Ve -x- -RT- -X- -a8 -5 -b- -d -k- -vi -c -tW -tWM"/>
|
||||
<PFLAGS value="-$Y- -$L- -$D- -$C- -v -JPHNE -M"/>
|
||||
<AFLAGS value="/mx /w2 /zn"/>
|
||||
<LFLAGS value=""/>
|
||||
</OPTIONS>
|
||||
<LINKER>
|
||||
<ALLOBJ value="$(OBJFILES)"/>
|
||||
<ALLLIB value=""/>
|
||||
</LINKER>
|
||||
<IDEOPTIONS>
|
||||
[Version Info]
|
||||
IncludeVerInfo=0
|
||||
AutoIncBuild=0
|
||||
MajorVer=1
|
||||
MinorVer=0
|
||||
Release=0
|
||||
Build=0
|
||||
Debug=0
|
||||
PreRelease=0
|
||||
Special=0
|
||||
Private=0
|
||||
DLL=0
|
||||
Locale=2057
|
||||
CodePage=1252
|
||||
|
||||
[Version Info Keys]
|
||||
CompanyName=
|
||||
FileDescription=
|
||||
FileVersion=1.0.0.0
|
||||
InternalName=
|
||||
LegalCopyright=
|
||||
LegalTrademarks=
|
||||
OriginalFilename=
|
||||
ProductName=
|
||||
ProductVersion=1.0.0.0
|
||||
Comments=
|
||||
|
||||
[HistoryLists\hlIncludePath]
|
||||
Count=8
|
||||
Item0=..\..\..\zlib;$(BCB)\include
|
||||
Item1=..\Source\ThirdParty\ZLibCompression\external;..\..\..\zlib;$(BCB)\include
|
||||
Item2=P:\My Documents\Source\PNG+ZLib\zlib;$(BCB)\include
|
||||
Item3=..\Source\ThirdParty\ZLibCompression\external;$(BCB)\include
|
||||
Item4=..\Source\ThirdParty\ZLibCompression\external;..\Source\ThirdParty\ZLibCompression\ext;..\Source\ThirdParty\ZLibCompression;$(BCB)\include
|
||||
Item5=..\Source\ThirdParty\ZLibCompression;$(BCB)\include
|
||||
Item6=$(BCB)\include
|
||||
Item7=$(BCB)\include;$(BCB)\include\vcl
|
||||
|
||||
[HistoryLists\hlLibraryPath]
|
||||
Count=7
|
||||
Item0=..\..\..\zlib;$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item1=$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item2=..\Source\ThirdParty\ZLibCompression\external;..\..\..\zlib;$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item3=P:\My Documents\Source\PNG+ZLib\zlib;$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item4=..\Source\ThirdParty\ZLibCompression\external;$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item5=..\Source\ThirdParty\ZLibCompression\external;..\Source\ThirdParty\ZLibCompression\ext;..\Source\ThirdParty\ZLibCompression;$(BCB)\lib\obj;$(BCB)\lib
|
||||
Item6=..\Source\ThirdParty\ZLibCompression;$(BCB)\lib\obj;$(BCB)\lib
|
||||
|
||||
[HistoryLists\hlDebugSourcePath]
|
||||
Count=1
|
||||
Item0=$(BCB)\source\vcl
|
||||
|
||||
[HistoryLists\hlConditionals]
|
||||
Count=3
|
||||
Item0=Z_PREFIX
|
||||
Item1=ZLIB_DLL
|
||||
Item2=_WINDOWS;ZLIB_DLL
|
||||
|
||||
[HistoryLists\hlIntOutputDir]
|
||||
Count=2
|
||||
Item0=..\Obj
|
||||
Item1=P:\Development\Obj
|
||||
|
||||
[HistoryLists\hlTlibPageSize]
|
||||
Count=1
|
||||
Item0=0x0010
|
||||
|
||||
[Debugging]
|
||||
DebugSourceDirs=
|
||||
|
||||
[Parameters]
|
||||
RunParams=
|
||||
HostApplication=
|
||||
RemoteHost=
|
||||
RemotePath=
|
||||
RemoteDebug=0
|
||||
|
||||
[Compiler]
|
||||
ShowInfoMsgs=0
|
||||
LinkDebugVcl=0
|
||||
LinkCGLIB=0
|
||||
|
||||
[Language]
|
||||
ActiveLang=
|
||||
ProjectLang=
|
||||
RootDir=
|
||||
</IDEOPTIONS>
|
||||
</PROJECT>
|
@ -1,151 +0,0 @@
|
||||
# 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 and lib stuff
|
||||
CC=bcc32
|
||||
LD=bcc32
|
||||
LIB=tlib
|
||||
|
||||
#TARGET_CPU=6
|
||||
# 3 = 386, 4 = 486, 5 = Pentium etc.
|
||||
!ifndef TARGET_CPU
|
||||
TARGET_CPU=5
|
||||
!endif
|
||||
|
||||
# Use this if you don't want Borland's fancy exception handling
|
||||
NOEHLIB=noeh32.lib
|
||||
|
||||
!ifdef DEBUG
|
||||
CDEBUG=-v
|
||||
LDEBUG=-v
|
||||
!else
|
||||
CDEBUG=
|
||||
LDEBUG=
|
||||
!endif
|
||||
|
||||
# STACKOFLOW=1
|
||||
!ifdef STACKOFLOW
|
||||
CDEBUG=$(CDEBUG) -N
|
||||
LDEBUG=$(LDEBUG) -N
|
||||
!endif
|
||||
|
||||
# -X- turn on dependency generation in the object file
|
||||
# -w set all warnings on
|
||||
# -O2 optimize for speed
|
||||
# -Z global optimization
|
||||
CFLAGS=-O2 -Z -X- -w -I$(ZLIB_DIR) -$(TARGET_CPU) $(CDEBUG)
|
||||
|
||||
# -M generate map file
|
||||
LDFLAGS=-M -L$(ZLIB_DIR) $(LDEBUG)
|
||||
|
||||
|
||||
## 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) $(CFLAGS) -c {$*.c }
|
||||
|
||||
.c.exe:
|
||||
$(CC) $(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
|
||||
|
||||
png.obj: png.c
|
||||
pngerror.obj: pngerror.c
|
||||
pngget.obj: pngget.c
|
||||
pngmem.obj: pngmem.c
|
||||
pngpread.obj: pngpread.c
|
||||
pngread.obj: pngread.c
|
||||
pngrio.obj: pngrio.c
|
||||
pngrtran.obj: pngrtran.c
|
||||
pngrutil.obj: pngrutil.c
|
||||
pngset.obj: pngset.c
|
||||
pngtrans.obj: pngtrans.c
|
||||
pngwio.obj: pngwio.c
|
||||
pngwrite.obj: pngwrite.c
|
||||
pngwtran.obj: pngwtran.c
|
||||
pngwutil.obj: pngwutil.c
|
||||
|
||||
|
||||
$(LIBNAME): $(OBJS)
|
||||
-del $(LIBNAME)
|
||||
$(LIB) $(LIBNAME) @&&|
|
||||
$(LIBOBJS), libpng
|
||||
|
|
||||
|
||||
|
||||
# Clean up anything else you want
|
||||
clean:
|
||||
-del *.obj
|
||||
-del *.exe
|
||||
-del *.lib
|
||||
-del *.lst
|
||||
-del *.map
|
||||
-del *.tds
|
||||
|
||||
|
||||
# End of makefile for libpng
|
@ -1,76 +0,0 @@
|
||||
# Makefile for png32bd.dll
|
||||
# -------------------- 32-bit Borland C++ --------------------
|
||||
|
||||
# This makefile expects to find zlib.h and zlib32bd.lib in the
|
||||
# $(ZLIBDIR) directory.
|
||||
|
||||
# The object files here are compiled with the "stdcall" calling convention.
|
||||
# This DLL requires zlib32bd.lib to be compiled in the same way.
|
||||
|
||||
# Note that png32bd.dll exports the zlib functions adler32, crc32 and
|
||||
# the deflate... and inflate... functions. It does not export the
|
||||
# compress and uncompress functions, nor any of the gz... functions,
|
||||
# since libpng does not call them.
|
||||
|
||||
.AUTODEPEND
|
||||
|
||||
ZLIBDIR=..\zlib
|
||||
ZLIB=zlib32bd.lib
|
||||
PNGDLL=png32bd.dll
|
||||
PNGLIB=png32bd.lib
|
||||
|
||||
CC=bcc32
|
||||
CFLAGS= -ps -O2 -N- -k- -d -r- -w-par -w-aus -I$(ZLIBDIR) \
|
||||
-DPNG_NO_GLOBAL_ARRAYS #-DPNG_DEBUG=5
|
||||
#LINK=tlink32
|
||||
#LINK=ilink32
|
||||
LINK=bcc32
|
||||
#LINKFLAGS= -Tpd -aa -c
|
||||
LINKFLAGS= -WDE
|
||||
IMPLIB=implib
|
||||
|
||||
# Use this if you don't want Borland's fancy exception handling
|
||||
NOEHLIB=noeh32.lib
|
||||
|
||||
.c.obj:
|
||||
$(CC) -c $(CFLAGS) $<
|
||||
|
||||
.c.exe:
|
||||
$(CC) $(CFLAGS) $< $(PNGLIB) $(NOEHLIB)
|
||||
|
||||
|
||||
OBJ1=png.obj pngerror.obj pngget.obj pngmem.obj pngpread.obj
|
||||
OBJ2=pngread.obj pngrio.obj pngrtran.obj pngrutil.obj pngset.obj
|
||||
OBJ3=pngtrans.obj pngwio.obj pngwrite.obj pngwtran.obj pngwutil.obj
|
||||
|
||||
all: $(PNGDLL)
|
||||
|
||||
test: pngtest.exe
|
||||
pngtest
|
||||
|
||||
|
||||
$(PNGDLL): $(OBJ1) $(OBJ2) $(OBJ3) $(ZLIBDIR)\$(ZLIB)
|
||||
$(LINK) @&&|
|
||||
$(LINKFLAGS)
|
||||
-e$(PNGDLL)
|
||||
$(OBJ1)
|
||||
$(OBJ2)
|
||||
$(OBJ3)
|
||||
$(ZLIBDIR)\$(ZLIB)
|
||||
$(NOEHLIB)
|
||||
|
|
||||
$(IMPLIB) -c $(@R).lib $@
|
||||
|
||||
|
||||
# Clean up anything else you want
|
||||
clean:
|
||||
-del *.obj
|
||||
-del *.dll
|
||||
-del *.exe
|
||||
-del *.lib
|
||||
-del *.lst
|
||||
-del *.map
|
||||
-del *.tds
|
||||
|
||||
|
||||
# End of makefile for png32bd.dll
|
@ -1,162 +0,0 @@
|
||||
# Makefile for libpng
|
||||
# 16-bit Borland C++ (Note: All modules are compiled in C mode)
|
||||
# To build the library, do:
|
||||
# "make -fmakefile.bor -DMODEL=c"
|
||||
# or: "make -fmakefile.bor -DMODEL=l"
|
||||
#
|
||||
# ------------ Borland C++ ------------
|
||||
|
||||
### Absolutely necessary for this makefile to work
|
||||
.AUTODEPEND
|
||||
|
||||
## Where zlib.h, zconf.h and zlib_MODEL.lib are
|
||||
ZLIB_DIR=..\zlib
|
||||
|
||||
|
||||
## Compiler, linker and lib stuff
|
||||
CC=bcc
|
||||
LD=bcc
|
||||
LIB=tlib
|
||||
|
||||
!ifndef MODEL
|
||||
MODEL=l
|
||||
!endif
|
||||
|
||||
MODEL_ARG=-m$(MODEL)
|
||||
|
||||
#TARGET_CPU=3
|
||||
# 2 = 286, 3 = 386, etc.
|
||||
!ifndef TARGET_CPU
|
||||
TARGET_CPU=2
|
||||
!endif
|
||||
|
||||
# Use this if you don't want Borland's fancy exception handling
|
||||
# (for Borland C++ 4.0 or later)
|
||||
#NOEHLIB=noeh$(MODEL).lib
|
||||
|
||||
!ifdef DEBUG
|
||||
CDEBUG=-v
|
||||
LDEBUG=-v
|
||||
!else
|
||||
CDEBUG=
|
||||
LDEBUG=
|
||||
!endif
|
||||
|
||||
# STACKOFLOW=1
|
||||
!ifdef STACKOFLOW
|
||||
CDEBUG=$(CDEBUG) -N
|
||||
LDEBUG=$(LDEBUG) -N
|
||||
!endif
|
||||
|
||||
# -X- turn on dependency generation in the object file
|
||||
# -w set all warnings on
|
||||
# -O2 optimize for speed
|
||||
# -Z global optimization
|
||||
CFLAGS=-O2 -Z -X- -w -I$(ZLIB_DIR) -$(TARGET_CPU) $(MODEL_ARG) $(CDEBUG)
|
||||
|
||||
# -M generate map file
|
||||
LDFLAGS=-M -L$(ZLIB_DIR) $(MODEL_ARG) $(LDEBUG)
|
||||
|
||||
|
||||
## 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$(MODEL).lib
|
||||
|
||||
|
||||
## Implicit rules
|
||||
# Braces let make "batch" calls to the compiler,
|
||||
# 2 calls instead of 12; space is important.
|
||||
.c.obj:
|
||||
$(CC) $(CFLAGS) -c {$*.c }
|
||||
|
||||
.c.exe:
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) $*.c $(LIBNAME) zlib_$(MODEL).lib $(NOEHLIB)
|
||||
|
||||
|
||||
## Major targets
|
||||
all: libpng pngtest
|
||||
|
||||
libpng: $(LIBNAME)
|
||||
|
||||
pngtest: pngtest$(MODEL).exe
|
||||
|
||||
test: pngtest$(MODEL).exe
|
||||
pngtest$(MODEL)
|
||||
|
||||
|
||||
## Minor Targets
|
||||
|
||||
png.obj: png.c
|
||||
pngerror.obj: pngerror.c
|
||||
pngget.obj: pngget.c
|
||||
pngmem.obj: pngmem.c
|
||||
pngpread.obj: pngpread.c
|
||||
pngread.obj: pngread.c
|
||||
pngrio.obj: pngrio.c
|
||||
pngrtran.obj: pngrtran.c
|
||||
pngrutil.obj: pngrutil.c
|
||||
pngset.obj: pngset.c
|
||||
pngtrans.obj: pngtrans.c
|
||||
pngwio.obj: pngwio.c
|
||||
pngwrite.obj: pngwrite.c
|
||||
pngwtran.obj: pngwtran.c
|
||||
pngwutil.obj: pngwutil.c
|
||||
|
||||
|
||||
$(LIBNAME): $(OBJS)
|
||||
-del $(LIBNAME)
|
||||
$(LIB) $(LIBNAME) @&&|
|
||||
$(LIBOBJS), libpng$(MODEL)
|
||||
|
|
||||
|
||||
|
||||
pngtest$(MODEL).obj: pngtest.c
|
||||
$(CC) $(CFLAGS) -opngtest$(MODEL) -c pngtest.c
|
||||
|
||||
pngtest$(MODEL).exe: pngtest$(MODEL).obj
|
||||
$(LD) $(LDFLAGS) pngtest$(MODEL).obj $(LIBNAME) zlib_$(MODEL).lib $(NOEHLIB)
|
||||
|
||||
|
||||
# Clean up anything else you want
|
||||
clean:
|
||||
-del *.obj
|
||||
-del *.exe
|
||||
-del *.lib
|
||||
-del *.lst
|
||||
-del *.map
|
||||
|
||||
|
||||
# End of makefile for libpng
|
@ -1,89 +0,0 @@
|
||||
# Makefile for libpng
|
||||
# TurboC/C++ (Note: All modules are compiled in C mode)
|
||||
|
||||
# To use, do "make -fmakefile.tc3"
|
||||
|
||||
# ----- Turbo C 3.00 (can be modified to work with earlier versions) -----
|
||||
|
||||
MODEL=l
|
||||
CFLAGS=-O2 -Z -m$(MODEL) -I..\zlib
|
||||
#CFLAGS=-D_NO_PROTO -O2 -Z -m$(MODEL) -I..\zlib # Turbo C older than 3.00
|
||||
CC=tcc
|
||||
LD=tcc
|
||||
LIB=tlib
|
||||
LDFLAGS=-m$(MODEL) -L..\zlib
|
||||
O=.obj
|
||||
E=.exe
|
||||
|
||||
# variables
|
||||
OBJS1 = png$(O) pngset$(O) pngget$(O) pngrutil$(O) pngtrans$(O) pngwutil$(O)
|
||||
OBJS2 = pngmem$(O) pngpread$(O) pngread$(O) pngerror$(O) pngwrite$(O)
|
||||
OBJS3 = pngrtran$(O) pngwtran$(O) pngrio$(O) pngwio$(O)
|
||||
OBJSL1 = +png$(O) +pngset$(O) +pngget$(O) +pngrutil$(O) +pngtrans$(O)
|
||||
OBJSL2 = +pngwutil$(O) +pngmem$(O) +pngpread$(O) +pngread$(O) +pngerror$(O)
|
||||
OBJSL3 = +pngwrite$(O) +pngrtran$(O) +pngwtran$(O) +pngrio$(O) +pngwio$(O)
|
||||
|
||||
all: libpng$(MODEL).lib pngtest$(E)
|
||||
|
||||
pngtest: pngtest$(E)
|
||||
|
||||
test: pngtest$(E)
|
||||
pngtest$(E)
|
||||
|
||||
png$(O): png.h pngconf.h
|
||||
$(CC) -c $(CFLAGS) $*.c
|
||||
|
||||
pngset$(O): png.h pngconf.h
|
||||
$(CC) -c $(CFLAGS) $*.c
|
||||
|
||||
pngget$(O): png.h pngconf.h
|
||||
$(CC) -c $(CFLAGS) $*.c
|
||||
|
||||
pngread$(O): png.h pngconf.h
|
||||
$(CC) -c $(CFLAGS) $*.c
|
||||
|
||||
pngpread$(O): png.h pngconf.h
|
||||
$(CC) -c $(CFLAGS) $*.c
|
||||
|
||||
pngrtran$(O): png.h pngconf.h
|
||||
$(CC) -c $(CFLAGS) $*.c
|
||||
|
||||
pngrutil$(O): png.h pngconf.h
|
||||
$(CC) -c $(CFLAGS) $*.c
|
||||
|
||||
pngerror$(O): png.h pngconf.h
|
||||
$(CC) -c $(CFLAGS) $*.c
|
||||
|
||||
pngmem$(O): png.h pngconf.h
|
||||
$(CC) -c $(CFLAGS) $*.c
|
||||
|
||||
pngrio$(O): png.h pngconf.h
|
||||
$(CC) -c $(CFLAGS) $*.c
|
||||
|
||||
pngwio$(O): png.h pngconf.h
|
||||
$(CC) -c $(CFLAGS) $*.c
|
||||
|
||||
pngtest$(O): png.h pngconf.h
|
||||
$(CC) -c $(CFLAGS) $*.c
|
||||
|
||||
pngtrans$(O): png.h pngconf.h
|
||||
$(CC) -c $(CFLAGS) $*.c
|
||||
|
||||
pngwrite$(O): png.h pngconf.h
|
||||
$(CC) -c $(CFLAGS) $*.c
|
||||
|
||||
pngwtran$(O): png.h pngconf.h
|
||||
$(CC) -c $(CFLAGS) $*.c
|
||||
|
||||
pngwutil$(O): png.h pngconf.h
|
||||
$(CC) -c $(CFLAGS) $*.c
|
||||
|
||||
libpng$(MODEL).lib: $(OBJS1) $(OBJS2) $(OBJS3)
|
||||
$(LIB) libpng$(MODEL) +$(OBJSL1)
|
||||
$(LIB) libpng$(MODEL) +$(OBJSL2)
|
||||
$(LIB) libpng$(MODEL) +$(OBJSL3)
|
||||
|
||||
pngtest$(E): pngtest$(O) libpng$(MODEL).lib
|
||||
$(LD) $(LDFLAGS) pngtest.obj libpng$(MODEL).lib zlib_$(MODEL).lib
|
||||
|
||||
# End of makefile for libpng
|
@ -1,107 +0,0 @@
|
||||
# Makefile for zlib
|
||||
# Borland C++ for Win32
|
||||
#
|
||||
# Updated for zlib 1.2.x by Cosmin Truta, 11-Mar-2003
|
||||
# Last updated: 28-Aug-2003
|
||||
#
|
||||
# Usage:
|
||||
# make -f win32/Makefile.bor
|
||||
# make -f win32/Makefile.bor LOCAL_ZLIB=-DASMV OBJA=match.obj OBJPA=+match.obj
|
||||
|
||||
# ------------ Borland C++ ------------
|
||||
|
||||
# Optional nonstandard preprocessor flags (e.g. -DMAX_MEM_LEVEL=7)
|
||||
# should be added to the environment via "set LOCAL_ZLIB=-DFOO" or
|
||||
# added to the declaration of LOC here:
|
||||
LOC = $(LOCAL_ZLIB)
|
||||
|
||||
CC = bcc32
|
||||
AS = bcc32
|
||||
LD = bcc32
|
||||
AR = tlib
|
||||
CFLAGS = -a -d -k- -O2 $(LOC)
|
||||
ASFLAGS = $(LOC)
|
||||
LDFLAGS = $(LOC)
|
||||
|
||||
|
||||
# variables
|
||||
ZLIB_LIB = zlib.lib
|
||||
|
||||
OBJ1 = adler32.obj compress.obj crc32.obj deflate.obj gzio.obj infback.obj
|
||||
OBJ2 = inffast.obj inflate.obj inftrees.obj trees.obj uncompr.obj zutil.obj
|
||||
#OBJA =
|
||||
OBJP1 = +adler32.obj+compress.obj+crc32.obj+deflate.obj+gzio.obj+infback.obj
|
||||
OBJP2 = +inffast.obj+inflate.obj+inftrees.obj+trees.obj+uncompr.obj+zutil.obj
|
||||
#OBJPA=
|
||||
|
||||
|
||||
# targets
|
||||
all: $(ZLIB_LIB) example.exe minigzip.exe
|
||||
|
||||
.c.obj:
|
||||
$(CC) -c $(CFLAGS) $<
|
||||
|
||||
.asm.obj:
|
||||
$(AS) -c $(ASFLAGS) $<
|
||||
|
||||
adler32.obj: adler32.c zlib.h zconf.h
|
||||
|
||||
compress.obj: compress.c zlib.h zconf.h
|
||||
|
||||
crc32.obj: crc32.c zlib.h zconf.h crc32.h
|
||||
|
||||
deflate.obj: deflate.c deflate.h zutil.h zlib.h zconf.h
|
||||
|
||||
gzio.obj: gzio.c zutil.h zlib.h zconf.h
|
||||
|
||||
infback.obj: infback.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
|
||||
inffast.h inffixed.h
|
||||
|
||||
inffast.obj: inffast.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
|
||||
inffast.h
|
||||
|
||||
inflate.obj: inflate.c zutil.h zlib.h zconf.h inftrees.h inflate.h \
|
||||
inffast.h inffixed.h
|
||||
|
||||
inftrees.obj: inftrees.c zutil.h zlib.h zconf.h inftrees.h
|
||||
|
||||
trees.obj: trees.c zutil.h zlib.h zconf.h deflate.h trees.h
|
||||
|
||||
uncompr.obj: uncompr.c zlib.h zconf.h
|
||||
|
||||
zutil.obj: zutil.c zutil.h zlib.h zconf.h
|
||||
|
||||
example.obj: example.c zlib.h zconf.h
|
||||
|
||||
minigzip.obj: minigzip.c zlib.h zconf.h
|
||||
|
||||
|
||||
# For the sake of the old Borland make,
|
||||
# the command line is cut to fit in the MS-DOS 128 byte limit:
|
||||
$(ZLIB_LIB): $(OBJ1) $(OBJ2) $(OBJA)
|
||||
-del $(ZLIB_LIB)
|
||||
$(AR) $(ZLIB_LIB) $(OBJP1)
|
||||
$(AR) $(ZLIB_LIB) $(OBJP2)
|
||||
$(AR) $(ZLIB_LIB) $(OBJPA)
|
||||
|
||||
|
||||
# testing
|
||||
test: example.exe minigzip.exe
|
||||
example
|
||||
echo hello world | minigzip | minigzip -d
|
||||
|
||||
example.exe: example.obj $(ZLIB_LIB)
|
||||
$(LD) $(LDFLAGS) example.obj $(ZLIB_LIB)
|
||||
|
||||
minigzip.exe: minigzip.obj $(ZLIB_LIB)
|
||||
$(LD) $(LDFLAGS) minigzip.obj $(ZLIB_LIB)
|
||||
|
||||
|
||||
# cleanup
|
||||
clean:
|
||||
-del *.obj
|
||||
-del *.lib
|
||||
-del *.exe
|
||||
-del *.tds
|
||||
-del zlib.bak
|
||||
-del foo.gz
|
Loading…
Reference in new issue