initial load of http://downloads.sourceforge.net/project/cmancala/mancala-gui/mancala...
[mancala] / src / Makefile
1 # GNU Makefile -- Makefile
2 # Kevin Riggle
3 # http://cmancala.sourceforge.net
4 # $Source: /cvsroot/cmancala/mancala/src/Attic/Makefile,v $
5 # $Revision: 1.10.2.7 $
6 # $Date: 2004/01/16 20:49:30 $
7
8 # NOTE:  You MUST update /etc/ld.so.conf and rerun ldconfig *or* update
9 # the LD_LIBRARY_PATH environment variable to include /usr/local/lib in
10 # order to compile with SDL_ttf.
11
12 #Linux-dependent right now, modify for platform-independency later
13 CC = gcc
14 DBG = gdb
15 STD = _GNU_SOURCE
16 CFLAGS = `sdl-config --cflags` -I/usr/local/include/SDL
17 LFLAGS = `sdl-config --static-libs` -lSDL_image -lSDL_ttf
18
19 MAIN_OBJ = main.o graphics.o mancala.o
20 TEST_OBJ = ai-test.o mancala.o
21
22 NORMAL = ai.o
23 RECURSE = ai-init.o ai-recurse.o
24 ULTIMATE = ai-init.o ai-ultimate.o
25
26 #'$<' is filename of input, '$@' is filename of output
27 .c.o:
28         $(CC) -c -g$(DBG) -Wall $(CFLAGS) -D$(STD) $<
29 .h.o:
30         $(CC) -c -g$(DBG) -Wall $(CFLAGS) -D$(STD) $<
31
32 all:            $(MAIN_OBJ) $(NORMAL)
33         $(CC) $(MAIN_OBJ) $(NORMAL) $(LFLAGS) -o mancala
34
35 recurse:        $(MAIN_OBJ) $(RECURSE)
36         $(CC) $(MAIN_OBJ) $(RECURSE) $(LFLAGS) -o mancala
37
38 ultimate:       $(MAIN_OBJ) $(ULTIMATE)
39         $(CC) $(MAIN_OBJ) $(ULTIMATE) $(LFLAGS) -o mancala
40
41 ai-test-normal:         $(TEST_OBJ) $(NORMAL)
42         $(CC) $(TEST_OBJ) $(NORMAL) $(LFLAGS) -o ai-test
43
44 ai-test-recurse:        $(TEST_OBJ) $(RECURSE)
45         $(CC) $(TEST_OBJ) $(RECURSE) $(LFLAGS) -o ai-test
46
47 ai-test-ultimate:       $(TEST_OBJ) $(ULTIMATE)
48         $(CC) $(TEST_OBJ) $(ULTIMATE) $(LFLAGS) -o ai-test
49
50 install:        all
51         mkdir /usr/share/pixmaps/mancala
52         cp ../res/*.png /usr/share/pixmaps/mancala
53         cp ./mancala /usr/bin
54
55 uninstall:
56         rm -rf /usr/share/pixmaps/mancala
57         rm /usr/bin/mancala
58
59 clean:
60         rm -f *.o *.core *.swp *~ *.log
61
62 clobber:        clean
63         rm -f mancala ai-test
64
65 distclean:      clobber
66         @echo "No configuration files to distclean yet."
67         @echo "I will do my best to make some! ;-)"
68
69 # End Makefile