#
# Jamfile for building various libraries and object files for the
# Minimalist GNU-Win32 package.
#
# $Revision: 1.2 $
# $Author: colin $
# $Date: 1997/12/30 04:06:48 $
#

# 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 :
	CRTglob.c
	CRTfmode.c
	dirent.c
	dllmain.c
	gccmain.c
	main.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 C modules included.
#
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 ;

