test/Makefile

changeset 1
20c788d1e278
parent 0
1e4522fddff0
child 9
013c5c4b7e44
--- 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 $<
 

mercurial