diff options
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 |