summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/configsub.rb2
-rw-r--r--ext/digest/MANIFEST1
-rw-r--r--ext/digest/depend2
-rw-r--r--ext/digest/md5/MANIFEST1
-rw-r--r--ext/digest/md5/depend5
-rw-r--r--ext/digest/rmd160/MANIFEST1
-rw-r--r--ext/digest/rmd160/depend7
-rw-r--r--ext/digest/sha1/MANIFEST1
-rw-r--r--ext/digest/sha1/depend7
-rw-r--r--ext/digest/sha2/MANIFEST1
-rw-r--r--ext/digest/sha2/depend7
-rw-r--r--ext/extmk.rb.in2
-rw-r--r--ext/iconv/MANIFEST1
-rw-r--r--ext/stringio/MANIFEST1
-rw-r--r--ext/syslog/MANIFEST1
-rw-r--r--ext/syslog/depend2
16 files changed, 40 insertions, 2 deletions
diff --git a/ext/configsub.rb b/ext/configsub.rb
index f90b2df..679078f 100644
--- a/ext/configsub.rb
+++ b/ext/configsub.rb
@@ -12,7 +12,7 @@ BEGIN {
File.foreach($config || "config.status") do |line|
next if /^#/ =~ line
- if /^s%@(\w+)@%(.*)%g/ =~ line
+ if /^s[%,]@(\w+)@[%,](.*)[%,]g/ =~ line
name = $1
val = $2 || ""
next if /^(INSTALL|DEFS|configure_input|srcdir)$/ =~ name
diff --git a/ext/digest/MANIFEST b/ext/digest/MANIFEST
index 8d2d999..32803c6 100644
--- a/ext/digest/MANIFEST
+++ b/ext/digest/MANIFEST
@@ -32,3 +32,4 @@ sha2/sha2hl.c
sha2/sha2init.c
test.rb
test.sh
+depend
diff --git a/ext/digest/depend b/ext/digest/depend
new file mode 100644
index 0000000..43601a2
--- /dev/null
+++ b/ext/digest/depend
@@ -0,0 +1,2 @@
+digest.o: digest.c digest.h $(hdrdir)/ruby.h $(topdir)/config.h \
+ $(hdrdir)/defines.h $(hdrdir)/intern.h
diff --git a/ext/digest/md5/MANIFEST b/ext/digest/md5/MANIFEST
index 1b8a861..923af92 100644
--- a/ext/digest/md5/MANIFEST
+++ b/ext/digest/md5/MANIFEST
@@ -2,3 +2,4 @@ extconf.rb
md5.c
md5.h
md5init.c
+depend
diff --git a/ext/digest/md5/depend b/ext/digest/md5/depend
new file mode 100644
index 0000000..30ad482
--- /dev/null
+++ b/ext/digest/md5/depend
@@ -0,0 +1,5 @@
+md5.o: md5.c md5.h $(srcdir)/../defs.h $(hdrdir)/ruby.h $(topdir)/config.h \
+ $(hdrdir)/defines.h $(hdrdir)/intern.h
+md5init.o: md5init.c $(srcdir)/../digest.h $(hdrdir)/ruby.h \
+ $(topdir)/config.h $(hdrdir)/defines.h $(hdrdir)/intern.h md5.h \
+ $(srcdir)/../defs.h
diff --git a/ext/digest/rmd160/MANIFEST b/ext/digest/rmd160/MANIFEST
index ff16164..017976d 100644
--- a/ext/digest/rmd160/MANIFEST
+++ b/ext/digest/rmd160/MANIFEST
@@ -3,3 +3,4 @@ rmd160.c
rmd160.h
rmd160hl.c
rmd160init.c
+depend
diff --git a/ext/digest/rmd160/depend b/ext/digest/rmd160/depend
new file mode 100644
index 0000000..7cf1d5e
--- /dev/null
+++ b/ext/digest/rmd160/depend
@@ -0,0 +1,7 @@
+rmd160.o: rmd160.c rmd160.h $(srcdir)/../defs.h $(hdrdir)/ruby.h \
+ $(topdir)/config.h $(hdrdir)/defines.h $(hdrdir)/intern.h
+rmd160hl.o: rmd160hl.c rmd160.h $(srcdir)/../defs.h $(hdrdir)/ruby.h \
+ $(topdir)/config.h $(hdrdir)/defines.h $(hdrdir)/intern.h
+rmd160init.o: rmd160init.c $(srcdir)/../digest.h $(hdrdir)/ruby.h \
+ $(topdir)/config.h $(hdrdir)/defines.h $(hdrdir)/intern.h \
+ rmd160.h $(srcdir)/../defs.h
diff --git a/ext/digest/sha1/MANIFEST b/ext/digest/sha1/MANIFEST
index f08f240..99b83ad 100644
--- a/ext/digest/sha1/MANIFEST
+++ b/ext/digest/sha1/MANIFEST
@@ -3,3 +3,4 @@ sha1.c
sha1.h
sha1hl.c
sha1init.c
+depend
diff --git a/ext/digest/sha1/depend b/ext/digest/sha1/depend
new file mode 100644
index 0000000..31a5da0
--- /dev/null
+++ b/ext/digest/sha1/depend
@@ -0,0 +1,7 @@
+sha1.o: sha1.c sha1.h $(srcdir)/../defs.h $(hdrdir)/ruby.h \
+ $(topdir)/config.h $(hdrdir)/defines.h $(hdrdir)/intern.h
+sha1hl.o: sha1hl.c sha1.h $(srcdir)/../defs.h $(hdrdir)/ruby.h \
+ $(topdir)/config.h $(hdrdir)/defines.h $(hdrdir)/intern.h
+sha1init.o: sha1init.c $(srcdir)/../digest.h $(hdrdir)/ruby.h \
+ $(topdir)/config.h $(hdrdir)/defines.h $(hdrdir)/intern.h \
+ sha1.h $(srcdir)/../defs.h
diff --git a/ext/digest/sha2/MANIFEST b/ext/digest/sha2/MANIFEST
index 03fbb0f..f117b94 100644
--- a/ext/digest/sha2/MANIFEST
+++ b/ext/digest/sha2/MANIFEST
@@ -3,3 +3,4 @@ sha2.c
sha2.h
sha2hl.c
sha2init.c
+depend
diff --git a/ext/digest/sha2/depend b/ext/digest/sha2/depend
new file mode 100644
index 0000000..2587415
--- /dev/null
+++ b/ext/digest/sha2/depend
@@ -0,0 +1,7 @@
+sha2.o: sha2.c sha2.h $(srcdir)/../defs.h $(hdrdir)/ruby.h \
+ $(topdir)/config.h $(hdrdir)/defines.h $(hdrdir)/intern.h
+sha2hl.o: sha2hl.c sha2.h $(srcdir)/../defs.h $(hdrdir)/ruby.h \
+ $(topdir)/config.h $(hdrdir)/defines.h $(hdrdir)/intern.h
+sha2init.o: sha2init.c $(srcdir)/../digest.h $(hdrdir)/ruby.h \
+ $(topdir)/config.h $(hdrdir)/defines.h $(hdrdir)/intern.h \
+ sha2.h $(srcdir)/../defs.h
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in
index b7db0a3..dd7cabf 100644
--- a/ext/extmk.rb.in
+++ b/ext/extmk.rb.in
@@ -615,7 +615,7 @@ def extmake(target)
end
$LOCAL_LIBS = "" # to be assigned in extconf.rb
$CFLAGS = ""
- $CPPFLAGS = ""
+ $CPPFLAGS = "@CPPFLAGS@"
$LDFLAGS = ""
$LIBPATH = [$libdir]
diff --git a/ext/iconv/MANIFEST b/ext/iconv/MANIFEST
index c63959b..643f3b7 100644
--- a/ext/iconv/MANIFEST
+++ b/ext/iconv/MANIFEST
@@ -1,3 +1,4 @@
MANIFEST
extconf.rb
iconv.c
+depend
diff --git a/ext/stringio/MANIFEST b/ext/stringio/MANIFEST
index 2c42c84..4f3a7dc 100644
--- a/ext/stringio/MANIFEST
+++ b/ext/stringio/MANIFEST
@@ -1,3 +1,4 @@
MANIFEST
README
stringio.c
+depend
diff --git a/ext/syslog/MANIFEST b/ext/syslog/MANIFEST
index 67c588a..b530603 100644
--- a/ext/syslog/MANIFEST
+++ b/ext/syslog/MANIFEST
@@ -3,3 +3,4 @@ extconf.rb
syslog.c
syslog.txt
test.rb
+depend
diff --git a/ext/syslog/depend b/ext/syslog/depend
new file mode 100644
index 0000000..45cbea2
--- /dev/null
+++ b/ext/syslog/depend
@@ -0,0 +1,2 @@
+syslog.o: syslog.c $(hdrdir)/ruby.h $(topdir)/config.h $(hdrdir)/defines.h \
+ $(hdrdir)/intern.h