From 2f2654c57f3ff0d963f8ba21d2c944a458204394 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Wed, 14 Nov 2012 18:04:03 +0100 Subject: initial import --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..df0fad2 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +CFLAGS:=-Wall -O2 + +view_cflags:=$(shell pkg-config --cflags glib-2.0 gio-unix-2.0 gdk-pixbuf-2.0) +view_libs:=$(shell pkg-config --libs glib-2.0 gio-unix-2.0 gdk-pixbuf-2.0) -lm + +objs:=view.o + +all: view + +view: $(objs) + $(CC) $(LDFLAGS) -o $@ $+ $(view_libs) + +$(objs): %.o: %.c + $(CC) $(view_cflags) $(CFLAGS) -o $@ -c $< + +clean: + rm -f view *.o + +.PHONY: all clean -- cgit v1.2.3