dir.mak

来自「编译工具」· MAK 代码 · 共 94 行

MAK
94
字号
## Usage:#   nmake /f dir.mk [<build option>]##  <build option>:#      all       - build all executables#      clean     - delete all executables and obj files#      veryclean - clean plus delete all stub files generated by omniidl### Pre-requisite:## Make sure that you have environment variable LIB and INCLUDE setup for# using Developer studio from the command line. Usually, this is accomplished# by source the vcvars32.bat file.## Where is the top of this distribution. All executable, library and include# directories are relative to this variable.#TOP = ..\..\..########################################################################### Essential flags to use omniORB.#DIR_CPPFLAGS   = -I. -I$(TOP)\include## omniDynamic407_rt.lib is the runtime DLL to support the CORBA dynamic# interfaces, such as Anys, typecodes, DSI and DII. In these examples, the# runtime library is not required as none of these features are used.# However, a bug in MSVC++ causes it to generate a bunch of references# to functions in omniDynamic407_rt.lib when compiling the stubs.# So now we link the dynamic library as well.# An alternative is to replace the dynamic library with the much smaller # library msvcstub.lib. The smaller library contains nothing but stubs# for the required functions. This is enough when non of the dynamic# interfaces are used. We use the small library here. If you prefer# to link with the dynamic library, swap the comment on the next 2# lines.#OMNI_DYNAMIC_LIB = omniDynamic407_rt.libOMNI_DYNAMIC_LIB = msvcstub.libCORBA_CPPFLAGS = -D__WIN32__ -D_WIN32_WINNT=0x0400 -D__x86__ -D__NT__ \                 -D__OSVERSION__=4CORBA_LIB      = omniORB407_rt.lib omnithread32_rt.lib \                 $(OMNI_DYNAMIC_LIB) \                 ws2_32.lib mswsock.lib advapi32.lib \                 -libpath:$(TOP)\lib\x86_win32CXXFLAGS       = -O2 -MD -GX $(CORBA_CPPFLAGS) $(DIR_CPPFLAGS)CXXLINKOPTIONS =.SUFFIXES: .cc.cc.obj:  cl /nologo /c $(CXXFLAGS) /Tp$<######################################################################### To build debug executables# Replace the above with the following:##OMNI_DYNAMIC_LIB = omniDynamic407_rtd.lib#OMNI_DYNAMIC_LIB = msvcstubd.lib#CORBA_CPPFLAGS = -D__WIN32__ -D_WIN32_WINNT=0x0400 -D__x86__ -D__NT__ -D__OSVERSION__=4#CORBA_LIB      = omniORB407_rtd.lib omnithread32_rtd.lib \#                 $(OMNI_DYNAMIC_LIB) \#                 ws2_32.lib mswsock.lib advapi32.lib -libpath:$(TOP)\lib\x86_win32#CXXFLAGS       = -MDd -GX -Z7 -Od  $(CORBA_CPPFLAGS) $(DIR_CPPFLAGS)#CXXLINKOPTIONS = -debug -PDB:NONE	all:: bd_client.exe bd_server.exe bd_shutdown.exebd_client.exe: echo_callbackSK.obj bd_client.obj  link -nologo $(CXXLINKOPTIONS) -out:$@ $** $(CORBA_LIB)bd_server.exe: echo_callbackSK.obj bd_server.obj  link -nologo $(CXXLINKOPTIONS) -out:$@ $** $(CORBA_LIB)bd_shutdown.exe: echo_callbackSK.obj bd_shutdown.obj  link -nologo $(CXXLINKOPTIONS) -out:$@ $** $(CORBA_LIB)clean::  -del *.obj  -del *.exeveryclean::  -del *.obj  -del echo_callbackSK.* echo_callback.hh  -del *.exeecho_callback.hh echo_callbackSK.cc: echo_callback.idl	$(TOP)\bin\x86_win32\omniidl -T -bcxx -Wbh=.hh -Wbs=SK.cc echo_callback.idl

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?