target = statbfs bfsbrowser

CC = gcc

%.o: %.c
	$(CC) $(CFLAGS) -c $< -o $@

all: $(target)

statbfs: statbfs.o
	$(CC) $< -o $@

bfsbrowser: bfsbrowser.o
	$(CC) $< -o $@

statbfs.o: statbfs.c btronfs.h

bfsbrowser.o: bfsbrowser.c btronfs.h tad.h

clean:
	\rm -f *~ *.o $(target)
