28 |
28 |
29 include ../$(CONF).mk |
29 include ../$(CONF).mk |
30 |
30 |
31 SRC = main.c |
31 SRC = main.c |
32 |
32 |
33 OBJ = $(SRC:%.c=%.$(OBJ_EXT)) |
33 OBJ = $(SRC:%.c=../build/%.$(OBJ_EXT)) |
34 |
34 |
35 all: test1 |
35 all: ../build/test1 |
36 |
36 |
37 test1: $(OBJ) |
37 ../build/test1: $(OBJ) |
38 $(LD) $(LDFLAGS) -o test$(APP_EXT) $(OBJ) ../ucx/libucx.a |
38 $(LD) $(LDFLAGS) -o ../build/test$(APP_EXT) $(OBJ) ../build/libucx.a |
39 |
39 |
40 %.$(OBJ_EXT): %.c |
40 ../build/%.$(OBJ_EXT): %.c |
41 $(CC) $(CFLAGS) -I../ -c $< |
41 $(CC) $(CFLAGS) -I../ -o $@ -c $< |
42 |
42 |