Test for depend_rules method (in 1.9, not 1.8) in extconf.
This commit is contained in:
parent
f37d5499c7
commit
f2dc5dfe9a
|
@ -17,6 +17,7 @@ end
|
||||||
c_sources = ['psem.c', 'psem_error.c', 'psem_posix.c', 'bsem.c', 'constants.c']
|
c_sources = ['psem.c', 'psem_error.c', 'psem_posix.c', 'bsem.c', 'constants.c']
|
||||||
$objs += ['psem.o', 'psem_error.o', 'bsem.o', 'constants.o']
|
$objs += ['psem.o', 'psem_error.o', 'bsem.o', 'constants.o']
|
||||||
|
|
||||||
|
if respond_to? :depend_rules
|
||||||
depend_rules <<-END
|
depend_rules <<-END
|
||||||
psem.c: psem.h psem_posix.c
|
psem.c: psem.h psem_posix.c
|
||||||
psem_error.c: psem_error.h
|
psem_error.c: psem_error.h
|
||||||
|
@ -31,6 +32,6 @@ mempcpy.c: mempcpy.h
|
||||||
|
|
||||||
libpsem.o: #{$objs.join(' ')}
|
libpsem.o: #{$objs.join(' ')}
|
||||||
END
|
END
|
||||||
|
end
|
||||||
|
|
||||||
create_makefile('libpsem')
|
create_makefile('libpsem')
|
||||||
|
|
Loading…
Reference in New Issue