Re: Building Euphoria -- what am I missing?
- Posted by Matt Lewis <matthewwalkerlewis at gmail.co?> Aug 13, 2007
- 564 views
Jason Gade wrote: > > Matt Lewis wrote: > > Try using the make files. I believe that Rob's batch files, etc, are for > > older versions of Watcom and gcc. On windows: > > > > > wmake -f makefile.wat interpreter=1 > > > > On linux: > > > > $ make interpreter > > > > Look at the makefiles for details on building the other binaries. > > > > Matt > > Okay, next dumb question: > "make translator" on Linux or "wmake -f makefile.wat translator=1" on Windows > don't seem to work. Both Windows and Linux give me the error that ec.c does > not exist. > > I made the interpreter first, and then I made the library. Any suggestions? Between making any of the binaries, you have to "make clean": $ make clean > wmake -f makefile.wat clean The reason for this is because the makefile has to detect when to run the translator by looking at the euphoria source files. But when you make the various binaries, it can't detect that it needs to retranslate the euphoria code. This seems like a hassle, but if you're doing stuff with the backend, it makes development a lot easier, since it will only have to recompile the files that you've modified. But since none of the euphoria code has been modified, you have to clean the make to get it to retranslate, because hte main-* files will all be different, as will some of the others, just based on the code itself. Matt