From 3f871456d4d350b5abdb2b7fdcfedec5743d6db2 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Thu, 13 Dec 2007 16:18:53 +0900 Subject: Use general _SRCS and _OBJS, rather and _C_{SRCS, OBJS} and _S_{SRCS, OBJS} Since we use the implicit ruls for .c and .S, just colelct all sources in the one variable. Signed-off-by: Jeremy Kerr Signed-off-by: Simon Horman --- util_lib/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'util_lib') 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) -- cgit