-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (21 loc) · 1.71 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
all: lib/libsrc_tracer.a
lib/libsrc_tracer.a: lib/src_tracer/trace_buf.o lib/src_tracer/common.o lib/src_tracer/retrace_mode.o lib/src_tracer/mmap_to_trace.o
ar rcs $@ $^
lib/src_tracer/trace_buf.i: lib/src_tracer/trace_buf.c lib/src_tracer/syscalls.h lib/src_tracer/sync_uffd.h include/src_tracer/constants.h include/src_tracer/trace_elem.h include/src_tracer/trace_buf.h include/src_tracer/mode_common.h include/src_tracer/trace_mode.h include/src_tracer/ghost.h lib/src_tracer/sync_futex.h
gcc -E -Wall -fPIC -Iinclude -c -nostdlib -O0 -o $@ $<
lib/src_tracer/trace_buf.o: lib/src_tracer/trace_buf.i
gcc -Wall -fPIC -c -nostdlib -O3 -o $@ $<
lib/src_tracer/common.i: lib/src_tracer/common.c include/src_tracer/constants.h include/src_tracer/mode_common.h include/src_tracer/ghost.h
gcc -E -Wall -fPIC -Iinclude -c -nostdlib -O0 -o $@ $<
lib/src_tracer/common.o: lib/src_tracer/common.i
gcc -Wall -fPIC -c -nostdlib -O3 -o $@ $<
lib/src_tracer/retrace_mode.i: lib/src_tracer/retrace_mode.c include/src_tracer/constants.h include/src_tracer/mode_common.h include/src_tracer/retrace_mode.h include/src_tracer/ghost.h
gcc -E -Wall -fPIC -Iinclude -c -nostdlib -O0 -o $@ $<
lib/src_tracer/retrace_mode.o: lib/src_tracer/retrace_mode.i
gcc -Wall -fPIC -c -nostdlib -O3 -o $@ $<
lib/src_tracer/mmap_to_trace.i: lib/src_tracer/mmap_to_trace.c lib/src_tracer/syscalls.h lib/src_tracer/sync_uffd.h include/src_tracer/constants.h include/src_tracer/trace_buf.h lib/src_tracer/sync_futex.h
gcc -E -Wall -fPIC -Iinclude -c -nostdlib -O0 -o $@ $<
lib/src_tracer/mmap_to_trace.o: lib/src_tracer/mmap_to_trace.i
gcc -Wall -fPIC -c -nostdlib -O3 -o $@ $<
clean:
rm -f lib/*.o lib/*.i lib/src_tracer/*.o lib/src_tracer/*.i lib/libsrc_tracer.a