Game Development Community

Adding source files?

by Demolishun · in Technical Issues · 03/20/2004 (11:21 pm) · 4 replies

Hello,
I am starting to experiment with the C++ code and cannot seem to figure out how to add two files:
TestVehicle.h
TestVehicle.cpp

My setup:
Linux

I have added these files in the engine/game/vehicles directory. When I type make all I get is a quick return from the process. It does not even look at the new files. So I tried loading the files using the KDevelop method. KDevelop supposedly adds these files to the source, but again it returns imediately with "success". How do you make your makefiles (hehe) see these additional source files? Do I need to have them in a list somewhere? So far I cannot find an include or make.in or something similar to show all the files needed.

Thanks,
Frank

About the author

I love programming, I love programming things that go click, whirr, boom. For organized T3D Links visit: http://demolishun.com/?page_id=67


#1
03/21/2004 (12:43 am)
Frank,

Add your files to the .mk in the engine directory.

And post this in the sdk forums :)
#2
03/21/2004 (12:08 pm)
I guess I assumed the compiler topic would be in the SDK forums already. Can you show me how to place this thread in an appropriate SDK forum? I have been using these forums for a while now and I still cannot find a master directory of the forums. The menus on each page seem to change and are context sensitive to the point I get lost easily. I thought it was just me at first, but I have had to create bookmarks just to navigate to areas that I find.

I did add these to the .mk file in the games directory. Now I get a message stating: no rule to make target /testvehicle.obj. Is there a way to "make" the dependencies? I looked and could not find a rule in the makefile. Is there a way to force KDevelop to manage the makefiles? I have used KDevelop quite a lot and I like how it can manage dependencies and files for you. Is that a cop out?

Thanks,
Frank
#3
03/21/2004 (12:33 pm)
Holy cow! Kdevelop is soooo slow! I was playing with adding and removing files from the project to see if KDevelop would automagically create dependencies for the files and it takes forever. I have use KDevelop on much smaller projects, but never had this kind of slowdown. I would much rather manage this from the command line considering the pokeyness of KDevelop.

Thanks,
Frank
#4
03/21/2004 (1:25 pm)
Click on the forums link in the top right box, above unread posts.