test/Makefile

changeset 1
20c788d1e278
parent 0
1e4522fddff0
child 9
013c5c4b7e44
equal deleted inserted replaced
0:1e4522fddff0 1:20c788d1e278
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

mercurial