Game Development Community

Adding more .cc to makefile?

by Lukensteinz · in Torque Game Engine · 08/11/2003 (1:22 am) · 8 replies

I cant find where the make selects all the source files to compile, thus giving linking errors, any help?

About the author

Heavy Fabrication Engineer by trade. But hell been tinkering with torque since the early days, am now using a combo of torque, cad, and 3d software to experiment with design work, mostly geared towards vehicles.


#1
08/11/2003 (9:25 am)
Targets.torque.mk in source/engine/
#2
08/11/2003 (3:53 pm)
Ah!

Thanks, saves a bit of time.
#3
02/10/2004 (6:17 am)
I'm following your advice but can't figure out how to add the files properly. I only won't them to build for the dedicated build. Below is a portion of my targets.torque.mk in source/engine. There is no particular reason for using the name SOURCE.SOCIETYLEARNING. Is it important what it's called? The error message is included below:

SOURCE.SOCIETYLEARNING =\
../SocietyLearning/Agent/Agent.cc \
../SocietyLearning/Society/Society.cc

SOURCE.TESTAPP_DEDICATED =\
$(SOURCE.SOCIETYLEARNING) \
$(SOURCE.TESTAPP) \
$(SOURCE.PLATFORM$(OS)DEDICATED) \

The error message:

make dedicated
make[1]: *** No rule to make target 'out.GCC2.DEBUG/../SocietyLearning/Agent/Agent.obj', needed by 'out.GCC2.DEBUG/torqueDemod_DEBUG.bin'. Stop.
make: *** [dedicated] Error 2

Any help would be appreciated. I've used makefiles before but this one is pretty big.

Jay
#4
02/11/2004 (12:05 pm)
Cant see a reason why it shouldnt work.
But you could just whack it under another group, SOURCE.GAME.NET=\ perhaps.
Umm... try putting
$(SOURCE.SOCIETYLEARNING) \
under
SOURCE.TESTAPP =\ instead...
#5
03/21/2004 (8:29 pm)
I have that same problem. It seems to be a problem with dependentcies? I tried adding my code "testvehicle.cc" under the "game/vehicles" area of the make file. Same type of error.

I have a post in another thread that I have not gotten an answer on. Will let you know if I do.

Frank
#6
03/27/2004 (12:48 am)
Case Senesitive? Typed it correctly and have the right paths?
#7
03/28/2004 (5:16 pm)
Wrong file extension. I had *.cc in the *.mk file and *.cpp on the actual file. DOH!
#8
03/28/2004 (8:33 pm)
Glad to see you got it fixed ;)