VC++ 1.5 makefile fixes (lib split, C objs)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -6,7 +6,6 @@
|
|||||||
#! Created: 14.07.99
|
#! Created: 14.07.99
|
||||||
#! Version: $Id$
|
#! Version: $Id$
|
||||||
#!#############################################################################
|
#!#############################################################################
|
||||||
|
|
||||||
#${
|
#${
|
||||||
#! include the code which parses filelist.txt file and initializes
|
#! include the code which parses filelist.txt file and initializes
|
||||||
#! %wxCommon, %wxGeneric and %wxMSW hashes.
|
#! %wxCommon, %wxGeneric and %wxMSW hashes.
|
||||||
@@ -23,6 +22,9 @@
|
|||||||
$project{"WXGENERICOBJS"} .= "\$(GENDIR)\\" . $file . " "
|
$project{"WXGENERICOBJS"} .= "\$(GENDIR)\\" . $file . " "
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#! because we later search for " <filename> " in this string
|
||||||
|
$project{"WXCOBJS"} = " ";
|
||||||
|
|
||||||
foreach $file (sort keys %wxCommon) {
|
foreach $file (sort keys %wxCommon) {
|
||||||
#! socket files don't compile under Win16 currently
|
#! socket files don't compile under Win16 currently
|
||||||
next if $wxCommon{$file} =~ /\b(32|S)\b/;
|
next if $wxCommon{$file} =~ /\b(32|S)\b/;
|
||||||
@@ -38,11 +40,14 @@
|
|||||||
#! don't take files not appropriate for 16-bit Windows
|
#! don't take files not appropriate for 16-bit Windows
|
||||||
next if $wxMSW{$file} =~ /\b(32|O)\b/;
|
next if $wxMSW{$file} =~ /\b(32|O)\b/;
|
||||||
|
|
||||||
|
$isCFile = $file =~ /\.c$/;
|
||||||
$file =~ s/cp?p?$/obj/;
|
$file =~ s/cp?p?$/obj/;
|
||||||
$project{"WXMSWOBJS"} .= "\$(MSWDIR)\\" . $file . " "
|
$obj = "\$(MSWDIR)\\" . $file . " ";
|
||||||
|
#! have to split lib in 2 halves because otherwise it's too big
|
||||||
|
$project{$file =~ "^[a-o]" ? "WXMSWOBJS1" : "WXMSWOBJS2"} .= $obj;
|
||||||
|
$project{"WXCOBJS"} .= $obj if $isCFile;
|
||||||
}
|
}
|
||||||
#$}
|
#$}
|
||||||
|
|
||||||
# This file was automatically generated by tmake at #$ Now()
|
# This file was automatically generated by tmake at #$ Now()
|
||||||
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE DOS.T!
|
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE DOS.T!
|
||||||
|
|
||||||
@@ -108,13 +113,16 @@ COMMONOBJS = \
|
|||||||
$(COMMDIR)\y_tab.obj \
|
$(COMMDIR)\y_tab.obj \
|
||||||
#$ ExpandList("WXCOMMONOBJS");
|
#$ ExpandList("WXCOMMONOBJS");
|
||||||
|
|
||||||
MSWOBJS = #$ ExpandList("WXMSWOBJS");
|
# we can't have all objects in one list because the library becomes too big
|
||||||
|
MSWOBJS1 = #$ ExpandList("WXMSWOBJS1");
|
||||||
|
|
||||||
|
MSWOBJS2 = #$ ExpandList("WXMSWOBJS2");
|
||||||
|
|
||||||
# TODO: Implement XPM and PNG targets in this makefile!
|
# TODO: Implement XPM and PNG targets in this makefile!
|
||||||
# $(OLEDIR)\xpmhand \
|
# $(OLEDIR)\xpmhand \
|
||||||
# $(OLEDIR)\pnghand \
|
# $(OLEDIR)\pnghand \
|
||||||
|
|
||||||
OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS)
|
OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS1) $(MSWOBJS2)
|
||||||
|
|
||||||
# Normal, static library
|
# Normal, static library
|
||||||
all: $(DUMMYOBJ) $(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib $(WXDIR)\lib\wx4.lib
|
all: $(DUMMYOBJ) $(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib $(WXDIR)\lib\wx4.lib
|
||||||
@@ -176,23 +184,23 @@ $(CPPFLAGS) /YcWX/WXPREC.H /c /Tp $*.$(SRCSUFF)
|
|||||||
<<
|
<<
|
||||||
|
|
||||||
#${
|
#${
|
||||||
$_ = $project{"WXMSWOBJS"} . $project{"WXCOMMONOBJS"} . $project{"WXGENERICOBJS"};
|
$_ = $project{"WXMSWOBJS1"} . $project{"WXMSWOBJS2"} . $project{"WXCOMMONOBJS"} . $project{"WXGENERICOBJS"};
|
||||||
my @objs = split;
|
my @objs = split;
|
||||||
foreach (@objs) {
|
foreach (@objs) {
|
||||||
if ( $project{"WXCOBJS"} =~ /\Q$_/ ) {
|
if ( $project{"WXCOBJS"} =~ / \Q$_\E / ) {
|
||||||
s:\\:/:;
|
s:\\:/:;
|
||||||
$text .= $_ . ': $*.c' . "\n" .
|
$text .= $_ . ': $*.c' . "\n" .
|
||||||
' cl @<<' . "\n" .
|
' cl @<<' . "\n" .
|
||||||
'$(CPPFLAGS2) /Fo$@ /c /Tc $*.c' . "\n" .
|
'$(CPPFLAGS2) /Fo$@ /c /Tc $*.c' . "\n" .
|
||||||
"<<\n\n";
|
"<<\n\n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
s:\\:/:;
|
s:\\:/:;
|
||||||
$text .= $_ . ': $*.$(SRCSUFF)' . "\n" .
|
$text .= $_ . ': $*.$(SRCSUFF)' . "\n" .
|
||||||
' cl @<<' . "\n" .
|
' cl @<<' . "\n" .
|
||||||
'$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)' . "\n" .
|
'$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)' . "\n" .
|
||||||
"<<\n\n";
|
"<<\n\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#$}
|
#$}
|
||||||
|
|
||||||
|
@@ -1,6 +1,4 @@
|
|||||||
|
# This file was automatically generated by tmake at 09:37, 1999/10/25
|
||||||
|
|
||||||
# This file was automatically generated by tmake at 18:37, 1999/10/22
|
|
||||||
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE DOS.T!
|
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE DOS.T!
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -165,6 +163,7 @@ COMMONOBJS = \
|
|||||||
$(COMMDIR)\zipstrm.obj \
|
$(COMMDIR)\zipstrm.obj \
|
||||||
$(COMMDIR)\zstream.obj
|
$(COMMDIR)\zstream.obj
|
||||||
|
|
||||||
|
# we can't have all objects in one list because the library becomes too big
|
||||||
MSWOBJS1 = $(MSWDIR)\accel.obj \
|
MSWOBJS1 = $(MSWDIR)\accel.obj \
|
||||||
$(MSWDIR)\app.obj \
|
$(MSWDIR)\app.obj \
|
||||||
$(MSWDIR)\bitmap.obj \
|
$(MSWDIR)\bitmap.obj \
|
||||||
@@ -213,11 +212,11 @@ MSWOBJS1 = $(MSWDIR)\accel.obj \
|
|||||||
$(MSWDIR)\minifram.obj \
|
$(MSWDIR)\minifram.obj \
|
||||||
$(MSWDIR)\msgdlg.obj \
|
$(MSWDIR)\msgdlg.obj \
|
||||||
$(MSWDIR)\nativdlg.obj \
|
$(MSWDIR)\nativdlg.obj \
|
||||||
$(MSWDIR)\ownerdrw.obj \
|
$(MSWDIR)\ownerdrw.obj
|
||||||
$(MSWDIR)\palette.obj \
|
|
||||||
$(MSWDIR)\pen.obj
|
|
||||||
|
|
||||||
MSWOBJS2 = $(MSWDIR)\penwin.obj \
|
MSWOBJS2 = $(MSWDIR)\palette.obj \
|
||||||
|
$(MSWDIR)\pen.obj \
|
||||||
|
$(MSWDIR)\penwin.obj \
|
||||||
$(MSWDIR)\printdlg.obj \
|
$(MSWDIR)\printdlg.obj \
|
||||||
$(MSWDIR)\printwin.obj \
|
$(MSWDIR)\printwin.obj \
|
||||||
$(MSWDIR)\radiobox.obj \
|
$(MSWDIR)\radiobox.obj \
|
||||||
@@ -251,7 +250,6 @@ OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS1) $(MSWOBJS2)
|
|||||||
# Normal, static library
|
# Normal, static library
|
||||||
all: $(DUMMYOBJ) $(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib $(WXDIR)\lib\wx4.lib
|
all: $(DUMMYOBJ) $(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib $(WXDIR)\lib\wx4.lib
|
||||||
|
|
||||||
|
|
||||||
$(WXDIR)\lib\wx1.lib: $(COMMONOBJS) $(PERIPH_LIBS)
|
$(WXDIR)\lib\wx1.lib: $(COMMONOBJS) $(PERIPH_LIBS)
|
||||||
-erase $(WXDIR)\lib\wx1.lib
|
-erase $(WXDIR)\lib\wx1.lib
|
||||||
lib /PAGESIZE:128 @<<
|
lib /PAGESIZE:128 @<<
|
||||||
@@ -480,7 +478,7 @@ $(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
|
|||||||
|
|
||||||
$(MSWDIR)/gsocket.obj: $*.c
|
$(MSWDIR)/gsocket.obj: $*.c
|
||||||
cl @<<
|
cl @<<
|
||||||
$(CPPFLAGS2) /Fo$@ /c $*.c
|
$(CPPFLAGS2) /Fo$@ /c /Tc $*.c
|
||||||
<<
|
<<
|
||||||
|
|
||||||
$(MSWDIR)/helpwin.obj: $*.$(SRCSUFF)
|
$(MSWDIR)/helpwin.obj: $*.$(SRCSUFF)
|
||||||
|
Reference in New Issue
Block a user