From d49b356a0df3a0053126144177e6f364bef91b34 Mon Sep 17 00:00:00 2001 From: Javier Date: Sat, 7 Feb 2015 16:14:36 +0100 Subject: initial import --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3