diff options
author | Javier <dev.git@javispedro.com> | 2015-02-07 16:14:36 +0100 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2015-02-07 16:14:36 +0100 |
commit | d49b356a0df3a0053126144177e6f364bef91b34 (patch) | |
tree | 325ef7f676f604c96345e119e23c5bc5a3d71d59 /Makefile | |
download | gplay-d49b356a0df3a0053126144177e6f364bef91b34.tar.gz gplay-d49b356a0df3a0053126144177e6f364bef91b34.zip |
initial import
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9a0e338 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +CFLAGS?=-Wall -ggdb -O2 + +gplay_pkgs:=gstreamer-video-1.0 gtk+-2.0 +gplay_cflags:=$(shell pkg-config --cflags $(gplay_pkgs)) +gplay_libs:=$(shell pkg-config --libs $(gplay_pkgs)) + +gplay_objs:=gplay.o + +all: gplay + +gplay: $(gplay_objs) + $(CC) $(LDFLAGS) -o $@ $+ $(gplay_libs) + +$(gplay_objs): %.o: %.c + $(CC) $(gplay_cflags) $(CFLAGS) -o $@ -c $< + +clean: + rm -f gplay *.o |