summaryrefslogtreecommitdiff
path: root/examples/tictactoe/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tictactoe/Makefile')
-rw-r--r--examples/tictactoe/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/tictactoe/Makefile b/examples/tictactoe/Makefile
index 5fe6eb356..f9b2cb03e 100644
--- a/examples/tictactoe/Makefile
+++ b/examples/tictactoe/Makefile
@@ -1,14 +1,20 @@
CC = gcc
+CFLAGS = -Wall \
+ -DG_DISABLE_DEPRECATED \
+ -DGDK_DISABLE_DEPRECATED \
+ -DGDK_PIXBUF_DISABLE_DEPRECATED \
+ -DGTK_DISABLE_DEPRECATED
+
ttt_test: tictactoe.o ttt_test.o
$(CC) ttt_test.o tictactoe.o -o ttt_test `pkg-config --libs gtk+-2.0`
ttt_test.o: ttt_test.c tictactoe.h
- $(CC) `pkg-config --cflags gtk+-2.0` -c ttt_test.c -o ttt_test.o
+ $(CC) -c ttt_test.c -o ttt_test.o $(CFLAGS) `pkg-config gtk+-2.0 --cflags`
tictactoe.o: tictactoe.c tictactoe.h
- $(CC) `pkg-config --cflags gtk+-2.0` -c tictactoe.c -o tictactoe.o
+ $(CC) -c tictactoe.c -o tictactoe.o $(CFLAGS) `pkg-config gtk+-2.0 --cflags`
clean:
rm -f *.o ttt_test