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 CONF=gcc |
29 BUILD_ROOT = .. |
30 include ../$(CONF).mk |
30 |
31 include ../cppcheck.mk |
31 include ../config.mk |
32 |
32 |
33 # list of source files |
33 # list of source files |
34 SRC = webdav.c |
34 SRC = webdav.c |
35 SRC += session.c |
35 SRC += session.c |
36 SRC += resource.c |
36 SRC += resource.c |
48 |
48 |
49 ../build/libidav$(LIB_EXT): $(OBJ) |
49 ../build/libidav$(LIB_EXT): $(OBJ) |
50 $(AR) $(ARFLAGS) $(AOFLAGS)../build/libidav$(LIB_EXT) $(OBJ) |
50 $(AR) $(ARFLAGS) $(AOFLAGS)../build/libidav$(LIB_EXT) $(OBJ) |
51 |
51 |
52 ../build/libidav/%$(OBJ_EXT): %.c |
52 ../build/libidav/%$(OBJ_EXT): %.c |
53 $(CC) -I../ucx/ $(CFLAGS) $(DAV_CFLAGS) $(COFLAGS)$@ $< |
53 $(CC) $(CFLAGS) $(DAV_CFLAGS) -I.. -I../ucx -c -o $@ $< |
54 |
54 |
55 cppcheck: $(SRC) |
55 cppcheck: $(SRC) |
56 $(CPPCHECK) $(CPPCHECK_CONFIG) $(CPPCHECK_FLAGS) -I../ucx $+ 2>> ../$(CPPCHECK_LOG) |
56 $(CPPCHECK) $(CPPCHECK_CONFIG) $(CPPCHECK_FLAGS) -I../ucx $+ 2>> ../$(CPPCHECK_LOG) |
57 |
57 |