aboutsummaryrefslogtreecommitdiff
path: root/examples/Makefile.static
blob: 155afec558ff41909b62b1bfc3de3a7b87e97092 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CC=gcc
CFLAGS=-O0 -g -Wall -I/usr/include -I/usr/X11R6/include `pkg-config --cflags glib-2.0 gconf-2.0 gthread-2.0 hildon-1`
LDFLAGS=-pthread -L/usr/X11R6/lib -lm `pkg-config --libs glib-2.0 gthread-2.0 hildon-1`

EXAMPLES = $(patsubst %.c,%,$(wildcard *.c))

all: $(EXAMPLES)


%:%.c
	gcc $(LDFLAGS) $(CFLAGS) -o $@ $<


clean:
	rm -f *example
	rm -f *example-[1-9]