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