diff options
Diffstat (limited to 'src/libpostexecseccomp/Makefile')
-rw-r--r-- | src/libpostexecseccomp/Makefile | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/src/libpostexecseccomp/Makefile b/src/libpostexecseccomp/Makefile index 5386af58b..62e167b73 100644 --- a/src/libpostexecseccomp/Makefile +++ b/src/libpostexecseccomp/Makefile | |||
@@ -1,24 +1,9 @@ | |||
1 | ROOT = ../.. | 1 | ROOT = ../.. |
2 | -include $(ROOT)/config.mk | 2 | -include $(ROOT)/config.mk |
3 | 3 | ||
4 | H_FILE_LIST = $(sort $(wildcard *.h)) | 4 | SO = libpostexecseccomp.so |
5 | C_FILE_LIST = $(sort $(wildcard *.c)) | 5 | TARGET = $(SO) |
6 | OBJS = $(C_FILE_LIST:.c=.o) | ||
7 | BINOBJS = $(foreach file, $(OBJS), $file) | ||
8 | CFLAGS += -ggdb $(HAVE_FATAL_WARNINGS) -O2 -DVERSION='"$(VERSION)"' -fstack-protector-all -D_FORTIFY_SOURCE=2 -fPIC -Wformat -Wformat-security | ||
9 | LDFLAGS += -pie -fPIE -Wl,-z,relro -Wl,-z,now | ||
10 | 6 | ||
11 | .PHONY: all | 7 | MOD_HDRS = ../include/seccomp.h ../include/rundefs.h |
12 | all: libpostexecseccomp.so | ||
13 | 8 | ||
14 | %.o : %.c $(H_FILE_LIST) ../include/seccomp.h ../include/rundefs.h $(ROOT)/config.mk | 9 | include $(ROOT)/src/so.mk |
15 | $(CC) $(CFLAGS) $(INCLUDE) -c $< -o $@ | ||
16 | |||
17 | libpostexecseccomp.so: $(OBJS) $(ROOT)/config.mk | ||
18 | $(CC) $(LDFLAGS) -shared -fPIC -z relro -o $@ $(OBJS) -ldl | ||
19 | |||
20 | .PHONY: clean | ||
21 | clean:; rm -fr $(OBJS) libpostexecseccomp.so *.plist | ||
22 | |||
23 | .PHONY: distclean | ||
24 | distclean: clean | ||