Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1426)

Unified Diff: sandbox/linux/seccomp_bpf/Makefile

Issue 10458040: Initial snapshot of the new BPF-enabled seccomp sandbox. This code is (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sandbox/linux/seccomp_bpf/demo.cc » ('j') | sandbox/linux/seccomp_bpf/sandbox_bpf.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/seccomp_bpf/Makefile
===================================================================
--- sandbox/linux/seccomp_bpf/Makefile (revision 0)
+++ sandbox/linux/seccomp_bpf/Makefile (revision 0)
@@ -0,0 +1,31 @@
+CFLAGS = -g -O3 -Wall -Werror -Wextra -Wno-missing-field-initializers \
+ -Wno-unused-parameter -Wno-unused-value -Wno-array-bounds -fPIC -I.
+CPPFLAGS = -D_GNU_SOURCE -DSECCOMP_BPF_STANDALONE -iquote ../../..
+LDFLAGS = -g -lpthread
+DEPFLAGS = -MMD -MF .$@.d
+MODS := demo sandbox_bpf util
+OBJS64 := $(shell echo ${MODS} | xargs -n 1 | sed -e 's/$$/.o64/')
+OBJS32 := $(shell echo ${MODS} | xargs -n 1 | sed -e 's/$$/.o32/')
+ALL_OBJS = $(OBJS32) $(OBJS64)
+DEP_FILES = $(wildcard $(foreach f,$(ALL_OBJS),.$(f).d))
+
+.SUFFIXES: .o64 .o32
+
+all: demo32 demo64
+
+clean:
+ $(RM) demo32 demo64
+ $(RM) *.o *.o32 *.o64 .*.d
+ $(RM) core core.* vgcore vgcore.* strace.log*
+
+-include $(DEP_FILES)
+
+demo32: ${OBJS32}
+ ${CXX} -m32 -o $@ $+ ${LDFLAGS}
+demo64: ${OBJS64}
+ ${CXX} -m64 -o $@ $+ ${LDFLAGS}
+
+.cc.o32:
+ ${CXX} -m32 ${CFLAGS} ${CPPFLAGS} ${DEPFLAGS} -c -o $@ $<
+.cc.o64:
+ ${CXX} -m64 ${CFLAGS} ${CPPFLAGS} ${DEPFLAGS} -c -o $@ $<
Property changes on: sandbox/linux/seccomp_bpf/Makefile
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « no previous file | sandbox/linux/seccomp_bpf/demo.cc » ('j') | sandbox/linux/seccomp_bpf/sandbox_bpf.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698