2011-10-23 17:05:13 +02:00
|
|
|
# -*- makefile -*-
|
|
|
|
|
|
|
|
dir := util
|
|
|
|
extra_cflags += -I$(srcdir)/$(dir)
|
|
|
|
|
2012-11-24 14:43:42 +01:00
|
|
|
libutil_c_srcs := $(dir)/xutil.c $(dir)/error_util.c $(dir)/hex-escape.c \
|
2014-03-29 18:53:17 +01:00
|
|
|
$(dir)/string-util.c $(dir)/talloc-extra.c $(dir)/zlib-extra.c \
|
|
|
|
$(dir)/util.c
|
2011-10-23 17:05:13 +02:00
|
|
|
|
|
|
|
libutil_modules := $(libutil_c_srcs:.c=.o)
|
|
|
|
|
|
|
|
$(dir)/libutil.a: $(libutil_modules)
|
|
|
|
$(call quiet,AR) rcs $@ $^
|
2011-11-26 18:55:07 +01:00
|
|
|
|
2012-01-15 21:20:42 +01:00
|
|
|
SRCS := $(SRCS) $(libutil_c_srcs)
|
2011-12-12 16:54:16 +01:00
|
|
|
CLEAN := $(CLEAN) $(libutil_modules) $(dir)/libutil.a
|