home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / gcc-2.7.2.1-base.tgz / gcc-2.7.2.1-base.tar / fsf / gcc / config / winnt / config-nt.sed < prev    next >
Text File  |  1996-07-24  |  4KB  |  131 lines

  1. /^Makefile/,/^    rm -f config.run/d
  2. s/rm -f/del/
  3. s/|| cp/|| copy/
  4. /^config.status/,/    fi/d
  5. s/config.status//g
  6. s/\/dev\/null/NUL/g
  7. s/$(srcdir)\/c-parse/c-parse/g
  8. s/$(srcdir)\/objc-parse.y/objc-parse.y/g
  9. s/$(srcdir)\/c-gperf/c-gperf/g
  10. /^multilib.h/ s/multilib/not-multilib/
  11. /^xmake_file=/ d
  12. /^tmake_file=/ d
  13. /^lang_specs_files=/ d
  14. /^lang_options_files=/ d
  15. /^version=/ c\
  16. version=2.7.2.1
  17. s/CC = cc/CC = cl/
  18. s/^SHELL =.*/SHELL =/
  19. s/CFLAGS = -g/CFLAGS =/
  20. s/:\$/: \$/g
  21. s/<\ *\$(srcdir)\//< $(srcdir)\\/g
  22. s/^    \$(srcdir)\/move-if-change/    copy/
  23. s/^USE_/# USE_/
  24. s/`echo \$(srcdir)\///g
  25. s/ | sed 's,\^\\\.\/,,'`//g
  26. s/^    cd \$(srcdir)[     ]*;/    /
  27. /^stamp-attrtab/,/copy/ {
  28.   /\\$/d
  29.   /    fi/d
  30.   /copy/ i\
  31. \      genattrtab $(md_file) > tmp-attrtab.c
  32. }
  33. /^enquire[     ]*:/ s/\$(GCC_PARTS)//g
  34. /^enquire.o[     ]*:/ s/\$(GCC_PASSES)//g
  35. /^GCC_FOR_TARGET =/ c\
  36. GCC_FOR_TARGET = xgcc
  37. /^ENQUIRE_LDFLAGS =/ c\
  38. ENQUIRE_LDFLAGS =
  39. s/; *@true//
  40. /> *stamp-objlist/ c\
  41.     echo.exe  $(OBJS) $(BC_OBJS) | sed -e "s, \([a-z]\), ../\1,g" >stamp-objlist
  42. /^OBJS.*stamp-objlist/ s?`cat ../stamp-objlist`?@../stamp-objlist?
  43. s/^\(SUBDIR_OBSTACK *=\).*$/\1 ..\/obstack.o/
  44. s/^\(SUBDIR_USE_ALLOCA *=\).*$/\1/
  45. s/^\(SUBDIR_MALLOC *=\).*$/\1/
  46. /####target/ i\
  47. STMP_FIXPROTO = \
  48. OTHER_FIXINCLUDES_DIRS=. \
  49. RANLIB = : \
  50. RANLIB_TEST = false \
  51. OLDCC = cl \
  52. MAKE = nmake \
  53. SYMLINK = copy \
  54. INSTALL = $(srcdir)/install.sh -c \
  55. exeext = .exe \
  56. objext = .obj \
  57. oldobjext = .obj \
  58. \
  59. EXTRA_PROGRAMS=ld.exe \
  60. \
  61. ld.obj: $(srcdir)/config/winnt/ld.c \
  62. \    $(CC) $(CFLAGS) \\\
  63. \     -I. -I$(srcdir) -I$(srcdir)/config -c $(srcdir)/config/winnt/ld.c \
  64. \
  65. ld.exe: ld.obj \
  66.     link -out:ld.exe ld.obj $(LDFLAGS) $(CLIB) \
  67. \
  68. EXTRA_GCC_OBJS=spawnv.obj oldnames.obj \
  69. spawnv.obj: $(srcdir)/config/winnt/spawnv.c \
  70. \    $(CC) $(CFLAGS) \\\
  71. \     -I. -I$(srcdir) -I$(srcdir)/config -c $(srcdir)/config/winnt/spawnv.c \
  72. \
  73. oldnames.obj: $(srcdir)/config/winnt/oldnames.c \
  74. \    $(CC) $(CFLAGS) \\\
  75. \     -I. -I$(srcdir) -I$(srcdir)/config -c $(srcdir)/config/winnt/oldnames.c
  76. s/^C c:/Cc:/
  77. s/\${OBJS}/\$(OBJS)/g
  78. s/\${SYSTEM_HEADER_DIR}/\$(SYSTEM_HEADER_DIR)/g
  79. s/\${HOST_CC}/\$(HOST_CC)/g
  80. s/ \${srcdir}\// /g
  81. s/\${mainversion}/\$(mainversion)/g
  82. s/\ $(srcdir)\/move-if-change$//
  83. s/\$(srcdir)\/move-if-change/copy/g
  84. /^# USE_HOST_OBSTACK/ i\
  85. USE_HOST_OBSTACK=obstack.obj
  86. /^# USE_ALLOCA/ i\
  87. USE_ALLOCA=alloca.obj
  88. /^# USE_HOST_ALLOCA/ i\
  89. USE_HOST_ALLOCA=alloca.obj
  90. s/^ALLOCA =/ALLOCA = alloca.obj/
  91. s/^ALLOCA_FINISH = true/ALLOCA_FINISH =/
  92. s/    \.\//    /
  93. s/^bi-\([a-z]*\) *:/bi-\1.exe :/
  94. s/ bi-\([a-z]*\)$/ bi-\1.exe/
  95. s/ bi-\([a-z]*\) / bi-\1.exe /g
  96. s/^gen\([a-z]*\) *:/gen\1.exe :/
  97. s/ gen\([a-z]*\)$/ gen\1.exe/
  98. s/ gen\([a-z]*\) / gen\1.exe /g
  99. s/genmultilib.exe/genmultilib/g
  100. s/^cccp *:/cccp.exe :/
  101. s/cccp$/cccp.exe/
  102. s/cccp /cccp.exe /
  103. s/CCCP=cccp.exe/CCCP=cccp/
  104. s/(CCCP)$/(CCCP)$(exeext)/
  105. s/^cpp *:/cpp.exe :/
  106. s/cpp$/cpp.exe/
  107. s/cpp /cpp.exe /
  108. s/^cc1 *:/cc1.exe :/
  109. s/cc1$/cc1.exe/
  110. s/cc1 /cc1.exe /
  111. s/^cc1obj *:/cc1obj.exe :/
  112. s/cc1obj$/cc1obj.exe/
  113. s/cc1obj /cc1obj.exe /
  114. s/^xgcc *:/xgcc.exe :/
  115. s/xgcc$/xgcc.exe/
  116. s/xgcc /xgcc.exe /
  117. s/^enquire *:/enquire.exe :/
  118. s/enquire$/enquire.exe/
  119. s/enquire /enquire.exe /
  120. s/\.o *:/.obj :/
  121. s/\.o$/.obj/
  122. s/\.o /.obj /g
  123. s/-rm -f cpp.exe/del cpp.exe/
  124. s/\$(CC) \$(ALL_CFLAGS) \$(LDFLAGS) -o /link $(LDFLAGS) -out:/
  125. s/\$(HOST_CC) \$(HOST_CFLAGS) \$(HOST_LDFLAGS) -o /link $(HOST_LDFLAGS) -out:/
  126. /^# Build libgcc.a/ r config/winnt/libgcc.mak
  127. /^# Build libgcc.a/,/ / d
  128. /^# Build the include directory\./ r config/winnt/headers.mak
  129. /^# Build the include directory\./,/touch objc-headers/ d
  130. s/^\ //
  131.