Installing data files

Hi,

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:
1
2
3
4
5
6
7
8
9
10
11
12
13
CC=g++
CFLAGS=-Wall -Werror -march=i686 -mtune=i686 -pipe 
LDFLAGS=-lSDL -lSDL_image -lSDL_mixer

main: main.o functions.o functions.h
	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)

main.o: main.cpp functions.h
	$(CC) $(CFLAGS) -c -o $@ $<

functions.o: functions.cpp functions.h
	$(CC) $(CFLAGS) -c -o $@ $<


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.
Topic archived. No new replies allowed.