funchook/src/Makefile in contrast-agent-3.11.0 vs funchook/src/Makefile in contrast-agent-3.12.0
- old
+ new
@@ -5,27 +5,27 @@
DISTORM3_DIR = $(top_srcdir)/distorm
VPATH = $(DISTORM3_DIR)/src:$(top_srcdir)/include
CC = gcc
CFLAGS = -g -O2 -Wall -fvisibility=hidden -fPIC -g -I. -I$(top_srcdir)/include -I$(DISTORM3_DIR)/include
-LIBS =
+LIBS = -ldl
LINK_SHARED = $(CC) -shared
#LIBS += -lpsapi
-LDFLAGS += -install_name @rpath/libfunchook.dylib
+#LDFLAGS += -install_name @rpath/libfunchook.dylib
FUNCHOOK_OBJS = \
os_func.o \
os_func_unix.o \
printf_base.o \
funchook.o \
funchook_io.o \
funchook_x86.o \
funchook_unix.o
-#FUNCHOOK_OBJS += funchook_syscall.o
FUNCHOOK_OBJS += funchook_syscall.o
+#FUNCHOOK_OBJS += funchook_syscall.o
DISTORM3_OBJS = \
mnemonics.o \
wstring.o \
textdefs.o \
@@ -41,17 +41,17 @@
funchook_internal.h \
os_func.h
OBJS = $(FUNCHOOK_OBJS) $(DISTORM3_OBJS)
-all: libfunchook.dylib
+all: libfunchook.so
check:
cd ../test && $(MAKE) check
-libfunchook.dylib: $(OBJS)
- $(LINK_SHARED) $(LDFLAGS) -o libfunchook.dylib $(OBJS) $(LIBS)
+libfunchook.so: $(OBJS)
+ $(LINK_SHARED) $(LDFLAGS) -o libfunchook.so $(OBJS) $(LIBS)
funchook.o: funchook.c $(HEADERS)
funchook_linux.o: funchook_linux.c $(HEADERS)
funchook_windows.o: funchook_windows.c $(HEADERS)
funchook_x86.o: funchook_x86.c $(HEADERS)
@@ -62,9 +62,9 @@
# suppress warning: missing braces around initializer [-Wmissing-braces]
insts.o: insts.c
$(CC) $(CFLAGS) -c -o $@ $< -Wno-missing-braces
clean:
- $(RM) libfunchook.dylib $(OBJS)
+ $(RM) libfunchook.so $(OBJS)
Makefile config.h: $(srcdir)/Makefile.in $(srcdir)/config.h.in $(top_builddir)/config.status
cd $(top_builddir) && ./config.status