2 # Jamfile for building various libraries and object files for the
3 # Minimalist GNU-Win32 package.
4 #* This file has no copyright assigned and is placed in the Public Domain.
5 #* This file is a part of the mingw-runtime package.
6 #* No warranty is given; refer to the file DISCLAIMER within the package.
9 # Change this line if you have installed Mingw32 in another directory.
11 LOCATE_TARGET = /mingw32/lib ;
13 RUNTIME default = crtdll ;
15 # Build the mingw32 library which contains startup code and extra support
18 Library libmingw32.a :
29 # Build the startup object files for normal applications and for DLLs.
30 # The crt2 and dllcrt2 versions are for MSVCRTxx.DLL runtimes. crt1 and
31 # dllcrt1 are for the CRTDLL.DLL runtime.
33 Object crt1.o : crt1.c ;
34 Object crt2.o : crt1.c ;
36 CCFLAGS on crt2.o += -D__MSVCRT__ ;
38 Object dllcrt1.o : dllcrt1.c ;
39 Object dllcrt2.o : dllcrt1.c ;
41 CCFLAGS on dllcrt2.o += -D__MSVCRT__ ;
43 DEPENDS all : crt1.o dllcrt1.o crt2.o dllcrt2.o ;
46 # Build an object file which contains a single global variable initialized
47 # so that globbing will not be performed on the command line.
49 Object CRT_noglob.o : CRT_noglob.c ;
50 LOCATE on CRT_noglob.o = $(LOCATE_TARGET) ;
52 DEPENDS all : CRT_noglob.o ;
55 # Build a special import library which contains mostly the imports defined
56 # in moldname.def, but with their leading underscores stripped off, plus the
57 # extra code in the C modules included.
59 ImportLib libmoldname.a : moldname.def ctype_old.c string_old.c ;
61 DLLNAME on libmoldname.a = $(RUNTIME).dll ;
62 DLLTOOLFLAGS on libmoldname.a += -U ;
65 # Build import libraries for the various runtimes.
67 ImportLib libcrtdll.a : crtdll.def ;
68 ImportLib libmsvcrt.a : msvcrt.def ;
69 ImportLib libmsvcrt20.a : msvcrt20.def ;
70 ImportLib libmsvcrt40.a : msvcrt40.def ;