Jump to content
wandersonp

Makefiles is a nightmare, how to avoid them, SOLUTION

Recommended Posts

Recently I discovered how to avoid Makefiles for projects that required lib linking, lots of cpp and header files.

 

just a simple solution 

 

my main.cpp file just contains

 

#include SOP_mySop.cpp

#include file01.cpp

#include file02.cpp

#include file03.cpp

#include file04.cpp

 

now just execute hcustom main.cpp and everything is fine

  • Like 1

Share this post


Link to post
Share on other sites

I think this technique has its pros and cons. I have heard rumours of some large project (was it a game engine? i forget) that builds using this technique.

Share this post


Link to post
Share on other sites

 

Recently I discovered how to avoid Makefiles for projects that required lib linking, lots of cpp and header files.
 
just a simple solution 
 
my main.cpp file just contains
 
#include SOP_mySop.cpp
#include file01.cpp
#include file02.cpp
#include file03.cpp
#include file04.cpp
 
now just execute hcustom main.cpp and everything is fine

 

I'm not quite understand, how including source code, can help with linking, especially when linking with 3rd party libs? Also makefiles can do much much more. Maybe in case of hcustom it helps.....

Share this post


Link to post
Share on other sites

until now, this technique works for me, because in my linux the makefile sample of HDK site is not working properly, lot of errors.

 

in the future i will try to correct and use makefiles in my source

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×