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/libtracelog/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libtracelog') diff --git a/src/libtracelog/Makefile b/src/libtracelog/Makefile index 55ea9b71a..540d2a367 100644 --- a/src/libtracelog/Makefile +++ b/src/libtracelog/Makefile @@ -1,16 +1,16 @@ ROOT = ../.. -include $(ROOT)/config.mk -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)"' -fstack-protector-all -D_FORTIFY_SOURCE=2 -fPIC -Wformat -Wformat-security LDFLAGS += -pie -fPIE -Wl,-z,relro -Wl,-z,now .PHONY: all all: libtracelog.so -%.o : %.c $(H_FILE_LIST) ../include/rundefs.h $(ROOT)/config.mk +%.o : %.c $(HDRS) ../include/rundefs.h $(ROOT)/config.mk $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ libtracelog.so: $(OBJS) $(ROOT)/config.mk -- cgit v1.2.3-54-g00ecf