summaryrefslogtreecommitdiff
path: root/util_lib/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'util_lib/Makefile')
-rw-r--r--util_lib/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/util_lib/Makefile b/util_lib/Makefile
index f7a7d82..35ee9e7 100644
--- a/util_lib/Makefile
+++ b/util_lib/Makefile
@@ -1,11 +1,12 @@
#
# Utility function library
#
-UTIL_LIB_SRCS:=util_lib/compute_ip_checksum.c
-UTIL_LIB_SRCS+=util_lib/sha256.c
-UTIL_LIB_OBJS:=$(patsubst %.c, %.o, $(UTIL_LIB_SRCS))
-UTIL_LIB_DEPS:=$(patsubst %.c, %.d, $(UTIL_LIB_SRCS))
-UTIL_LIB:=libutil.a
+UTIL_LIB_SRCS +=
+UTIL_LIB_SRCS += util_lib/compute_ip_checksum.c
+UTIL_LIB_SRCS += util_lib/sha256.c
+UTIL_LIB_OBJS =$(call objify, $(UTIL_LIB_SRCS))
+UTIL_LIB_DEPS =$(call depify, $(UTIL_LIB_OBJS))
+UTIL_LIB = libutil.a
-include $(UTIL_LIB_DEPS)