test/Makefile

changeset 69
fb59270b1de3
parent 60
abae4669fba7
child 103
08018864fb91
equal deleted inserted replaced
68:88dbea299440 69:fb59270b1de3
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

mercurial