From 2dd5cf430edaae01594d566c9f27d780c3ffb4ef Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Sun, 26 Apr 2015 21:43:42 -0300 Subject: Initial commit --- Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ed14cc9 --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +TARGET=fusewrapper +CC=clang + +# Agregado glib para el block walker +CFLAGS+= -O0 -ansi -Werror -Wall -Wdeclaration-after-statement \ + -Wbad-function-cast -Wstrict-prototypes -Wmissing-declarations \ + -Wmissing-prototypes -Wno-unused-parameter \ + -Wunused-variable -g \ + `pkg-config --cflags fuse glib-2.0` +LDFLAGS=`pkg-config --libs fuse glib-2.0` + +SOURCES=$(shell echo *.c) +OBJECTS=$(SOURCES:.c=.o) + +all: $(TARGET) + +$(TARGET): $(OBJECTS) + $(CC) $^ -o $@ $(LDFLAGS) + +clean: + rm -f $(TARGET) $(OBJECTS) .depend *~ + +.depend: *.[ch] + $(CC) -MM `pkg-config --cflags fuse glib-2.0` $(SOURCES) >.depend + +-include .depend + +.PHONY: clean all -- cgit v1.2.3-70-g09d2