I am quite new to programming in C++. I created a simple game using SDL libraries. It workes fine when data files are in same directory as binary file. How can I make it such that, it can be configured and installed with standard GNU toolset ( and preferably keep working :) ). (I am using Autoconf, Automake). Here are how files look like (approximately):
1 2 3 4 5 6 7 8
/
|-> main.cpp
|-> functions.cpp -> there are some functions in here
|-> functions.h
|-> a_sound_file.wav
|-> another_sound_file.wav
|-> background.png
|-> otherthings.png
Currently, I am using this Makefile which is handcrafted by myself:
I did a simple "hello world" program using Autoconf and Automake, but, they didn't mention anything about data files. So, any help or pointers in appreciated.
I have made some research on this, and shared what I have found out in here: http://stackoverflow.com/a/9244883/886669 . You can check that out if you are interested.