support new ppremake 1.1 and auto-composite files

This commit is contained in:
David Rose 2002-06-03 20:28:07 +00:00
parent 2068d6f1dc
commit c5a3916b44
9 changed files with 19 additions and 94 deletions

View File

@ -25,7 +25,10 @@
#include <md5.h>
#include <hex.h>
#include <files.h>
#include <string>
// md5 defines this, but we'd rather do without it, because it
// conflicts with a similar macro defined in NSPR.
#undef IS_LITTLE_ENDIAN
USING_NAMESPACE(CryptoPP);
USING_NAMESPACE(std);

View File

@ -17,22 +17,3 @@
glutGraphicsPipe.h glutGraphicsWindow.h
#end lib_target
#begin test_bin_target
#define TARGET test_glut
#define LOCAL_LIBS \
putil graph display mathutil gobj sgraph
#define SOURCES \
test_glut.cxx
#end test_bin_target
#begin test_bin_target
#define TARGET test_glut_win
#define SOURCES \
test_glut_win.cxx
#end test_bin_target

View File

@ -31,64 +31,3 @@
// when appropriate. Perhaps as simple as compiling it all the time,
// but protecting the code itself within #ifdefs.
#define EXTRA_DIST ipc_nt_traits.cxx
// test_lib_target is not implemented yet. This is a bogus
// test_bin_target until then.
#begin test_bin_target
#define TARGET loom
#define SOURCES \
loom.cxx loom.h loom_internal.h
#define LOCAL_LIBS ipc $[LOCAL_LIBS]
#end test_bin_target
#begin test_bin_target
#define TARGET test_diners
#define SOURCES test_diners.cxx
#define LOCAL_LIBS ipc $[LOCAL_LIBS]
#end test_bin_target
#begin test_bin_target
#define TARGET test_priority
#define SOURCES test_priority.cxx
#define LOCAL_LIBS ipc $[LOCAL_LIBS]
#end test_bin_target
#begin test_bin_target
#define TARGET test_prodcons
#define SOURCES test_prodcons.cxx
#define LOCAL_LIBS ipc $[LOCAL_LIBS]
#end test_bin_target
#begin test_bin_target
#define TARGET test_threaddata
#define SOURCES test_threaddata.cxx
#define LOCAL_LIBS ipc $[LOCAL_LIBS]
#end test_bin_target
#begin test_bin_target
#define TARGET loom_main
#define SOURCES loom_main.cxx
#define LOCAL_LIBS loom ipc $[LOCAL_LIBS]
#end test_bin_target
#begin test_bin_target
#define TARGET test_file
#define SOURCES test_file.cxx
#define LOCAL_LIBS loom ipc $[LOCAL_LIBS]
#end test_bin_target
// Oops, these are test .so's
#begin test_bin_target
#define TARGET loom_test1
#define SOURCES loom_test1.cxx
#define LOCAL_LIBS loom ipc $[LOCAL_LIBS]
#end test_bin_target
#begin test_bin_target
#define TARGET loom_test2
#define SOURCES loom_test2.cxx
#define LOCAL_LIBS loom ipc $[LOCAL_LIBS]
#end test_bin_target

View File

@ -13,7 +13,7 @@
#include "pgm.h"
#include "libpgm.h"
static void putus ARGS((unsigned short n, FILE* file));
static void putus1 ARGS((unsigned short n, FILE* file));
static void pgm_writepgmrowplain ARGS((FILE* file, gray* grayrow, int cols, gray maxval));
#ifdef PBMPLUS_RAWBITS
static void pgm_writepgmrowraw ARGS((FILE* file, gray* grayrow, int cols, gray maxval));
@ -51,12 +51,12 @@ pgm_writepgminit( file, cols, rows, maxval, forceplain )
}
static void
putus( n, file )
putus1( n, file )
unsigned short n;
FILE* file;
{
if ( n >= 10 )
putus((unsigned short)( n / 10), file );
putus1((unsigned short)( n / 10), file );
(void) putc( n % 10 + '0', file );
}
@ -101,8 +101,8 @@ pgm_writepgmrowplain(FILE* file,gray* grayrow,int cols,gray maxval)
if ( *gP > maxval )
pm_error( "value out of bounds (%u > %u)", *gP, maxval );
#endif /*DEBUG*/
/* putus( (unsigned long) *gP, file ); */
putus( (unsigned short) *gP, file );
/* putus1( (unsigned long) *gP, file ); */
putus1( (unsigned short) *gP, file );
charcount += 3;
}
if ( charcount > 0 )

View File

@ -28,7 +28,7 @@
#include "color.h"
#ifdef WIN32VC
#ifdef WIN32_VC
#include <malloc.h>
#endif
@ -43,7 +43,7 @@ void colr_color(register COLOR, register COLR);
char *
tempbuffer(unsigned len) /* get a temporary buffer */
{
#ifndef WIN32VC
#ifndef WIN32_VC
extern char *malloc(size_t), *realloc(void *, size_t);
#endif
static char *tempbuf = NULL;

View File

@ -22,10 +22,12 @@
#include "color.h"
#ifndef NULL
#define NULL 0
#endif
#define bmalloc malloc
#ifndef WIN32VC
#ifndef WIN32_VC
extern char *bmalloc(int);
#else
#include <malloc.h>
@ -39,7 +41,7 @@ static BYTE *g_mant = NULL, *g_nexp = NULL;
static BYTE (*g_bval)[256] = NULL;
#ifndef pow
#ifndef WIN32VC
#ifndef WIN32_VC
extern double pow(double, double);
#endif
#endif

View File

@ -127,7 +127,7 @@
#begin test_bin_target
#define TARGET test_bamRead
#define LOCAL_LIBS \
putil graph
putil pgraph
#define SOURCES \
test_bam.cxx test_bam.h test_bamRead.cxx
@ -137,7 +137,7 @@
#begin test_bin_target
#define TARGET test_bamWrite
#define LOCAL_LIBS \
putil graph
putil pgraph
#define SOURCES \
test_bam.cxx test_bam.h test_bamWrite.cxx

View File

@ -28,7 +28,7 @@
#begin test_bin_target
#define TARGET test_wcr
#define LOCAL_LIBS \
putil graph display mathutil gobj sgraph wcrdisplay crgsg
putil display mathutil gobj pgraph wcrdisplay crgsg
#define SOURCES \
test_wcr.cxx

View File

@ -28,7 +28,7 @@
#begin test_bin_target
#define TARGET test_wgl
#define LOCAL_LIBS \
putil graph display mathutil gobj sgraph wgldisplay glgsg
putil display mathutil gobj pgraph wgldisplay glgsg
#define SOURCES \
test_wgl.cxx