From 87db1072092f388a3ff260736e77d168164bd398 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Wed, 12 Oct 2022 23:51:24 -0300 Subject: makefiles: rename H_FILE_LIST and C_FILE_LIST To HDRS and SRCS, respectively. To be more consistent with the OBJS variable. Misc: These names also appear to be more common from the makefiles that I've seen. Commands used to search and replace: git grep -IFlz -e H_FILE_LIST -e C_FILE_LIST -- src | xargs -0 -I '{}' sh -c "printf '%s\n' \"\$(sed \ -e 's/^H_FILE_LIST *=/HDRS =/' \ -e 's/\$(H_FILE_LIST)/\$(HDRS)/g' \ -e 's/^C_FILE_LIST *=/SRCS =/' \ -e 's/\$(C_FILE_LIST:/\$(SRCS:/g' \ '{}')\" >'{}'" --- src/common.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/common.mk') diff --git a/src/common.mk b/src/common.mk index 30ba2b494..07082e183 100644 --- a/src/common.mk +++ b/src/common.mk @@ -2,9 +2,9 @@ # # Note: $(ROOT)/config.mk must be included before this file. -H_FILE_LIST = $(sort $(wildcard *.h)) -C_FILE_LIST = $(sort $(wildcard *.c)) -OBJS = $(C_FILE_LIST:.c=.o) +HDRS = $(sort $(wildcard *.h)) +SRCS = $(sort $(wildcard *.c)) +OBJS = $(SRCS:.c=.o) CFLAGS += -ggdb $(HAVE_FATAL_WARNINGS) -O2 -DVERSION='"$(VERSION)"' $(HAVE_GCOV) CFLAGS += -DPREFIX='"$(prefix)"' -DSYSCONFDIR='"$(sysconfdir)/firejail"' -DLIBDIR='"$(libdir)"' -DBINDIR='"$(bindir)"' -DVARDIR='"/var/lib/firejail"' -- cgit v1.2.3-70-g09d2