refraction part 1
[mancala] / src / launcher / Makefile
1 # GNU Makefile -- Makefile
2 # 2009 Reto Zingg
3
4
5 CC = gcc
6 # DBG = gdb
7 # STD = _GNU_SOURCE
8 # 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/
9 # LFLAGS = `sdl-config --static-libs ` -lSDL_image -lSDL_ttf -lSDL_mixer `pkg-config hildon-1 --libs` `pkg-config --libs  libosso` -lhgw
10
11 # MAIN_OBJ = main.o graphics.o mancala.o sounds.o play.o
12 # MAIN_OBJ = graphics.o mancala.o sounds.o play.o callbacks.o
13 # TEST_OBJ = ai-test.o mancala.o
14
15 # NORMAL = ai.o
16 # RECURSE = ai-init.o ai-recurse.o
17 # ULTIMATE = ai-init.o ai-ultimate.o
18
19 #'$<' is filename of input, '$@' is filename of output
20 # .c.o:
21 #       $(CC) -c -g$(DBG) -Wall $(CFLAGS) -D$(STD) $<
22 # .h.o:
23 #       $(CC) -c -g$(DBG) -Wall $(CFLAGS) -D$(STD) $<
24
25 all:
26         $(CC) mancala-launcher.c -o mancala-launcher
27
28 install:        all
29         mkdir -p $(DESTDIR)/home/opt/mancala/bin/
30         cp ./mancala-launcher $(DESTDIR)/home/opt/mancala/bin/mancala-launcher
31
32 uninstall:
33         rm -rf $(DESTDIR)/home/opt/mancala/mancala-launcher
34
35 clean:
36         rm -f *.o *.core *.swp *~ *.log
37
38 clobber:        clean
39         rm -f mancala-launcher
40
41 distclean:      clobber
42         @echo "No configuration files to distclean yet."
43         @echo "I will do my best to make some! ;-)"
44
45 # End Makefile