1995-04-13 08:49:33 -04:00
|
|
|
|
/^Makefile/,/^ rm -f config.run/d
|
1995-02-21 18:22:35 -05:00
|
|
|
|
s/rm -f/del/
|
1995-04-13 08:49:33 -04:00
|
|
|
|
s/|| cp/|| copy/
|
1995-02-21 18:22:35 -05:00
|
|
|
|
/^config.status/,/ fi/d
|
|
|
|
|
s/config.status//g
|
|
|
|
|
s/\/dev\/null/NUL/g
|
|
|
|
|
s/$(srcdir)\/c-parse/c-parse/g
|
|
|
|
|
s/$(srcdir)\/c-gperf/c-gperf/g
|
1994-09-30 17:33:35 -04:00
|
|
|
|
/^multilib.h/ s/multilib/not-multilib/
|
|
|
|
|
/^target=/ c\
|
1995-02-21 18:22:35 -05:00
|
|
|
|
target=winnt3.5
|
1994-09-30 17:33:35 -04:00
|
|
|
|
/^xmake_file=/ d
|
|
|
|
|
/^tmake_file=/ d
|
1995-05-22 18:57:06 -04:00
|
|
|
|
/^out_file/ c\
|
|
|
|
|
out_file=config/i386/i386.c
|
|
|
|
|
/^out_object_file/ c\
|
|
|
|
|
out_object_file=i386.obj
|
|
|
|
|
/^md_file/ c\
|
|
|
|
|
md_file=config/i386/i386.md
|
|
|
|
|
/^tm_file/ c\
|
|
|
|
|
tm_file=config/i386/winnt.h
|
|
|
|
|
/^build_xm_file/ c\
|
|
|
|
|
build_xm_file=config/i386/xm-winnt.h
|
|
|
|
|
/^host_xm_file/ c\
|
|
|
|
|
host_xm_file=config/i386/xm-winnt.h
|
|
|
|
|
/^lang_specs_files=/ d
|
|
|
|
|
/^lang_options_files=/ d
|
1994-09-30 17:33:35 -04:00
|
|
|
|
/^version=/ c\
|
1995-04-13 08:49:33 -04:00
|
|
|
|
version=2.6.3
|
1994-10-11 19:20:43 -04:00
|
|
|
|
s/CC = cc/CC = cl/
|
1995-02-21 18:22:35 -05:00
|
|
|
|
s/^SHELL =.*/SHELL =/
|
1994-10-11 19:20:43 -04:00
|
|
|
|
s/CFLAGS = -g/CFLAGS =/
|
1994-09-30 17:33:35 -04:00
|
|
|
|
s/:\$/: \$/g
|
|
|
|
|
s/<\ *\$(srcdir)\//< $(srcdir)\\/g
|
|
|
|
|
s/^ \$(srcdir)\/move-if-change/ copy/
|
|
|
|
|
s/^USE_/# USE_/
|
|
|
|
|
s/`echo \$(srcdir)\///g
|
|
|
|
|
s/ | sed 's,\^\\\.\/,,'`//g
|
|
|
|
|
s/^ cd \$(srcdir)[ ]*;/ /
|
|
|
|
|
/^stamp-attrtab/,/copy/ {
|
1995-05-22 18:57:06 -04:00
|
|
|
|
/\\$/d
|
|
|
|
|
/ fi/d
|
1994-09-30 17:33:35 -04:00
|
|
|
|
/copy/ i\
|
1995-05-22 18:57:06 -04:00
|
|
|
|
\ genattrtab $(md_file) > tmp-attrtab.c
|
1994-09-30 17:33:35 -04:00
|
|
|
|
}
|
|
|
|
|
/^enquire[ ]*:/ s/\$(GCC_PARTS)//g
|
|
|
|
|
/^enquire.o[ ]*:/ s/\$(GCC_PASSES)//g
|
|
|
|
|
/^GCC_FOR_TARGET =/ c\
|
|
|
|
|
GCC_FOR_TARGET = gcc
|
|
|
|
|
s/; *@true//
|
|
|
|
|
/^OBJS.*stamp-objlist/ s?`cat ../stamp-objlist`?@../stamp-objlist?
|
|
|
|
|
s/^\(SUBDIR_OBSTACK *=\).*$/\1 ..\/obstack.o/
|
|
|
|
|
s/^\(SUBDIR_USE_ALLOCA *=\).*$/\1/
|
|
|
|
|
s/^\(SUBDIR_MALLOC *=\).*$/\1/
|
1994-10-11 19:20:43 -04:00
|
|
|
|
/####target/ i\
|
1995-02-21 18:22:35 -05:00
|
|
|
|
STMP_FIXPROTO = \
|
|
|
|
|
OTHER_FIXINCLUDES_DIRS=/MSTOOLS/h \
|
|
|
|
|
RANLIB = : \
|
|
|
|
|
RANLIB_TEST = false \
|
|
|
|
|
OLDCC = cl \
|
|
|
|
|
MAKE = make \
|
|
|
|
|
SYMLINK = copy \
|
|
|
|
|
INSTALL = $(srcdir)/install.sh -c \
|
|
|
|
|
exeext = .exe \
|
|
|
|
|
objext = .obj \
|
|
|
|
|
oldobjext = .obj \
|
|
|
|
|
\
|
|
|
|
|
CC = cl \
|
|
|
|
|
CFLAGS = -Di386 -DWIN32 -D_WIN32 -DWINNT -D_M_IX86=300 -D_X86_=1 \\\
|
|
|
|
|
-DALMOST_STDC -D_MSC_VER=800 \
|
|
|
|
|
CLIB = libc.lib kernel32.lib \
|
|
|
|
|
LDFLAGS = -align:0x1000 -subsystem:console -entry:mainCRTStartup \\\
|
|
|
|
|
-stack:1000000,1000000 \
|
|
|
|
|
\
|
|
|
|
|
EXTRA_PROGRAMS=ld.exe \
|
1994-10-11 19:20:43 -04:00
|
|
|
|
\
|
|
|
|
|
ld.obj: $(srcdir)/config/winnt/ld.c \
|
1995-04-13 08:49:33 -04:00
|
|
|
|
\ $(CC) $(CFLAGS) \\\
|
|
|
|
|
\ -I. -I$(srcdir) -I$(srcdir)/config -c $(srcdir)/config/winnt/ld.c \
|
1994-10-11 19:20:43 -04:00
|
|
|
|
\
|
1995-02-21 18:22:35 -05:00
|
|
|
|
ld.exe: ld.obj \
|
1995-05-22 18:57:06 -04:00
|
|
|
|
link -out:ld.exe ld.obj $(LDFLAGS) $(CLIB) \
|
|
|
|
|
\
|
|
|
|
|
EXTRA_OBJS=winnt.obj \
|
|
|
|
|
winnt.obj: $(srcdir)/config/i386/winnt.c \
|
|
|
|
|
\ $(CC) $(CFLAGS) \\\
|
|
|
|
|
\ -I. -I$(srcdir) -I$(srcdir)/config -c $(srcdir)/config/i386/winnt.c
|
1994-10-11 19:20:43 -04:00
|
|
|
|
s/^C c:/Cc:/
|
1994-09-30 17:33:35 -04:00
|
|
|
|
s/\${OBJS}/\$(OBJS)/g
|
|
|
|
|
s/\${SYSTEM_HEADER_DIR}/\$(SYSTEM_HEADER_DIR)/g
|
|
|
|
|
s/\${HOST_CC}/\$(HOST_CC)/g
|
|
|
|
|
s/ \${srcdir}\// /g
|
|
|
|
|
s/\${mainversion}/\$(mainversion)/g
|
|
|
|
|
s/\ $(srcdir)\/move-if-change$//
|
1994-10-11 19:20:43 -04:00
|
|
|
|
s/\$(srcdir)\/move-if-change/copy/g
|
1994-09-30 17:33:35 -04:00
|
|
|
|
/^# USE_HOST_OBSTACK/ i\
|
1994-10-11 19:20:43 -04:00
|
|
|
|
USE_HOST_OBSTACK=obstack.obj
|
|
|
|
|
/^# USE_ALLOCA/ i\
|
|
|
|
|
USE_ALLOCA=alloca.obj
|
|
|
|
|
/^# USE_HOST_ALLOCA/ i\
|
|
|
|
|
USE_HOST_ALLOCA=alloca.obj
|
|
|
|
|
s/^ALLOCA =/ALLOCA = alloca.obj/
|
|
|
|
|
s/^ALLOCA_FINISH = true/ALLOCA_FINISH =/
|
1994-09-30 17:33:35 -04:00
|
|
|
|
s/ \.\// /
|
|
|
|
|
s/^bi-\([a-z]*\) *:/bi-\1.exe :/
|
|
|
|
|
s/ bi-\([a-z]*\)$/ bi-\1.exe/
|
|
|
|
|
s/ bi-\([a-z]*\) / bi-\1.exe /g
|
|
|
|
|
s/^gen\([a-z]*\) *:/gen\1.exe :/
|
|
|
|
|
s/ gen\([a-z]*\)$/ gen\1.exe/
|
|
|
|
|
s/ gen\([a-z]*\) / gen\1.exe /g
|
|
|
|
|
s/genmultilib.exe/genmultilib/g
|
|
|
|
|
s/^cccp *:/cccp.exe :/
|
|
|
|
|
s/cccp$/cccp.exe/
|
|
|
|
|
s/cccp /cccp.exe /
|
1995-05-22 18:57:06 -04:00
|
|
|
|
s/CCCP=cccp.exe/CCCP=cccp/
|
1994-10-11 19:20:43 -04:00
|
|
|
|
s/^cpp *:/cpp.exe :/
|
|
|
|
|
s/cpp$/cpp.exe/
|
|
|
|
|
s/cpp /cpp.exe /
|
1994-09-30 17:33:35 -04:00
|
|
|
|
s/^cc1 *:/cc1.exe :/
|
|
|
|
|
s/cc1$/cc1.exe/
|
|
|
|
|
s/cc1 /cc1.exe /
|
1994-10-11 19:20:43 -04:00
|
|
|
|
s/^cc1obj *:/cc1obj.exe :/
|
|
|
|
|
s/cc1obj$/cc1obj.exe/
|
|
|
|
|
s/cc1obj /cc1obj.exe /
|
1994-09-30 17:33:35 -04:00
|
|
|
|
s/^xgcc *:/xgcc.exe :/
|
|
|
|
|
s/xgcc$/xgcc.exe/
|
|
|
|
|
s/xgcc /xgcc.exe /
|
1994-10-11 19:20:43 -04:00
|
|
|
|
s/\.o *:/.obj :/
|
|
|
|
|
s/\.o$/.obj/
|
|
|
|
|
s/\.o /.obj /g
|
|
|
|
|
s/-rm -f cpp.exe/del cpp.exe/
|
1995-05-16 18:33:10 -04:00
|
|
|
|
s/\$(CC) \$(ALL_CFLAGS) \$(LDFLAGS) -o /link $(LDFLAGS) -out:/
|
|
|
|
|
s/\$(HOST_CC) \$(HOST_CFLAGS) \$(HOST_LDFLAGS) -o /link $(HOST_LDFLAGS) -out:/
|
1994-09-30 17:33:35 -04:00
|
|
|
|
s/^\//
|