LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 04-08-2008, 12:29 AM   #1
answerme
Member
 
Registered: Apr 2008
Posts: 96

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, 04:34 AM   #2
dmail
Member
 
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, 05:16 AM   #3
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
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.
 
  


Reply


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 10:15 PM
automake, makefile, makefile.in and makefile.am Fond_of_Opensource Linux - Newbie 1 09-12-2006 08:35 PM
what is the meaning of Makefile,Makefile.am,Makefile.in cynthia_thomas Linux - General 3 12-08-2005 05:00 AM
how to get (makefile -f makefile )output into the textview widget in Pygtk sailu_mvn Programming 3 02-28-2005 03:57 AM
generate Makefile from Makefile.in without calling ./configure ? chris78 Programming 2 05-02-2004 12:23 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:20 AM.

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