Set new variables into Makefile.
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 May 1995 22:57:06 +0000 (22:57 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 May 1995 22:57:06 +0000 (22:57 +0000)
Build winnt.obj.
Edit CCCP definition.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9771 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/alpha/config-nt.sed
gcc/config/i386/config-nt.sed

index c91bffc..1ecafd4 100644 (file)
@@ -11,6 +11,20 @@ s/$(srcdir)\/c-gperf/c-gperf/g
 target=winnt3.5
 /^xmake_file=/ d
 /^tmake_file=/ d
+/^out_file/ c\
+out_file=config/alpha/alpha.c
+/^out_object_file/ c\
+out_object_file=alpha.obj
+/^md_file/ c\
+md_file=config/alpha/alpha.md
+/^tm_file/ c\
+tm_file=config/alpha/winnt.h
+/^build_xm_file/ c\
+build_xm_file=config/alpha/xm-winnt.h
+/^host_xm_file/ c\
+host_xm_file=config/alpha/xm-winnt.h
+/^lang_specs_files=/ d
+/^lang_options_files=/ d
 /^version=/ c\
 version=2.6.3
 s/CC = cc/CC = cl/
@@ -24,10 +38,10 @@ s/`echo \$(srcdir)\///g
 s/ | sed 's,\^\\\.\/,,'`//g
 s/^    cd \$(srcdir)[  ]*;/    /
 /^stamp-attrtab/,/copy/ {
-  /\\/d
-  /fi/d
+  /\\$/d
+  /    fi/d
   /copy/ i\
-\        genattrtab md > tmp-attrtab.c
+\        genattrtab $(md_file) > tmp-attrtab.c
 }
 /^enquire[     ]*:/ s/\$(GCC_PARTS)//g
 /^enquire.o[   ]*:/ s/\$(GCC_PASSES)//g
@@ -63,9 +77,13 @@ EXTRA_PROGRAMS=ld.exe \
 ld.obj: $(srcdir)/config/winnt/ld.c \
 \      $(CC) $(CFLAGS) \\\
 \      -I. -I$(srcdir) -I$(srcdir)/config -c $(srcdir)/config/winnt/ld.c \
-\
 ld.exe: ld.obj \
        link32 -out:ld.exe ld.obj $(LDFLAGS) $(CLIB)
+\
+EXTRA_OBJS=winnt.obj \
+winnt.obj: $(srcdir)/config/alpha/winnt.c \
+\      $(CC) $(CFLAGS) \\\
+\      -I. -I$(srcdir) -I$(srcdir)/config -c $(srcdir)/config/alpha/winnt.c
 s/^C c:/Cc:/
 s/\${OBJS}/\$(OBJS)/g
 s/\${SYSTEM_HEADER_DIR}/\$(SYSTEM_HEADER_DIR)/g
@@ -93,6 +111,7 @@ s/genmultilib.exe/genmultilib/g
 s/^cccp *:/cccp.exe :/
 s/cccp$/cccp.exe/
 s/cccp /cccp.exe /
+s/CCCP=cccp.exe/CCCP=cccp/
 s/^cpp *:/cpp.exe :/
 s/cpp$/cpp.exe/
 s/cpp /cpp.exe /
index 4903059..bf5176b 100644 (file)
@@ -11,6 +11,20 @@ s/$(srcdir)\/c-gperf/c-gperf/g
 target=winnt3.5
 /^xmake_file=/ d
 /^tmake_file=/ d
+/^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
 /^version=/ c\
 version=2.6.3
 s/CC = cc/CC = cl/
@@ -24,10 +38,10 @@ s/`echo \$(srcdir)\///g
 s/ | sed 's,\^\\\.\/,,'`//g
 s/^    cd \$(srcdir)[  ]*;/    /
 /^stamp-attrtab/,/copy/ {
-  /\\/d
-  /fi/d
+  /\\$/d
+  /    fi/d
   /copy/ i\
-\        genattrtab md > tmp-attrtab.c
+\        genattrtab $(md_file) > tmp-attrtab.c
 }
 /^enquire[     ]*:/ s/\$(GCC_PARTS)//g
 /^enquire.o[   ]*:/ s/\$(GCC_PASSES)//g
@@ -65,7 +79,12 @@ ld.obj: $(srcdir)/config/winnt/ld.c \
 \      -I. -I$(srcdir) -I$(srcdir)/config -c $(srcdir)/config/winnt/ld.c \
 \
 ld.exe: ld.obj \
-       link -out:ld.exe ld.obj $(LDFLAGS) $(CLIB)
+       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
 s/^C c:/Cc:/
 s/\${OBJS}/\$(OBJS)/g
 s/\${SYSTEM_HEADER_DIR}/\$(SYSTEM_HEADER_DIR)/g
@@ -93,6 +112,7 @@ s/genmultilib.exe/genmultilib/g
 s/^cccp *:/cccp.exe :/
 s/cccp$/cccp.exe/
 s/cccp /cccp.exe /
+s/CCCP=cccp.exe/CCCP=cccp/
 s/^cpp *:/cpp.exe :/
 s/cpp$/cpp.exe/
 s/cpp /cpp.exe /