Compile into area folder

Posted by Whisperedecho on Sat 17 May 2008 12:06 AM — 2 posts, 12,263 views.

USA #0
I want to change the makefile so that it generates smaug.exe and the DNS resolver to the smaugfuss area folder instead of the src folder.

I have tried changing different things in the Makefile and have tried looking at tutorials online but can't seem to get it to work.

Can someone help me?
Australia Forum Administrator #1
The simplest way of achieving that is to not do it, but to simply change to the area folder and type:


ln -s ../src/smaug.exe


What that does is make a "soft link" between the file smaug.exe in the src folder and the current folder.

Now if you type "ls -l smaug*" you see:


lrwxrwxrwx    1 nick     nick           12 May 17 16:47 smaug -> ../src/smaug


That means you can run smaug from this directory (you would need to type ./smaug) but it actually picks it up from the linked directory.