Noobilicious: Is there a g++ option to specify 'source directories'?
From: WTH (spamsucks_at_Ih8it.com)
Date: Mon, 15 Mar 2004 22:28:39 -0500
I have some common unix code in a folder that I'd like to be able to refer
to without using a wildcar like ./unixsource/* because some is for Linux and
some is for Irix.
Is there a way to tell g++ to look into particular directories for the files
I list after "-c", for example:
SOURCE_DIR = ./unixsource
g++ -c CSceneGraph.cpp CNodes.cpp -I./includes -srcdir $(SOURCE_DIR)
Or something like that...?
I currently use:
SOURCE_DIR = ./linuxsource/*
g++ -c $(SOURCE_DIR) -I./includes
but like I was saying, I would like to be able to specify particular files
and not resort to a wildcard.