Test for depend_rules method (in 1.9, not 1.8) in extconf.

This commit is contained in:
Patrick Mahoney 2011-12-12 20:13:37 -06:00
parent f37d5499c7
commit f2dc5dfe9a
1 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,8 @@ end
c_sources = ['psem.c', 'psem_error.c', 'psem_posix.c', 'bsem.c', 'constants.c']
$objs += ['psem.o', 'psem_error.o', 'bsem.o', 'constants.o']
depend_rules <<-END
if respond_to? :depend_rules
depend_rules <<-END
psem.c: psem.h psem_posix.c
psem_error.c: psem_error.h
@ -31,6 +32,6 @@ mempcpy.c: mempcpy.h
libpsem.o: #{$objs.join(' ')}
END
end
create_makefile('libpsem')