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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 CFLAGS = -g -O3 -Wall -Werror -Wextra -Wno-missing-field-initializers \
2 -Wno-unused-parameter -Wno-unused-value -Wno-array-bounds -fPIC -I.
3 CPPFLAGS = -D_GNU_SOURCE
4 LDFLAGS = -g -lpthread
5 DEPFLAGS = -MMD -MF .$@.d
6 MODS := demo sandbox_bpf util
7 OBJS64 := $(shell echo ${MODS} | xargs -n 1 | sed -e 's/$$/.o64/')
8 OBJS32 := $(shell echo ${MODS} | xargs -n 1 | sed -e 's/$$/.o32/')
9 ALL_OBJS = $(OBJS32) $(OBJS64)
10 DEP_FILES = $(wildcard $(foreach f,$(ALL_OBJS),.$(f).d))
11
12 .SUFFIXES: .o64 .o32
13
14 all: demo32 demo64
15
16 clean:
17 $(RM) demo32 demo64
18 $(RM) *.o *.o32 *.o64 .*.d
19 $(RM) core core.* vgcore vgcore.* strace.log*
20
21 -include $(DEP_FILES)
22
23 demo32: ${OBJS32}
24 ${CXX} -m32 -o $@ $+ ${LDFLAGS}
25 demo64: ${OBJS64}
26 ${CXX} -m64 -o $@ $+ ${LDFLAGS}
27
28 .cc.o32:
29 ${CXX} -m32 ${CFLAGS} ${CPPFLAGS} ${DEPFLAGS} -c -o $@ $<
30 .cc.o64:
31 ${CXX} -m64 ${CFLAGS} ${CPPFLAGS} ${DEPFLAGS} -c -o $@ $<
OLDNEW
« 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