UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old April 18th, 2008, 05:49 AM
andy101 andy101 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: UK
Posts: 110 andy101 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 h 45 m 36 sec
Reputation Power: 4
Windows VS Project to Unix Project

I would like to move my project; well 3 projects in one solution; 2 are Client and Server with the other an interface program, from Windows Visual Studio .Net 2005 to a GNU C++ environment on a Unix platform.

Are they any way of generating a make file to build the code on the Unix system. I know only a little about Make files.

I understand that Visual Studio 6.0 had an Export Makefiles facility, but this seems not to exist in the newer versions like VS 2005.

Any suggestions please.

Andy.

Reply With Quote
  #2  
Old April 29th, 2008, 08:30 PM
ranton ranton is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Location: Birmingham, AL
Posts: 3 ranton User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 9 m 3 sec
Reputation Power: 0
Re: Windows VS Project to Unix Project

Well, I don't know of any automated way to do it, but even if you had a Microsoft style makefile it would be rather different than what you would need for GNU make.

I would suggest getting a Makefile to use as a template and then going from there. Also, if you have multiple directories of source it's generally easier to have one makefile per directory.

Here is a basic example for a single source file (barc.c)



CC=gcc
FLAGS=-g -Wall
LFLAGS=

TARGET=barc
OBJS=barc.o

all: $(TARGET)

$(TARGET): $(OBJS)
$(CC) $(FLAGS) $(LFLAGS) $(OBJS) -o $(TARGET)

clean:
rm -f $(TARGET) $(OBJS) core *.core

.c.o:
$(CC) $(FLAGS) -c $*.c
Comments on this post
andy101 agrees: Thanks for the info.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Windows VS Project to Unix Project


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway