Skip to content

Commit eab4f19

Browse files
committed
* lib/mkmf.rb, {bcc32,win32}/Makefile.sub (CLEANLIBS, CLEANOBJS):
moved clean targets to platfrom makefiles. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent c73a203 commit eab4f19

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Thu Aug 7 14:16:24 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
2+
3+
* lib/mkmf.rb, {bcc32,win32}/Makefile.sub (CLEANLIBS, CLEANOBJS):
4+
moved clean targets to platfrom makefiles.
5+
16
Thu Aug 7 13:12:30 2008 NAKAMURA Usaku <usa@ruby-lang.org>
27

38
* ext/socket/getaddrinfo.c (gai_strerror): ignore only on Haiku.

bcc32/Makefile.sub

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,8 @@ s,@RULE_SUBST@,{.;$$(VPATH)}%s,;t t
476476
s,@COMMON_LIBS@,m advapi32 avicap32 avifil32 cap comctl32 comdlg32 dlcapi gdi32 glu32 imagehlp imm32 inetmib1 kernel32 loadperf lsapi32 lz32 mapi32 mgmtapi mpr msacm32 msvfw32 nddeapi netapi32 ole32 oleaut32 oledlg olepro32 opengl32 pdh pkpd32 rasapi32 rasdlg rassapi rpcrt4 setupapi shell32 shfolder snmpapi sporder tapi32 url user32 vdmdbg version win32spl winmm wintrust wsock32,;t t
477477
s,@COMMON_MACROS@,WIN32_LEAN_AND_MEAN WIN32,;t t
478478
s,@COMMON_HEADERS@,winsock2.h windows.h,;t t
479+
s,@cleanlibs@,$$*.tds,;t t
480+
s,@cleanobjs@,$$*-$$(arch).def $$*.il? $$*.lib,;t t
479481
s,@TRY_LINK@,$$(CC) -oconftest $$(INCFLAGS) -I$$(hdrdir) $$(CPPFLAGS) $$(CFLAGS) $$(LIBPATH) $$(LDFLAGS) $$(src) $$(LOCAL_LIBS) $$(LIBS),;t t
480482
s,@EXPORT_PREFIX@,_,;t t
481483
s,@arch@,$(ARCH)-$(OS),;t t

lib/mkmf.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1604,11 +1604,11 @@ def create_makefile(target, srcprefix = nil)
16041604
" #"
16051605
# TODO: fixme
16061606
install_dirs.each {|d| mfile.print("%-14s= %s\n" % d) if /^[[:upper:]]/ =~ d[0]}
1607-
n = ($extout ? '$(RUBYARCHDIR)/' : '') + '$(TARGET).'
1607+
n = ($extout ? '$(RUBYARCHDIR)/' : '') + '$(TARGET)'
16081608
mfile.print "
16091609
TARGET_SO = #{($extout ? '$(RUBYARCHDIR)/' : '')}$(DLLIB)
1610-
CLEANLIBS = #{n}#{CONFIG['DLEXT']} #{n}il? #{n}tds #{n}map
1611-
CLEANOBJS = *.#{$OBJEXT} *.#{$LIBEXT} *.s[ol] *.pdb *.exp *.bak
1610+
CLEANLIBS = #{n}.#{CONFIG['DLEXT']} #{config_string('cleanlibs') {|t| t.gsub(/\$\*/) {n}}}
1611+
CLEANOBJS = *.#{$OBJEXT} #{config_string('cleanobjs') {|t| t.gsub(/\$\*/, '$(TARGET)')}} *.bak
16121612
16131613
all: #{$extout ? "install" : target ? "$(DLLIB)" : "Makefile"}
16141614
static: $(STATIC_LIB)#{$extout ? " install-rb" : ""}

win32/Makefile.sub

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,12 +629,13 @@ s,@LINK_SO@,@$$(RM) $$(@:/=\).manifest,;t t
629629
!endif
630630
s,@COMPILE_C@,$$(CC) $$(INCFLAGS) $$(CFLAGS) $$(CPPFLAGS) $$(COUTFLAG)$$(@) -c -Tc$$(<:\=/),;t t
631631
s,@COMPILE_CXX@,$$(CXX) $$(INCFLAGS) $$(CXXFLAGS) $$(CPPFLAGS) $$(COUTFLAG)$$(@) -c -Tp$$(<:\=/),;t t
632-
s,@COMPILE_RULES@,{$$(hdrdir)}.%s{}.%s: {$$(topdir)}.%s{}.%s: {$$(srcdir)}.%s{}.%s: .%s.%s:,;t t
632+
s,@COMPILE_RULES@,{$$(hdrdir)}.%s.%s: {$$(topdir)}.%s.%s: {$$(srcdir)}.%s.%s: .%s.%s:,;t t
633633
s,@RULE_SUBST@,{.;$$(VPATH)}%s,;t t
634634
s,@TRY_LINK@,$$(CC) -Feconftest $$(INCFLAGS) -I$$(hdrdir) $$(CPPFLAGS) $$(CFLAGS) $$(src) $$(LOCAL_LIBS) $$(LIBS) -link $$(LDFLAGS) $$(LIBPATH) $$(XLDFLAGS),;t t
635635
s,@COMMON_LIBS@,$(COMMON_LIBS),;t t
636636
s,@COMMON_MACROS@,$(COMMON_MACROS),;t t
637637
s,@COMMON_HEADERS@,$(COMMON_HEADERS),;t t
638+
s,@cleanobjs@,$$*.exp $$*.lib $$*.pdb,;t t
638639
s,@DISTCLEANFILES@,vc*.pdb,;t t
639640
s,@EXPORT_PREFIX@, ,;t t
640641
s,@arch@,$(ARCH)-$(PLATFORM),;t t

0 commit comments

Comments
 (0)