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

Side by Side Diff: makefile

Issue 8596009: Add test for patching a system call instruction (Closed) Base URL: https://seccompsandbox.googlecode.com/svn/trunk
Patch Set: Add comment Created 9 years, 1 month 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
« no previous file with comments | « library.cc ('k') | seccomp.gyp » ('j') | tests/test_patching.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 CFLAGS = -g -O0 -Wall -Werror -Wextra -Wno-missing-field-initializers \ 1 CFLAGS = -g -O0 -Wall -Werror -Wextra -Wno-missing-field-initializers \
2 -Wno-unused-parameter -I. 2 -Wno-unused-parameter -I.
3 LDFLAGS = -g 3 LDFLAGS = -g
4 CPPFLAGS = 4 CPPFLAGS =
5 DEPFLAGS = -MMD -MF $@.d 5 DEPFLAGS = -MMD -MF $@.d
6 MODS := allocator preload library debug maps x86_decode securemem sandbox \ 6 MODS := allocator preload library debug maps x86_decode securemem sandbox \
7 syscall_entrypoint system_call_table \ 7 syscall_entrypoint system_call_table \
8 trusted_thread trusted_thread_asm trusted_process \ 8 trusted_thread trusted_thread_asm trusted_process \
9 access exit fault_handler_asm clone \ 9 access exit fault_handler_asm clone \
10 getpid gettid ioctl ipc madvise mmap mprotect \ 10 getpid gettid ioctl ipc madvise mmap mprotect \
11 munmap open prctl reference_trusted_thread sigaction sigprocmask \ 11 munmap open prctl reference_trusted_thread sigaction sigprocmask \
12 socketcall stat tls_setup tls_setup_helper 12 socketcall stat tls_setup tls_setup_helper
13 TEST_MODS := \ 13 TEST_MODS := \
14 tests/clone_test_helper \ 14 tests/clone_test_helper \
15 tests/test_runner \ 15 tests/test_runner \
16 tests/test_patching \
17 tests/test_patching_input \
16 tests/test_syscalls 18 tests/test_syscalls
17 OBJS64 := $(shell echo ${MODS} | xargs -n 1 | sed -e 's/$$/.o64/') 19 OBJS64 := $(shell echo ${MODS} | xargs -n 1 | sed -e 's/$$/.o64/')
18 OBJS32 := $(shell echo ${MODS} | xargs -n 1 | sed -e 's/$$/.o32/') 20 OBJS32 := $(shell echo ${MODS} | xargs -n 1 | sed -e 's/$$/.o32/')
19 TEST_OBJS64 := $(shell echo ${TEST_MODS} | xargs -n 1 | sed -e 's/$$/.o64/') 21 TEST_OBJS64 := $(shell echo ${TEST_MODS} | xargs -n 1 | sed -e 's/$$/.o64/')
20 TEST_OBJS32 := $(shell echo ${TEST_MODS} | xargs -n 1 | sed -e 's/$$/.o32/') 22 TEST_OBJS32 := $(shell echo ${TEST_MODS} | xargs -n 1 | sed -e 's/$$/.o32/')
21 ALL_OBJS = $(OBJS32) $(OBJS64) \ 23 ALL_OBJS = $(OBJS32) $(OBJS64) \
22 $(TEST_OBJS32) $(TEST_OBJS64) \ 24 $(TEST_OBJS32) $(TEST_OBJS64) \
23 timestats.o playground.o 25 timestats.o playground.o
24 DEP_FILES = $(wildcard $(foreach f,$(ALL_OBJS),$(f).d)) 26 DEP_FILES = $(wildcard $(foreach f,$(ALL_OBJS),$(f).d))
25 27
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 118
117 .cc.o32: 119 .cc.o32:
118 ${CXX} ${CFLAGS} ${CPPFLAGS} ${DEPFLAGS} -m32 -fPIC -c -o $@ $< 120 ${CXX} ${CFLAGS} ${CPPFLAGS} ${DEPFLAGS} -m32 -fPIC -c -o $@ $<
119 121
120 .c.o32: 122 .c.o32:
121 ${CC} ${CFLAGS} ${CPPFLAGS} ${DEPFLAGS} -m32 --std=gnu99 -fPIC \ 123 ${CC} ${CFLAGS} ${CPPFLAGS} ${DEPFLAGS} -m32 --std=gnu99 -fPIC \
122 -c -o $@ $< 124 -c -o $@ $<
123 125
124 .S.o32: 126 .S.o32:
125 ${CC} ${CFLAGS} ${CPPFLAGS} ${DEPFLAGS} -m32 -c -o $@ $< 127 ${CC} ${CFLAGS} ${CPPFLAGS} ${DEPFLAGS} -m32 -c -o $@ $<
OLDNEW
« no previous file with comments | « library.cc ('k') | seccomp.gyp » ('j') | tests/test_patching.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698