RungAaz wrote:OK, I'll choose 4th
it's you choice...
RungAaz wrote:But be sure, I'll have surely some questions.
there are also many tutorials on the net:
http://www.opussoftware.com/tutorial/TutMakefile.htm
http://www.ijon.de/comp/tutorials/makefile.html
RungAaz wrote:So, IrrlichtHome := ../.. means go two directories back and you are in Irrlicht's Home directory?
right !!!
RungAaz wrote:In the Makefile it says:
# linker flags such as additional libraries and link paths
USERLDFLAGS =
Should I add there the library path? (IrrlichtHome/lib/$(SYSTEM))
But some lines lower it says:
all_linux all_win32 static_win32: LDFLAGS += -L$(IrrlichtHome)/lib/$(SYSTEM) -lIrrlicht
So the lib-path is already set?
yes, it's already set, but to the directory previously was defined...
in detail:
-L means "now comes a linker directory"
$(IrrlichtHome) was defined as "2 dirs up (../..)"
then comes "/lib/"
and
$(SYSTEM) wasn't defined so its empty...
now you have the complete lib path: "../../lib/"
in this line you can also enter the complete lib path of your system, e.g. "-LC:/Irrlicht/lib"
the second part in this line defines the library file(s):
-l (lower case L) stands for "now comes a Lib-File"
and
Irrlicht will the interpreted as "libIrrlicht.a" for MinGW...
in another line you'll also find the include path definition, it starts with
-I that stands for "now comes an includes path"...
there you can also enter the complete path of your system, e.g. "-IC:/Irrlicht/include"
but remember: if you don't use the placeholders/variables, e.g. $(IrrlichtHome), you'll have to change all lines where this placeholder was used, too !!!
so it's better to use placeholders/variables...
![Wink ;)](./images/smilies/icon_wink.gif)