diff options
author | Javier S. Pedro <javier@javispedro.com> | 2012-11-14 18:04:03 +0100 |
---|---|---|
committer | Javier S. Pedro <javier@javispedro.com> | 2012-11-14 18:04:03 +0100 |
commit | 2f2654c57f3ff0d963f8ba21d2c944a458204394 (patch) | |
tree | bf6818f0b4018050b0c60d1d34e609cafc49d88c /Makefile | |
download | vteimg-2f2654c57f3ff0d963f8ba21d2c944a458204394.tar.gz vteimg-2f2654c57f3ff0d963f8ba21d2c944a458204394.zip |
initial import
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
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 |