head	1.2;
access;
symbols;
locks
	colin:1.2; strict;
comment	@# @;


1.2
date	97.12.30.04.06.48;	author colin;	state Exp;
branches;
next	1.1;

1.1
date	97.07.03.03.52.00;	author colin;	state Exp;
branches;
next	;


desc
@Jam file to build the Mingw32 basic library (containing extra stuff used
by the startup code), as well as an 'old names' import library for non-ANSI
names of some functions in CRTDLL.
@


1.2
log
@Defaults to crtdll but allows for other runtimes. Also added explanetory
comments.
@
text
@#
# Jamfile for building various libraries and object files for the
# Minimalist GNU-Win32 package.
#
# $Revision$ $Author$ $Date$
#

# Change this line if you have installed Mingw32 in another directory.
#
LOCATE_TARGET = /mingw32/lib ;

# Change this line to 'msvcrt20' if you want to use msvcrt20.dll as your
# runtime library instead of crtdll.dll. Same for msvcrt or msvcrt40.
#
RUNTIME = crtdll ;

# Build the mingw32 library which contains startup code and extra support
# routines.
#
Library libmingw32.a :
	main.c
	dllmain.c
	CRTglob.c
	CRTfmode.c
	dirent.c
	;


# Build the startup object files for normal applications and for DLLs.
#
Object crt1.o : crt1.c ;

Object dllcrt1.o : dllcrt1.c ;

DEPENDS all : crt1.o dllcrt1.o ;


# Build an object file which contains a single global variable initialized
# so that globbing will not be performed on the command line.
#
Object CRT_noglob.o : CRT_noglob.c ;
LOCATE on CRT_noglob.o = $(LOCATE_TARGET) ;

DEPENDS all : CRT_noglob.o ;


# Build a special import library which contains mostly the imports defined
# in moldname.def, but with their leading underscores stripped off, plus the
# extra code in the modules included on the second line below.
#
ImportLib libmoldname.a : moldname.def ctype_old.c string_old.c ;

DLLNAME on libmoldname.a = $(RUNTIME).dll ;
ILIBFLAGS on libmoldname.a += -U ;


# Build an import library for the runtime library. By default crtdll.dll,
# but you can change it to crtdll.dll or any other version of msvcrt by
# altering the value of RUNTIME above.
#
ImportLib lib$(RUNTIME).a : $(RUNTIME).def ;

@


1.1
log
@Initial revision
@
text
@d1 6
d8 2
d12 8
d24 3
a26 1
	dirent.c ;
d29 12
d47 4
d53 1
a53 1
DLLNAME on libmoldname.a = crtdll.dll ;
d55 7
@
