test/Makefile

changeset 802
16e5b9d32754
parent 797
edbb20b1438d
equal deleted inserted replaced
801:ce97ff16f00e 802:16e5b9d32754
24 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 # POSSIBILITY OF SUCH DAMAGE. 26 # POSSIBILITY OF SUCH DAMAGE.
27 # 27 #
28 28
29 BUILD_ROOT = ..
30
31 include ../config.mk 29 include ../config.mk
32 30
33 TEST_SRC = main.c 31 TEST_SRC = main.c
34 TEST_SRC += test.c 32 TEST_SRC += test.c
35 TEST_SRC += base64.c 33 TEST_SRC += base64.c
42 TEST_TARGET = ../build/runtests$(APP_EXT) 40 TEST_TARGET = ../build/runtests$(APP_EXT)
43 41
44 all: $(TEST_TARGET) 42 all: $(TEST_TARGET)
45 43
46 $(TEST_TARGET): $(TEST_OBJ) ../build/lib/libidav$(LIB_EXT) 44 $(TEST_TARGET): $(TEST_OBJ) ../build/lib/libidav$(LIB_EXT)
47 $(LD) -o $(TEST_TARGET) $(TEST_OBJ) \ 45 $(CC) -o $(TEST_TARGET) $(TEST_OBJ) \
48 ../build/lib/libidav$(LIB_EXT) ../build/lib/libucx$(LIB_EXT) \ 46 ../build/lib/libidav$(LIB_EXT) ../build/lib/libucx$(LIB_EXT) \
49 $(LDFLAGS) $(DAV_LDFLAGS) 47 $(LDFLAGS) $(DAV_LDFLAGS)
50 48
51 ../build/test/%$(OBJ_EXT): %.c 49 ../build/test/%$(OBJ_EXT): %.c
52 $(CC) $(CFLAGS) $(DAV_CFLAGS) -I../ucx -I../ -c -o $@ $< 50 $(CC) $(CFLAGS) $(DAV_CFLAGS) -I../ucx -I../ -c -o $@ $<

mercurial