X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f2071dda0b6016afed8777a4dd23f0ada537026b..47f631042babbcf0f29722738aa9734eb01a5883:/distrib/msw/tmake/b32.t?ds=sidebyside diff --git a/distrib/msw/tmake/b32.t b/distrib/msw/tmake/b32.t index d63783965c..ffbf12197c 100644 --- a/distrib/msw/tmake/b32.t +++ b/distrib/msw/tmake/b32.t @@ -15,30 +15,41 @@ #! 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 . " " } foreach $file (sort keys %wxCommon) { + $isCFile = $file =~ /\.c$/; $file =~ s/cp?p?$/obj/; - $project{"WXCOMMONOBJS"} .= "\$(MSWDIR)\\" . $file . " " + $obj = "\$(MSWDIR)\\" . $file . " "; + $project{"WXCOMMONOBJS"} .= $obj; + $project{"WXCOBJS"} .= $obj if $isCFile; } 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; } #$} @@ -149,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 +) ! @@ -191,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"; } #$} @@ -204,8 +217,9 @@ $(COMMDIR)\lex_yy.c: $(COMMDIR)\doslex.c my @objs = split; foreach (@objs) { $text .= $_ . ": "; + $suffix = $project{"WXCOBJS"} =~ /\Q$_/ ? "c" : '$(SRCSUFF)'; s/MSWDIR/COMMDIR/; - s/obj$/\$(SRCSUFF)/; + s/obj$/$suffix/; $text .= $_ . "\n\n"; } #$} @@ -253,7 +267,7 @@ clean_wxxpm: $(CFG) png: $(CFG) cd $(WXDIR)\src\png - make -f makefile.b32 + make -f makefile.b32 cd $(WXDIR)\src\msw clean_png: @@ -273,7 +287,7 @@ clean_zlib: jpeg: $(CFG) cd $(WXDIR)\src\jpeg - make -f makefile.b32 + make -f makefile.b32 cd $(WXDIR)\src\msw clean_jpeg: @@ -322,3 +336,12 @@ clean: $(PERIPH_CLEAN_TARGET) cleanall: clean +MFTYPE=b32 +# 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 +