aboutsummaryrefslogtreecommitdiffstats
path: root/src/libpostexecseccomp
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2022-10-12 23:51:24 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2022-11-21 17:11:23 -0300
commit87db1072092f388a3ff260736e77d168164bd398 (patch)
treeaabf15c5eb21a981c459e681f4a55b737dfce268 /src/libpostexecseccomp
parentmakefiles: equalize object dependencies in program targets (diff)
downloadfirejail-87db1072092f388a3ff260736e77d168164bd398.tar.gz
firejail-87db1072092f388a3ff260736e77d168164bd398.tar.zst
firejail-87db1072092f388a3ff260736e77d168164bd398.zip
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' \ '{}')\" >'{}'"
Diffstat (limited to 'src/libpostexecseccomp')
-rw-r--r--src/libpostexecseccomp/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libpostexecseccomp/Makefile b/src/libpostexecseccomp/Makefile
index 42b96c0e6..284e0973b 100644
--- a/src/libpostexecseccomp/Makefile
+++ b/src/libpostexecseccomp/Makefile
@@ -1,16 +1,16 @@
1ROOT = ../.. 1ROOT = ../..
2-include $(ROOT)/config.mk 2-include $(ROOT)/config.mk
3 3
4H_FILE_LIST = $(sort $(wildcard *.h)) 4HDRS = $(sort $(wildcard *.h))
5C_FILE_LIST = $(sort $(wildcard *.c)) 5SRCS = $(sort $(wildcard *.c))
6OBJS = $(C_FILE_LIST:.c=.o) 6OBJS = $(SRCS:.c=.o)
7CFLAGS += -ggdb $(HAVE_FATAL_WARNINGS) -O2 -DVERSION='"$(VERSION)"' -fstack-protector-all -D_FORTIFY_SOURCE=2 -fPIC -Wformat -Wformat-security 7CFLAGS += -ggdb $(HAVE_FATAL_WARNINGS) -O2 -DVERSION='"$(VERSION)"' -fstack-protector-all -D_FORTIFY_SOURCE=2 -fPIC -Wformat -Wformat-security
8LDFLAGS += -pie -fPIE -Wl,-z,relro -Wl,-z,now 8LDFLAGS += -pie -fPIE -Wl,-z,relro -Wl,-z,now
9 9
10.PHONY: all 10.PHONY: all
11all: libpostexecseccomp.so 11all: libpostexecseccomp.so
12 12
13%.o : %.c $(H_FILE_LIST) ../include/seccomp.h ../include/rundefs.h $(ROOT)/config.mk 13%.o : %.c $(HDRS) ../include/seccomp.h ../include/rundefs.h $(ROOT)/config.mk
14 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ 14 $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@
15 15
16libpostexecseccomp.so: $(OBJS) $(ROOT)/config.mk 16libpostexecseccomp.so: $(OBJS) $(ROOT)/config.mk