ceph/branches/ebofs/crush/Makefile
sageweil dc48f25847 branch for ebofs changes
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@2100 29311d96-e01e-0410-9327-a35deaab8ce9
2007-11-21 00:32:00 +00:00

31 lines
405 B
Makefile

CC = gcc
CFLAGS = -Wall
CFLAGS += -g
#CFLAGS += -O3
LD = ld
RM = rm
all: depend libcrush.o test
clean:
rm -f *.o libcrush.o
%.o: %.c
${CC} ${CFLAGS} -c $< -o $@
libcrush.o: builder.o crush.o mapper.o
$(LD) -i -o $@ $^
test: test.c libcrush.o
$(CC) ${CFLAGS} -lm $^ -o $@
.depend:
touch .depend
depend:
$(RM) .depend
makedepend -f- -- $(CFLAGS) -- *.c > .depend 2>/dev/null
include .depend