nulib2/nufxlib
Andy McFadden f4dea8b251 Update READMEs
Updated the build instructions in the READMEs.
2014-12-23 11:29:01 -08:00
..
samples Use integer types with explicit widths 2014-12-22 14:56:12 -08:00
.gitignore Tweak .gitignore 2014-12-11 16:28:38 -08:00
Archive.c Move method return type to declaration line 2014-12-22 16:00:33 -08:00
ArchiveIO.c Move method return type to declaration line 2014-12-22 16:00:33 -08:00
Bzip2.c Move method return type to declaration line 2014-12-22 16:00:33 -08:00
ChangeLog.txt Version bump to 2.3.0 2014-12-22 16:12:06 -08:00
Compress.c Move method return type to declaration line 2014-12-22 16:00:33 -08:00
config.guess Remove placeholder version number from directory name. 2014-10-28 10:27:31 -07:00
config.h.in Use integer types with explicit widths 2014-12-22 14:56:12 -08:00
config.sub Remove placeholder version number from directory name. 2014-10-28 10:27:31 -07:00
configure Use integer types with explicit widths 2014-12-22 14:56:12 -08:00
configure.in Use integer types with explicit widths 2014-12-22 14:56:12 -08:00
COPYING-LIB Remove placeholder version number from directory name. 2014-10-28 10:27:31 -07:00
Crc16.c Move method return type to declaration line 2014-12-22 16:00:33 -08:00
Debug.c Move method return type to declaration line 2014-12-22 16:00:33 -08:00
Deferred.c Move method return type to declaration line 2014-12-22 16:00:33 -08:00
Deflate.c Move method return type to declaration line 2014-12-22 16:00:33 -08:00
Entry.c Move method return type to declaration line 2014-12-22 16:00:33 -08:00
Expand.c Move method return type to declaration line 2014-12-22 16:00:33 -08:00
FileIO.c Move method return type to declaration line 2014-12-22 16:00:33 -08:00
Funnel.c Move method return type to declaration line 2014-12-22 16:00:33 -08:00
INSTALL Remove placeholder version number from directory name. 2014-10-28 10:27:31 -07:00
install-sh Remove placeholder version number from directory name. 2014-10-28 10:27:31 -07:00
Lzc.c Move method return type to declaration line 2014-12-22 16:00:33 -08:00
Lzw.c Missed a "uint". 2014-12-22 16:20:39 -08:00
Makefile.in Don't delete Version.c 2014-12-21 10:18:26 -08:00
Makefile.msc Tweak Win32 build 2014-10-30 11:40:14 -07:00
MiscStuff.c Move method return type to declaration line 2014-12-22 16:00:33 -08:00
MiscStuff.h Fix include guards 2014-12-22 16:06:55 -08:00
MiscUtils.c Move method return type to declaration line 2014-12-22 16:00:33 -08:00
mkinstalldirs Remove placeholder version number from directory name. 2014-10-28 10:27:31 -07:00
NOTES.txt Remove placeholder version number from directory name. 2014-10-28 10:27:31 -07:00
nufxlib.def Tweak Win32 build 2014-10-30 11:40:14 -07:00
NufxLib.h Version bump to 2.3.0 2014-12-22 16:12:06 -08:00
NufxLibPriv.h Fix include guards 2014-12-22 16:06:55 -08:00
README.txt Update READMEs 2014-12-23 11:29:01 -08:00
Record.c Move method return type to declaration line 2014-12-22 16:00:33 -08:00
SourceSink.c Move method return type to declaration line 2014-12-22 16:00:33 -08:00
Squeeze.c Move method return type to declaration line 2014-12-22 16:00:33 -08:00
SunOS4.h Fix include guards 2014-12-22 16:06:55 -08:00
SysDefs.h Fix include guards 2014-12-22 16:06:55 -08:00
Thread.c Move method return type to declaration line 2014-12-22 16:00:33 -08:00
Value.c Move method return type to declaration line 2014-12-22 16:00:33 -08:00
Version.c Move method return type to declaration line 2014-12-22 16:00:33 -08:00

NufxLib README, updated 2014/12/23
http://www.nulib.com/

See "COPYING-LIB" for distribution restrictions.


UNIX
====

Run the "configure" script.  Read through "INSTALL" if you haven't used
one of these before, especially if you want to use a specific compiler
or a particular set of compiler flags.

You can disable specific compression methods with "--disable-METHOD"
(run "sh ./configure --help" to see the possible options).  By default,
all methods are enabled except bzip2.

Run "make depend" if you have makedepend, and then type "make".  This will
build the library and all of the programs in the "samples" directory.
There are some useful programs in "samples", described in a README.txt
file there.  In particular, you should run samples/test-basic to verify
that things are more or less working.

If you want to install the library and header file into standard system
locations (usually /usr/local), run "make install".  To learn how to
specify different locations, read the INSTALL document.

There are some flags in "OPT" you may want to use.  The "autoconf" default
for @CFLAGS@ is "-g -O2".

-DNDEBUG
  Disable assert() calls and extra tests.  This will speed things up,
  but errors won't get caught until later on, making the root cause
  harder to locate.

-DDEBUG_MSGS
  Enable debug messages.  This increases the size of the executable,
  but shouldn't affect performance.  When errors occur, more output is
  produced.  The "debug dump" feature is enabled by this flag.

-DDEBUG_VERBOSE
  (Implicitly sets DEBUG_MSGS.)  Spray lots of debugging output.

If you want to do benchmarks, use "-O2 -DNDEBUG".  The recommended
configuration is "-g -O2 -DDEBUG_MSGS", so that verbose debug output is
available when errors occur.


BeOS
====

This works just like the UNIX version, but certain defaults have been
changed.  Running configure without arguments under BeOS is equivalent to:

    ./configure --prefix=/boot --includedir='${prefix}/develop/headers'
      --libdir='${exec_prefix}/home/config/lib' --mandir='/tmp'
      --bindir='${exec_prefix}/home/config/bin'

If you're using BeOS/PPC, it will also do:

    CC=cc CFLAGS='-proc 603 -opt full'


Mac OS X
========

This works just like the UNIX version, with the exception that when you link
against nufxlib, your project must also link against the Carbon framework.
This can be done in ProjectBuilder by using the Add Framework option in the
Project menu, or by adding "-framework Carbon" to the gcc command line.

You'll see some warnings due to some namespace collisions between nufxlib and
Carbon, but everything will work fine.  Carbon is used to provide support for
file types and resource forks.


Win32
=====

If you're using an environment that supports "configure" scripts, such as
DJGPP, follow the UNIX instructions.

NufxLib has been tested with Microsoft Visual C++ 12 (Visual Studio 2013).
To build NufxLib, run the "Visual Studio 2013 x86 Native Tools Command
Prompt" shortcut to get a shell.  Change to the nufxlib directory, then:

    nmake -f makefile.msc

When the build finishes, run "test-basic.exe" to confirm things are working.

If you want to have zlib support enabled, you will need to have zlib.h,
zconf.h, and zlib.lib copied into the directory.  See "makefile.msc" for
more details.

The makefile builds NufxLib as a static library and as a DLL.


Other Notes
===========

If you want to use the library in a multithreaded application, you should
define "USE_REENTRANT_CALLS" to tell it to use reentrant versions of
certain library calls.  This defines _REENTRANT, which causes Solaris to
add the appropriate goodies.  (Seems to me you'd always want this on, but
for some reason Solaris makes you take an extra step, so I'm not going to
define it by default.)


Legalese
========

NufxLib, a NuFX archive manipulation library.
Copyright (C) 2000-2014 by Andy McFadden, All Rights Reserved.

See COPYING for license.