home *** CD-ROM | disk | FTP | other *** search
/ Programming Win32 Under the API / ProgrammingWin32UnderTheApiPatVillani.iso / src / mingw-runtime-19991107 / mingw / jamfile < prev    next >
Encoding:
Text File  |  1998-09-03  |  1.7 KB  |  73 lines

  1. #
  2. # Jamfile for building various libraries and object files for the
  3. # Minimalist GNU-Win32 package.
  4. #
  5. # $Revision: 1.1.1.4 $
  6. # $Author: khan $
  7. # $Date: 1998/03/23 00:39:49 $
  8. #
  9.  
  10. # Change this line if you have installed Mingw32 in another directory.
  11. #
  12. LOCATE_TARGET = /mingw32/lib ;
  13.  
  14. RUNTIME default = crtdll ;
  15.  
  16. # Build the mingw32 library which contains startup code and extra support
  17. # routines.
  18. #
  19. Library libmingw32.a :
  20.     CRTglob.c
  21.     CRTfmode.c
  22.     CRTinit.c
  23.     dirent.c
  24.     dllmain.c
  25.     gccmain.c
  26.     main.c
  27.     ;
  28.  
  29.  
  30. # Build the startup object files for normal applications and for DLLs.
  31. # The crt2 and dllcrt2 versions are for MSVCRTxx.DLL runtimes. crt1 and
  32. # dllcrt1 are for the CRTDLL.DLL runtime.
  33. #
  34. Object crt1.o : crt1.c ;
  35. Object crt2.o : crt1.c ;
  36.  
  37. CCFLAGS on crt2.o += -D__MSVCRT__ ;
  38.  
  39. Object dllcrt1.o : dllcrt1.c ;
  40. Object dllcrt2.o : dllcrt1.c ;
  41.  
  42. CCFLAGS on dllcrt2.o += -D__MSVCRT__ ;
  43.  
  44. DEPENDS all : crt1.o dllcrt1.o crt2.o dllcrt2.o ;
  45.  
  46.  
  47. # Build an object file which contains a single global variable initialized
  48. # so that globbing will not be performed on the command line.
  49. #
  50. Object CRT_noglob.o : CRT_noglob.c ;
  51. LOCATE on CRT_noglob.o = $(LOCATE_TARGET) ;
  52.  
  53. DEPENDS all : CRT_noglob.o ;
  54.  
  55.  
  56. # Build a special import library which contains mostly the imports defined
  57. # in moldname.def, but with their leading underscores stripped off, plus the
  58. # extra code in the C modules included.
  59. #
  60. ImportLib libmoldname.a : moldname.def ctype_old.c string_old.c ;
  61.  
  62. DLLNAME on libmoldname.a = $(RUNTIME).dll ;
  63. DLLTOOLFLAGS on libmoldname.a += -U ;
  64.  
  65.  
  66. # Build import libraries for the various runtimes.
  67. #
  68. ImportLib libcrtdll.a : crtdll.def ;
  69. ImportLib libmsvcrt.a : msvcrt.def ;
  70. ImportLib libmsvcrt20.a : msvcrt20.def ;
  71. ImportLib libmsvcrt40.a : msvcrt40.def ;
  72.  
  73.