X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9f3553c83ee10aaae4052307a0c2cb909c7976a4..59fe1666ce79d76b7decec871801c7622a789299:/distrib/msw/tmake/b32.t diff --git a/distrib/msw/tmake/b32.t b/distrib/msw/tmake/b32.t index fafa2fc940..f58a05ab1a 100644 --- a/distrib/msw/tmake/b32.t +++ b/distrib/msw/tmake/b32.t @@ -15,9 +15,7 @@ #! now transform these hashes into $project tags foreach $file (sort keys %wxGeneric) { my $tag = ""; - if ( $wxGeneric{$file} =~ /\b(G|16|U)\b/ ) { - next; - } + next if $wxGeneric{$file} =~ /\b(PS|G|16|U)\b/; $file =~ s/cp?p?$/obj/; $project{"WXGENERICOBJS"} .= "\$(MSWDIR)\\" . $file . " " @@ -34,14 +32,24 @@ foreach $file (sort keys %wxMSW) { next if $wxMSW{$file} =~ /\b16\b/; - if ( file =~ /automtn/ ) { + if ( $file =~ /^automtn/ ) { #! comment in old makefile.b32 seems to imply that this file can't #! be compiled with Borland (leads to crash in oleauto sample) next; } + $isCFile = $file =~ /\.c$/; + + my $isOleObj = $wxMSW{$file} =~ /\bO\b/; $file =~ s/cp?p?$/obj/; - $project{"WXMSWOBJS"} .= "\$(MSWDIR)\\" . $file . " " + my $obj = "\$(MSWDIR)\\" . $file . " "; + + $project{"WXMSWOBJS"} .= $obj; + if ( $isOleObj ) { + #! remember that this file is in ole subdir + $project{"WXOLEOBJS"} .= $obj; + } + $project{"WXCOBJS"} .= $obj if $isCFile; } #$} @@ -152,7 +160,7 @@ all: all_libs all_execs $(LIBTARGET): $(DUMMY).obj $(OBJECTS) -erase $(LIBTARGET) - tlib $(LIBTARGET) /P512 @&&! + tlib $(LIBTARGET) /P1024 @&&! +$(OBJECTS:.obj =.obj +) +$(PERIPH_LIBS:.lib =.lib +) ! @@ -194,7 +202,9 @@ $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c my @objs = split; foreach (@objs) { $text .= $_ . ": "; - s/obj$/\$(SRCSUFF)/; + if ( $project{"WXOLEOBJS"} =~ /\Q$_/ ) { s/MSWDIR/OLEDIR/; } + $suffix = $project{"WXCOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)'; + s/obj$/$suffix/; $text .= $_ . "\n\n"; } #$} @@ -298,7 +308,7 @@ $(CFG): makefile.b32 -WE -tWM --I$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/xpm +-I$(WXINC);$(BCCDIR)\include;$(WXDIR)/src/generic;$(WXDIR)/src/png;$(WXDIR)/src/jpeg;$(WXDIR)/src/zlib;$(WXDIR)/src/xpm -I$(WXDIR)\include\wx\msw\gnuwin32 -L$(BCCDIR)\lib @@ -327,7 +337,10 @@ cleanall: clean MFTYPE=b32 -makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t +# Can't use this or we'll have to distribute all tmake files with wxWindows +# makefile.$(MFTYPE) : $(WXWIN)\distrib\msw\tmake\filelist.txt $(WXWIN)\distrib\msw\tmake\$(MFTYPE).t + +self: cd $(WXWIN)\distrib\msw\tmake tmake -t $(MFTYPE) wxwin.pro -o makefile.$(MFTYPE) copy makefile.$(MFTYPE) $(WXWIN)\src\msw