dav/Makefile

changeset 5
88625853ae74
parent 2
f7e408d98a83
child 11
5db6178d8b58
equal deleted inserted replaced
4:ae5a98f0545c 5:88625853ae74
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 += `xml2-config --cflags` 31 CFLAGS += `curl-config --cflags` `pkg-config --cflags openssl libxml-2.0`
32 LDFLAGS += `curl-config --libs` `xml2-config --libs` 32 LDFLAGS += `curl-config --libs` `pkg-config --libs openssl libxml-2.0`
33 33
34 SRC = main.c 34 SRC = main.c
35 SRC += propfind.c
36 SRC += utils.c 35 SRC += utils.c
36 SRC += webdav.c
37 SRC += methods.c
38 SRC += config.c
39 SRC += crypto.c
37 40
38 41
39 OBJ = $(SRC:%.c=../build/%.$(OBJ_EXT)) 42 OBJ = $(SRC:%.c=../build/tool/%.$(OBJ_EXT))
40 43
41 all: ../build/dav 44 all: ../build/dav
42 45
43 ../build/dav: $(OBJ) 46 ../build/dav: $(OBJ)
44 $(LD) -o ../build/dav$(APP_EXT) $(OBJ) \ 47 $(LD) -o ../build/dav$(APP_EXT) $(OBJ) \
45 ../build/libucx.$(LIB_EXT) $(LDFLAGS) 48 ../build/libucx.$(LIB_EXT) $(LDFLAGS)
46 49
47 ../build/%.$(OBJ_EXT): %.c ../build 50 ../build/tool/%.$(OBJ_EXT): %.c
48 $(CC) $(CFLAGS) -I../ -o $@ $< 51 $(CC) $(CFLAGS) -I../ -o $@ $<
49 52
50 ../build:
51 mkdir -p build

mercurial