diff -r 1e4522fddff0 -r 20c788d1e278 test/Makefile --- a/test/Makefile Sat Dec 31 14:04:40 2011 +0100 +++ b/test/Makefile Sat Dec 31 15:54:08 2011 +0100 @@ -30,13 +30,13 @@ SRC = main.c -OBJ = $(SRC:%.c=%.$(OBJ_EXT)) +OBJ = $(SRC:%.c=../build/%.$(OBJ_EXT)) -all: test1 +all: ../build/test1 -test1: $(OBJ) - $(LD) $(LDFLAGS) -o test$(APP_EXT) $(OBJ) ../ucx/libucx.a +../build/test1: $(OBJ) + $(LD) $(LDFLAGS) -o ../build/test$(APP_EXT) $(OBJ) ../build/libucx.a -%.$(OBJ_EXT): %.c - $(CC) $(CFLAGS) -I../ -c $< +../build/%.$(OBJ_EXT): %.c + $(CC) $(CFLAGS) -I../ -o $@ -c $<