]> Pileus Git - ~andy/gtk/commitdiff
Update the Makefile for scribble-xinput
authorTor Lillqvist <tml@iki.fi>
Mon, 3 May 2010 10:44:23 +0000 (13:44 +0300)
committerTor Lillqvist <tml@iki.fi>
Mon, 3 May 2010 10:49:16 +0000 (13:49 +0300)
Don't use GTK_DISABLE_DEPRECATED as scribble-xinput does use
deprecated API. Also, make the CC command line more canonical.

examples/scribble-xinput/Makefile

index 47d24b4c31556cb65abf8087e824c0ebf3a531f3..4907190fdc78ec50d25241dccf0ebbc46491ad86 100644 (file)
@@ -4,11 +4,10 @@ CC = gcc
 CFLAGS = -Wall                         \
        -DG_DISABLE_DEPRECATED          \
        -DGDK_DISABLE_DEPRECATED        \
-       -DGDK_PIXBUF_DISABLE_DEPRECATED \
-       -DGTK_DISABLE_DEPRECATED
+       -DGDK_PIXBUF_DISABLE_DEPRECATED
 
 scribble-xinput: scribble-xinput.c 
-       $(CC) scribble-xinput.c -o scribble-xinput $(CFLAGS) `pkg-config gtk+-2.0 --cflags --libs`
+       $(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0` scribble-xinput.c -o scribble-xinput $(LDFLAGS) `pkg-config --libs gtk+-2.0`
 
 clean: 
        rm -f *.o scribble-xinput