ucx/Makefile

changeset 39
3e55bed345f9
parent 33
0bbbb0341606
child 67
6b0c60659652
--- a/ucx/Makefile	Tue Sep 03 12:08:35 2013 +0200
+++ b/ucx/Makefile	Sat Sep 07 14:08:43 2013 +0200
@@ -40,15 +40,15 @@
 SRC += logging.c
 SRC += buffer.c
 
-OBJ = $(SRC:%.c=../build/ucx/%.$(OBJ_EXT))
+OBJ = $(SRC:%.c=../build/ucx/%$(OBJ_EXT))
 
-all: libucx
+all: ../build/ucx ../build/libucx.$(LIB_EXT)
 
-libucx: $(OBJ)
+../build/libucx.$(LIB_EXT): $(OBJ)
 	$(AR) $(ARFLAGS) $(AOFLAGS)../build/libucx.$(LIB_EXT) $(OBJ)
 
-../build/ucx/%.$(OBJ_EXT): %.c ../build/ucx
+../build/ucx/%$(OBJ_EXT): %.c
 	$(CC) $(CFLAGS) $(COFLAGS)$@ $<
 
 ../build/ucx:
-	mkdir -p ../build/ucx
+	$(MKDIR) $(MKDIRFLAGS) ../build/ucx

mercurial