]> git.saurik.com Git - wxWidgets.git/commitdiff
Borland makefiles fixes for .c files
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 1 Oct 1999 23:00:30 +0000 (23:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 1 Oct 1999 23:00:30 +0000 (23:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

distrib/msw/tmake/b32.t
distrib/msw/tmake/bcc.t
src/msw/makefile.b32
src/msw/makefile.bcc

index 3fb5fd74c9a70a3c0b9925b1304743f5d7ab2c18..ffbf12197c9d353203b89ae5da26f40d32028ba8 100644 (file)
@@ -38,6 +38,8 @@
             next;
         }
 
+        $isCFile = $file =~ /\.c$/;
+
         my $isOleObj = $wxMSW{$file} =~ /\bO\b/;
         $file =~ s/cp?p?$/obj/;
         my $obj = "\$(MSWDIR)\\" . $file . " ";
@@ -47,7 +49,7 @@
             #! remember that this file is in ole subdir
             $project{"WXOLEOBJS"} .= $obj;
         }
-
+        $project{"WXCOBJS"} .= $obj if $isCFile;
     }
 #$}
 
@@ -201,7 +203,8 @@ $(COMMDIR)\lex_yy.c:    $(COMMDIR)\doslex.c
     foreach (@objs) {
         $text .= $_ . ": ";
         if ( $project{"WXOLEOBJS"} =~ /\Q$_/ ) { s/MSWDIR/OLEDIR/; }
-        s/obj$/\$(SRCSUFF)/;
+        $suffix = $project{"WXCOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)';
+        s/obj$/$suffix/;
         $text .= $_ . "\n\n";
     }
 #$}
index 615e6e7abec132588132330ab33b60b551b3758d..e8ad7db29d8e8862aa35c0866b1df1fcd010f7a7 100644 (file)
         #! don't take files not appropriate for 16-bit Windows
         next if $wxMSW{$file} =~ /\b(32|O)\b/;
 
+        $isCFile = $file =~ /\.c$/;
         $file =~ s/cp?p?$/obj/;
-        $project{"WXMSWOBJS"} .= "\$(MSWDIR)\\" . $file . " "
+        $obj = "\$(MSWDIR)\\" . $file . " ";
+        $project{"WXMSWOBJS"} .= $obj;
+        $project{"WXCOBJS"} .= $obj if $isCFile;
     }
 #$}
 
@@ -162,7 +165,8 @@ $(COMMDIR)\lex_yy.c:    $(COMMDIR)\doslex.c
     my @objs = split;
     foreach (@objs) {
         $text .= $_ . ": ";
-        s/obj/\$(SRCSUFF)/;
+        $suffix = $project{"WXCOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)';
+        s/obj/$suffix/;
         $text .= $_ . "\n\n";
     }
 #$}
index 9ad8a4a5397b38902dc022159b2cd06fb7efed1d..b13d2e9459eaa9f8a3a2f001df75d942d262c079 100644 (file)
@@ -1,6 +1,6 @@
 
 
-# This file was automatically generated by tmake at 20:00, 1999/10/01
+# This file was automatically generated by tmake at 00:54, 1999/10/02
 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE B32.T!
 
 #
@@ -413,7 +413,7 @@ $(MSWDIR)\gauge95.obj: $(MSWDIR)\gauge95.$(SRCSUFF)
 
 $(MSWDIR)\gdiobj.obj: $(MSWDIR)\gdiobj.$(SRCSUFF)
 
-$(MSWDIR)\gsocket.obj: $(MSWDIR)\gsocket.$(SRCSUFF)
+$(MSWDIR)\gsocket.obj: $(MSWDIR)\gsocket.c
 
 $(MSWDIR)\helpwin.obj: $(MSWDIR)\helpwin.$(SRCSUFF)
 
index 5a881e60d9035ffffc484ded812b9dd0e734fc97..221354d244a01e0a13f612ec27bee3fb491cae2e 100644 (file)
@@ -1,6 +1,6 @@
 
 
-# This file was automatically generated by tmake at 20:00, 1999/10/01
+# This file was automatically generated by tmake at 00:58, 1999/10/02
 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE BCC.T!
 
 #
@@ -345,7 +345,7 @@ $(MSWDIR)\gaugemsw.obj: $(MSWDIR)\gaugemsw.$(SRCSUFF)
 
 $(MSWDIR)\gdiobj.obj: $(MSWDIR)\gdi$(SRCSUFF).obj
 
-$(MSWDIR)\gsocket.obj: $(MSWDIR)\gsocket.$(SRCSUFF)
+$(MSWDIR)\gsocket.obj: $(MSWDIR)\gsocket.c
 
 $(MSWDIR)\helpwin.obj: $(MSWDIR)\helpwin.$(SRCSUFF)