wmcore: use CC variable.
[dockapps.git] / wmcapshare / Makefile
blob9fd72e87b4eb5858ab3b7aec1aa5f852aabb5ddb
1 CC = gcc
3 bindir = /usr/local/bin
5 OPENOBEX_CONFIG = /usr/local/bin/openobex-config
6 GLIB_CONFIG = pkg-config glib-2.0
8 all: wmcapshare
10 wmcapshare: wmcapshare.o obex_io.o obex_put_common.o
11 $(CC) `$(OPENOBEX_CONFIG) --libs` `$(GLIB_CONFIG) --libs` -o wmcapshare -ldockapp *.o
13 wmcapshare.o: wmcapshare.h wmcapshare.c version.h
14 $(CC) `$(GLIB_CONFIG) --cflags` -c wmcapshare.c
16 obex_io.o: obex_io.c obex_io.h
17 $(CC) `$(GLIB_CONFIG) --cflags` -c obex_io.c
19 obex_put_common.o: obex_put_common.c obex_put_common.h
20 $(CC) `$(GLIB_CONFIG) --cflags` -c obex_put_common.c
22 clean:
23 rm -f *.o wmcapshare
25 install: wmcapshare
26 cp wmcapshare $(bindir)/wmcapshare