40 OBJ = $(SRC:%.c=../build/%.$(OBJ_EXT)) |
40 OBJ = $(SRC:%.c=../build/%.$(OBJ_EXT)) |
41 |
41 |
42 all: ../build/test1 |
42 all: ../build/test1 |
43 |
43 |
44 ../build/test1: $(OBJ) |
44 ../build/test1: $(OBJ) |
45 $(LD) $(LDFLAGS) $(LOFLAGS)../build/test$(APP_EXT) $(OBJ) \ |
45 $(LD) $(LDFLAGS) $(LOFLAGS) ../build/test$(APP_EXT) $(OBJ) \ |
46 ../build/libucx.$(LIB_EXT) |
46 ../build/libucx.$(LIB_EXT) |
47 |
47 |
48 ../build/%.$(OBJ_EXT): %.c ../build |
48 ../build/%.$(OBJ_EXT): %.c ../build |
49 $(CC) $(CFLAGS) -I../ $(COFLAGS)$@ $< |
49 $(CC) $(CFLAGS) -I../ $(COFLAGS) $@ $< |
50 |
50 |
51 ../build: |
51 ../build: |
52 mkdir -p build |
52 mkdir -p build |