# How compile a makefile in windows

**URL:** <https://www.ruby-forum.com/t/how-compile-a-makefile-in-windows/105347>\
**Category:** Ruby\
**Created:** [May 29, 2007, 5:44am UTC](https://www.ruby-forum.com/t/how-compile-a-makefile-in-windows/105347 "2007-05-29T05:44:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mr\_brownstone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@mr\_brownstone](https://www.ruby-forum.com/u/mr_brownstone)\
**Post date:** [May 29, 2007, 5:44am UTC](https://www.ruby-forum.com/t/how-compile-a-makefile-in-windows/105347/1 "2007-05-29T05:44:52Z")

</div>

I modified the archive object.c(in C:\ruby\src\ruby-1.8.6\>), I created  
the archive extconfig.rb with the following content:

require “mkmf”  
create\_makefile(“Object”)

and run  
ruby extconfig.rb

â€œMakefileâ€ was created, and run:

ruby makefile

but, appear this error:

makefile:2: unknown regexp option - h  
makefile:6: syntax error, unexpected ‘.’  
makefile:7: syntax error, unexpected tIDENTIFIER, expecting $end  
topdir = c:/ruby/lib/ruby/1.8/i386-mswin32

What it is happening?

---

<div class="post-metadata">

**Author:** ![mr\_brownstone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@mr\_brownstone](https://www.ruby-forum.com/u/mr_brownstone)\
**Post date:** [May 29, 2007, 6:51am UTC](https://www.ruby-forum.com/t/how-compile-a-makefile-in-windows/105347/2 "2007-05-29T06:51:57Z")

</div>

Hi,

At Tue, 29 May 2007 12:44:53 +0900,  
Marcelo J. wrote in [ruby-talk:253367]:

> ruby makefile

Makefile is for make command.
