Java中调用dll动态库的简洁方法

来源:java认证发布时间:2012-11-12 13:12:27java认证视频

  ifneq ($(strip $(CPP_DEPS)),)

  -include $(CPP_DEPS)

  endif

  ifneq ($(strip $(CXX_DEPS)),)

  -include $(CXX_DEPS)

  endif

  ifneq ($(strip $(C_UPPER_DEPS)),)

  -include $(C_UPPER_DEPS)

  endif

  endif

  -include ../makefile.defs

  # Add inputs and outputs from these tool invocations to the build variables

  # All Target

  all: libJNativeCpp.so

  # Tool invocations

  libJNativeCpp.so: $(OBJS) $(OBJS_ASM) $(USER_OBJS)

  @echo ''Building target: $@''

  @echo ''Invoking: GCC C++ Linker''

  g++ -shared -o"libJNativeCpp.so" $(OBJS) $(OBJS_ASM) $(USER_OBJS) $(LIBS)

  @echo ''Finished building target: $@''

  @echo '' ''

  # Other Targets

  clean:

  -$(RM) $(OBJS)$(C++_DEPS)$(CC_DEPS)$(C_DEPS)$(CPP_DEPS)$(LIBRARIES)$(CXX_DEPS)$(C_UPPER_DEPS) libJNativeCpp.so

  -@echo '' ''

  .PHONY: all clean dependents

  .SECONDARY:

  -include ../makefile.targets

  subdir.mk 文件

  ################################################################################

  # Automatically-generated file. Do not edit!

  ################################################################################

  # Add inputs and outputs from these tool invocations to the build variables

  C_SRCS +=

  ../jni_util.c

  ../mem.c

  CPP_SRCS +=

  ../CallBack.cpp

  ../WindowProcUtil.cpp

  ../org_xvolks_jnative_JNative.cpp

  ASM_SRCS +=

  ../asm_io.asm

  ../calls.asm

  OBJS +=

  ./CallBack.o

  ./WindowProcUtil.o

  ./jni_util.o

  ./mem.o

  ./org_xvolks_jnative_JNative.o

  OBJS_ASM +=

  ./asm_io.o

  ./calls.o

  C_DEPS +=

  ./jni_util.d

  ./mem.d

  CPP_DEPS +=

  ./CallBack.d

  ./WindowProcUtil.d

  ./org_xvolks_jnative_JNative.d

  # Each subdirectory must supply rules for building sources it contributes

  %.o: ../%.cpp

  @echo ''Building file: $<''

  @echo ''Invoking: GCC C++ Compiler''

  g++ -I"/home/gongjan/jdk1.5.0_08/include/" -I"/home/gongjan/jdk1.5.0_08/include/linux" -O3 -Wall -c -fmessage-length=0 -Wl,--add-stdcall-alias -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o"$@" "$<"

  @echo ''Finished building: $<''

  @echo '' ''

  %.o: ../%.asm

  @echo ''Building file: $<''

  @echo ''Invoking: GCC Assembler''

  nasm -f elf -d ELF_TYPE -o"$@" "$<"

  @echo ''Finished building: $<''

  @echo '' ''

  %.o: ../%.c

  @echo ''Building file: $<''

  @echo ''Invoking: GCC C Compiler''

  gcc -I"/home/gongjan/jdk1.5.0_08/include/linux" -I"/home/gongjan/jdk1.5.0_08/include/" -O3 -Wall -c -fmessage-length=0 -Wl,--add-stdcall-alias -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o"$@" "$<"

  @echo ''Finished building: $<''

  @echo '' ''

  编辑特别推荐:

  Weiss的java数据结构与问题解决

上一页12下一页

视频学习

我考网版权与免责声明

① 凡本网注明稿件来源为"原创"的所有文字、图片和音视频稿件,版权均属本网所有。任何媒体、网站或个人转载、链接转贴或以其他方式复制发表时必须注明"稿件来源:我考网",违者本网将依法追究责任;

② 本网部分稿件来源于网络,任何单位或个人认为我考网发布的内容可能涉嫌侵犯其合法权益,应该及时向我考网书面反馈,并提供身份证明、权属证明及详细侵权情况证明,我考网在收到上述法律文件后,将会尽快移除被控侵权内容。

最近更新

社区交流

考试问答