dav/Makefile

changeset 20
6bb9479d9c64
parent 19
18efd2c2973d
child 21
78935b45e2ce
equal deleted inserted replaced
19:18efd2c2973d 20:6bb9479d9c64
26 # POSSIBILITY OF SUCH DAMAGE. 26 # POSSIBILITY OF SUCH DAMAGE.
27 # 27 #
28 28
29 include ../$(CONF).mk 29 include ../$(CONF).mk
30 30
31 CFLAGS += `curl-config --cflags` `/opt/local/bin/pkg-config --cflags openssl libxml-2.0` 31 DAV_CFLAGS = `curl-config --cflags` `pkg-config --cflags openssl libxml-2.0`
32 LDFLAGS += `curl-config --libs` `/opt/local/bin/pkg-config --libs openssl libxml-2.0` 32 DAV_LDFLAGS = `curl-config --libs` `pkg-config --libs openssl libxml-2.0`
33 33
34 SRC = main.c 34 SRC = main.c
35 SRC += utils.c 35 SRC += utils.c
36 SRC += webdav.c 36 SRC += webdav.c
37 SRC += methods.c 37 SRC += methods.c
45 45
46 all: ../build/dav 46 all: ../build/dav
47 47
48 ../build/dav: $(OBJ) 48 ../build/dav: $(OBJ)
49 $(LD) -o ../build/dav$(APP_EXT) $(OBJ) \ 49 $(LD) -o ../build/dav$(APP_EXT) $(OBJ) \
50 ../build/libucx.$(LIB_EXT) $(LDFLAGS) 50 ../build/libucx.$(LIB_EXT) $(LDFLAGS) $(DAV_LDFLAGS)
51 51
52 ../build/tool/%.$(OBJ_EXT): %.c 52 ../build/tool/%.$(OBJ_EXT): %.c
53 $(CC) $(CFLAGS) -I../ -o $@ $< 53 $(CC) $(CFLAGS) $(DAV_CFLAGS) -I../ -o $@ $<
54 54

mercurial