OSDN Git Service

MinGW-Feature-Request [2222263]: Make getopt() GNU / BSD compatibile.
[pf3gnuchains/pf3gnuchains4x.git] / winsup / mingw / jamfile
1 #
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.
7 #
8
9 # Change this line if you have installed Mingw32 in another directory.
10 #
11 LOCATE_TARGET = /mingw32/lib ;
12
13 RUNTIME default = crtdll ;
14
15 # Build the mingw32 library which contains startup code and extra support
16 # routines.
17 #
18 Library libmingw32.a :
19         CRTglob.c
20         CRTfmode.c
21         CRTinit.c
22         dirent.c
23         dllmain.c
24         gccmain.c
25         main.c
26         ;
27
28
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.
32 #
33 Object crt1.o : crt1.c ;
34 Object crt2.o : crt1.c ;
35
36 CCFLAGS on crt2.o += -D__MSVCRT__ ;
37
38 Object dllcrt1.o : dllcrt1.c ;
39 Object dllcrt2.o : dllcrt1.c ;
40
41 CCFLAGS on dllcrt2.o += -D__MSVCRT__ ;
42
43 DEPENDS all : crt1.o dllcrt1.o crt2.o dllcrt2.o ;
44
45
46 # Build an object file which contains a single global variable initialized
47 # so that globbing will not be performed on the command line.
48 #
49 Object CRT_noglob.o : CRT_noglob.c ;
50 LOCATE on CRT_noglob.o = $(LOCATE_TARGET) ;
51
52 DEPENDS all : CRT_noglob.o ;
53
54
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.
58 #
59 ImportLib libmoldname.a : moldname.def ctype_old.c string_old.c ;
60
61 DLLNAME on libmoldname.a = $(RUNTIME).dll ;
62 DLLTOOLFLAGS on libmoldname.a += -U ;
63
64
65 # Build import libraries for the various runtimes.
66 #
67 ImportLib libcrtdll.a : crtdll.def ;
68 ImportLib libmsvcrt.a : msvcrt.def ;
69 ImportLib libmsvcrt20.a : msvcrt20.def ;
70 ImportLib libmsvcrt40.a : msvcrt40.def ;
71