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) -o ../build/test$(APP_EXT) $(OBJ) ../build/libucx.a |
45 $(LD) $(LDFLAGS) $(LOFLAGS)../build/test$(APP_EXT) $(OBJ) \ |
|
46 ../build/libucx.$(LIB_EXT) |
46 |
47 |
47 ../build/%.$(OBJ_EXT): %.c ../build |
48 ../build/%.$(OBJ_EXT): %.c ../build |
48 $(CC) $(CFLAGS) -I../ -o $@ -c $< |
49 $(CC) $(CFLAGS) -I../ $(COFLAGS)$@ $< |
49 |
50 |
50 ../build: |
51 ../build: |
51 mkdir -p build |
52 mkdir -p build |