aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: ed14cc91ac4fdf07e743cdc15300db4ee93d975d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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