Make roulette command more realistic (change probability to 1/6).
[vomak.git] / Makefile
blob9b10b38bda3f26c1e524280b771c8b738f73c060
2 CFLAGS = -fPIC -Wall -pipe
4 ifdef DEBUG
5 CFLAGS += -g -DDEBUG -O0
6 else
7 CFLAGS += -O2
8 endif
10 INCLUDES = `pkg-config --cflags glib-2.0`
11 SOCKET_OBJS = socket.o
12 IRC_OBJS = irc.o
14 VOMAK_OBJS = vomak.o $(SOCKET_OBJS) $(IRC_OBJS)
16 -include local.mk
19 all: vomak
21 .SUFFIXES: .c .o .h
23 vomak: $(VOMAK_OBJS)
24 @$(CC) -o vomak $(CFLAGS) $(VOMAK_OBJS) `pkg-config --libs glib-2.0`
25 @echo "Linking vomak"
27 clean:
28 rm -f *.o vomak
30 .c.o: $<.h
31 @$(CC) $(CFLAGS) $(INCLUDES) -c $<
32 @echo "Compiling $<"
34 doc: README
35 rst2html -stg --stylesheet=vomak.css README readme.html