Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-08-2008, 01:29 AM   #1
Registered: Apr 2008
Posts: 97

Rep: Reputation: 24
from windows to linux makefile

Hye All
I Have some thousands of C file and related makefiles that are working on windows.But according to our need we have to run those files in LINUX .When i run those file i find out that program showing error. I findout in makefile that there were some path related problem.
Since linux depends on case sensitive problems & on Windows, the directory path separator is "\" while on Linux it is "/".

Since there is are lot of makefile ,so it will take lot of time for me to upgrade it .Is there any way without making not much changes in my makefiles(i.e. not to change path sepator & folder in case sensitive )so that i can run those makefiles
Old 04-08-2008, 05:34 AM   #2
Registered: Oct 2005
Posts: 970

Rep: Reputation: Disabled
You could write a script to change the path separator or just use '/' as it is valid on both windows and linux.
Old 04-08-2008, 06:16 AM   #3
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 64
Porting software from one OS to another is rarely just a matter of changing the directory separators. If there are any calls to the windows API, you will need to re-write them to use Linux system calls. This can be simple, and it can be difficult. If this project uses any Microsoft API, you will need to re-write those parts of code to use equivalent APIs on Linux.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Makefile issue: "Makefile.src: File not found" m3rkury Linux - Software 1 02-22-2007 11:15 PM
automake, makefile, and Fond_of_Opensource Linux - Newbie 1 09-12-2006 09:35 PM
what is the meaning of Makefile,, cynthia_thomas Linux - General 3 12-08-2005 06:00 AM
how to get (makefile -f makefile )output into the textview widget in Pygtk sailu_mvn Programming 3 02-28-2005 04:57 AM
generate Makefile from without calling ./configure ? chris78 Programming 2 05-02-2004 01:23 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:11 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration