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