⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 make.rules.mak

📁 我学习UNIX的体会。
💻 MAK
字号:
# **********************************************************************
#
# Copyright (c) 2000
# Intervision Software Co., Ltd.
# Haidian District, Beijing.
#
# All Rights Reserved
#
# **********************************************************************

installpath	= c:\progra~1\interbus
bindir		= $(installpath)\bin
libdir		= $(installpath)\lib
includedir	= $(installpath)\include
idldir		= $(installpath)\idl

DLL=yes
WITH_MTL=yes
MTL_DIR=$(installpath)

STAR_SERVICE_LIB_PATH = $(installpath)\lib

!if "$(OPTIMIZE_SPEED)" == "yes"

OPT_CXXFLAGS	= /Ox 
OPT_LINKFLAGS	=
OPT_CPPFLAGS	= /DNDEBUG

!endif

!if "$(OPTIMIZE_SIZE)" == "yes"

OPT_CXXFLAGS	= /O1 
OPT_LINKFLAGS	=
OPT_CPPFLAGS	= /DNDEBUG

!endif

!if "$(DEBUG)" == "yes"

OPT_CXXFLAGS	= /Zi $(OPT_CXXFLAGS)
OPT_LINKFLAGS	= /debug $(OPT_LINKFLAGS)
OPT_CPPFLAGS	= $(OPT_CPPFLAGS)
LIBSUFFIX	= $(LIBSUFFIX)d
CXX_RTL		= /MDd

!else

CXX_RTL		= /MD

!endif

CXX		= cl.exe
CXXFLAGS	= /nologo $(CXX_RTL) /W3 /GX /Gy $(OPT_CXXFLAGS)
CXXCPP		= cl.exe /nologo /E
CPPFLAGS	    = /DWIN32 $(OPT_CPPFLAGS) # /DSTAR_CLEAR_MEM
LIBS		= 
GUILIBS		= 
DLLLIBS		=
LINK	= link.exe
LINKFLAGS	= /nologo $(OPT_LINKFLAGS) /subsystem:console /incremental:no
LINKGUIFLAGS	= /nologo $(OPT_LINKFLAGS) /subsystem:windows /incremental:no
LINKDLLFLAGS	= /nologo $(OPT_LINKFLAGS) /dll /incremental:no
AR		= lib.exe
ARFLAGS		= /nologo

SHELL		= bash


!ifndef INCLUDE
!error The INCLUDE environment variable needs to be set.
!endif
!ifndef LIB
!error The LIB environment variable needs to be set.
!endif

EVERYTHING	= all clean

.SUFFIXES:
.SUFFIXES:	.cc .cpp .obj

!ifdef NMAKE_NO_BATCH_MODE
.cpp.obj:
	$(CXX) /c $(ALL_CPPFLAGS) $(ALL_CXXFLAGS) $<

.cc.obj:
	$(CXX) /c $(ALL_CPPFLAGS) $(ALL_CXXFLAGS) /TP $<
!else
.cpp.obj::
	$(CXX) /c $(ALL_CPPFLAGS) $(ALL_CXXFLAGS) $<

.cc.obj::
	$(CXX) /c $(ALL_CPPFLAGS) $(ALL_CXXFLAGS) /TP $<
!endif

all:: $(TARGETS)

clean::
	-@del *.obj *.bak *.flc *.pdb *.pch

!if "$(TARGETS)" != ""
clean::
	@for %i in ( $(TARGETS) ) do \
	    @if exist %i del %i 
!endif

!if "$(PDB_FILES)" != ""
clean::
	@for %i in ( $(PDB_FILES) ) do \
	    @if exist %i del %i 
!endif


CXXFLAGS        = $(CXXFLAGS) /GR

STAR_CPPFLAGS     = /I$(installpath)\include
STAR_IDLFLAGS     = -I$(installpath)\idl
STAR_LIBS         = $(installpath)\lib\star$(LIBSUFFIX).lib
IDL		= $(installpath)\bin\idl.exe
IDLDIR          = $(installpath)\idl

!if "$(DLL)" == "yes"
PATH		= $(installpath)\lib;$(PATH)
!endif

!if "$(WITH_MTL)" == "yes"
STAR_CPPFLAGS     = $(STAR_CPPFLAGS) /I$(MTL_DIR)\include
STAR_LIBS         = $(STAR_LIBS) $(MTL_DIR)\lib\mtl$(LIBSUFFIX).lib
STAR_DLLLIBS      = $(STAR_DLLLIBS) $(MTL_DIR)\lib\mtl$(LIBSUFFIX).lib

!if "$(DLL)" == "yes"
PATH		= $(MTL_DIR)\lib;$(PATH)
!endif

!endif

⌨️ 快捷键说明

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