-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile.am
60 lines (48 loc) · 1.14 KB
/
Makefile.am
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
BHOOK_SRC = \
src/ELFManager.cpp \
src/AsmHelper.cpp \
src/BinaryFile.cpp \
src/HookImpl.cpp \
src/HookManager.cpp \
src/FaultUnit.cpp \
src/Message.cpp \
src/Core.cpp \
src/bhook.cpp
BHOOK_INCLUDE = \
include/elfdef.h \
include/ELFManager.h \
include/AsmHelper.h \
include/BinaryFile.h \
include/HookImpl.h \
include/HookManager.h \
include/FaultUnit.h \
include/Message.h \
include/Core.h \
include/bhook.h \
include/common.h
BHOOK_BIN_IN = \
scripts/bhook.in
BHOOK_BIN = \
scripts/bhook
BHOOK_TEST = \
test/disk/* \
test/memory/* \
test/net/* \
test/program/* \
test/system/* \
test/unittest/*
EXTRA_DIST = $(BHOOK_INCLUDE)
EXTRA_DIST += $(BHOOK_BIN_IN)
EXTRA_DIST += $(BHOOK_TEST)
#DIST_SUBDIRS = src include preload script
INCLUDES = -I$(top_srcdir)/include
lib_LIBRARIES = libbhook.a
libbhook_a_SOURCES = $(BHOOK_SRC)
include_HEADERS = include/bhook.h
moduledir = $(prefix)/so
module_PROGRAMS = bhook_main.so
bhook_main_so_SOURCES = $(BHOOK_SRC)
bhook_main_so_CPPFLAGS = -fPIC
bhook_main_so_LDFLAGS = -shared -ldl
SUBDIRS = preload/disk preload/memory preload/net
bin_SCRIPTS = $(BHOOK_BIN)