Sha256: 1e5653f170d38ea19956b500567c4b3d78e1bca1823a3de5b060a6730fbea1b7

Contents?: true

Size: 1.48 KB

Versions: 80

Compression:

Stored size: 1.48 KB

Contents

srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = @top_builddir@

CC = @CC@
AS = @CC@ -c
OBJS = test_main.o @FUNCHOOK_CPU@_test.o
CFLAGS += -O2 -g -I$(srcdir)/../include
PIC_CFLAGS = @PIC_CFLAGS@
LIBS = -L$(top_builddir)/src -lfunchook -Wl,-rpath,$(top_builddir)/src -L. -lfunchook_test -Wl,-rpath,.
LINK_SHARED = @LINK_SHARED@
EXEEXT = @EXEEXT@
DLLTOOL = $(firstword $(CC:gcc=dlltool))
SO_OBJS = $(srcdir)/libfunchook_test.c $(srcdir)/libfunchook_test2.c
@IF_WIN32@LDFLAGS += -Wl,--out-implib,funchook_test.lib
@IF_WIN32@FUNCHOOK_TEST_LIB = funchook_test_exe.lib
@IF_OSX@LDFLAGS += -Wl,-undefined,dynamic_lookup

VPATH = $(srcdir):../src

all: funchook_test$(EXEEXT)

test: funchook_test$(EXEEXT)
	@IF_WIN32@ cmp -s $(top_builddir)/src/funchook.dll funchook.dll || cp $(top_builddir)/src/funchook.dll funchook.dll
	./funchook_test$(EXEEXT)

funchook_test$(EXEEXT): $(OBJS) @LIBFUNCHOOK_SO@ libfunchook_test.so
	$(CC) -o funchook_test$(EXEEXT) $(OBJS) $(LIBS)

libfunchook_test.so: $(SO_OBJS) $(FUNCHOOK_TEST_LIB)
	$(LINK_SHARED) $(LDFLAGS) $(PIC_CFLAGS) $(CFLAGS) -o libfunchook_test.so $(SO_OBJS) $(FUNCHOOK_TEST_LIB)

clean:
	$(RM) $(TESTEXE) *.o libfunchook_test.so

Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
	cd $(top_builddir) && ./config.status

funchook_test_exe.lib:
	echo "LIBRARY funchook_test.exe" > funchook_test_exe.def
	echo "EXPORTS" >> funchook_test_exe.def
	echo "get_val_in_exe" >> funchook_test_exe.def
	$(DLLTOOL) -d funchook_test_exe.def -l funchook_test_exe.lib

Version data entries

80 entries across 80 versions & 1 rubygems

Version Path
contrast-agent-6.9.0 funchook/test/Makefile.in
contrast-agent-6.8.0 funchook/test/Makefile.in
contrast-agent-6.7.0 funchook/test/Makefile.in
contrast-agent-6.6.5 funchook/test/Makefile.in
contrast-agent-6.6.4 funchook/test/Makefile.in
contrast-agent-6.6.3 funchook/test/Makefile.in
contrast-agent-6.6.2 funchook/test/Makefile.in
contrast-agent-6.6.1 funchook/test/Makefile.in
contrast-agent-6.6.0 funchook/test/Makefile.in
contrast-agent-6.5.1 funchook/test/Makefile.in
contrast-agent-6.5.0 funchook/test/Makefile.in
contrast-agent-6.4.0 funchook/test/Makefile.in
contrast-agent-6.3.0 funchook/test/Makefile.in
contrast-agent-6.2.0 funchook/test/Makefile.in
contrast-agent-6.1.2 funchook/test/Makefile.in
contrast-agent-6.1.1 funchook/test/Makefile.in
contrast-agent-6.1.0 funchook/test/Makefile.in
contrast-agent-6.0.0 funchook/test/Makefile.in
contrast-agent-5.3.0 funchook/test/Makefile.in
contrast-agent-5.2.0 funchook/test/Makefile.in