```ruby
extension do |e|
  e.name 'readline'
  e.files '*.c'
  e.includes '.', '..', '/usr/include'
  e.libs 'readline'
end

```

Include ncurses to link with our readline extension
user
```ruby
extension do |e|
  e.name 'readline'
  e.files '*.c'
  e.includes '.', '..', '/usr/include'
  e.libs 'readline', 'ncurses'
end

```
assistant