1 # GNU Makefile -- Makefile
4 # http://cmancala.sourceforge.net
5 # $Source: /cvsroot/cmancala/mancala/src/Attic/Makefile,v $
6 # $Revision: 1.10.2.7 $
7 # $Date: 2004/01/16 20:49:30 $
9 # NOTE: You MUST update /etc/ld.so.conf and rerun ldconfig *or* update
10 # the LD_LIBRARY_PATH environment variable to include /usr/local/lib in
11 # order to compile with SDL_ttf.
13 # Linux-dependent right now, modify for platform-independency later
14 # is now adapted for maemo (and dh_* scripts)
19 CFLAGS = `sdl-config --cflags` -I/usr/local/include/SDL `pkg-config hildon-1 --cflags` -I/usr/include/dbus-1.0/ -I/usr/lib/dbus-1.0/include/
20 LFLAGS = `sdl-config --static-libs ` -lSDL_image -lSDL_ttf -lSDL_mixer `pkg-config hildon-1 --libs` `pkg-config --libs libosso`
22 MAIN_OBJ = main.o graphics.o mancala.o sounds.o play.o
23 TEST_OBJ = ai-test.o mancala.o
26 RECURSE = ai-init.o ai-recurse.o
27 ULTIMATE = ai-init.o ai-ultimate.o
29 #'$<' is filename of input, '$@' is filename of output
31 $(CC) -c -g$(DBG) -Wall $(CFLAGS) -D$(STD) $<
33 $(CC) -c -g$(DBG) -Wall $(CFLAGS) -D$(STD) $<
35 all: $(MAIN_OBJ) $(NORMAL)
36 $(CC) $(MAIN_OBJ) $(NORMAL) $(LFLAGS) -o mancala
38 recurse: $(MAIN_OBJ) $(RECURSE)
39 $(CC) $(MAIN_OBJ) $(RECURSE) $(LFLAGS) -o mancala
41 ultimate: $(MAIN_OBJ) $(ULTIMATE)
42 $(CC) $(MAIN_OBJ) $(ULTIMATE) $(LFLAGS) -o mancala
44 ai-test-normal: $(TEST_OBJ) $(NORMAL)
45 $(CC) $(TEST_OBJ) $(NORMAL) $(LFLAGS) -o ai-test
47 ai-test-recurse: $(TEST_OBJ) $(RECURSE)
48 $(CC) $(TEST_OBJ) $(RECURSE) $(LFLAGS) -o ai-test
50 ai-test-ultimate: $(TEST_OBJ) $(ULTIMATE)
51 $(CC) $(TEST_OBJ) $(ULTIMATE) $(LFLAGS) -o ai-test
54 mkdir -p $(DESTDIR)/usr/share/pixmaps/mancala
55 mkdir -p $(DESTDIR)/usr/bin/
56 cp ../res/*.png $(DESTDIR)/usr/share/pixmaps/mancala
57 cp ./mancala $(DESTDIR)/usr/bin/
60 rm -rf $(DESTDIR)/usr/share/pixmaps/mancala
61 rm $(DESTDIR)/usr/bin/mancala
64 rm -f *.o *.core *.swp *~ *.log
70 @echo "No configuration files to distclean yet."
71 @echo "I will do my best to make some! ;-)"