📄 re.mak
字号:
# re.mak
!IF "$(CFG)" != "Release" && "$(CFG)" != "Debug"
!MESSAGE Invalid configuration "$(CFG)" specified. Use "nmake CFG=Debug" or "nmake CFG=Release". Defaulting to CFG=Debug.
CFG=Debug
!ENDIF
!IF "$(CFG)" == "Debug"
# Debugging version
# -YX creates and uses pre-compiled headers
# -Zi is for a debugging build
# -W3 is warning level 3
# -MLd is for the single threaded static debugging runtime library
# -GX is for synchronous exception handling mode which keeps the library stream header files happy
# No need to define _DEBUG, compiler does it for us if -MLd flag is on
OUTDIR= .\Debug
CFLAGS=-nologo -Zi -W3 -MLd -GX -YX -D_DEBUG $(INCL) -Fo"$(OUTDIR)/" -DHAVE_CONFIG_H -DSTDC_HEADERS -c -DREGEX_MALLOC
LFLAGS=-nologo -debug:full -nodefaultlib:LIBC
!ENDIF
!IF "$(CFG)" == "Release"
# Fast version
# -02 is for fast build
OUTDIR= .\Release
CFLAGS=-nologo -Zi -W3 -MLd -GX -YX $(INCL) -Fo"$(OUTDIR)/" -DHAVE_CONFIG_H -DSTDC_HEADERS -c -DREGEX_MALLOC
LFLAGS=-nologo -nodefaultlib:LIBC
LIBS=
!ENDIF
all: test.exe
clean:
rm -f $(OUTDIR)\*.obj $(OUTDIR)\*.res $(OUTDIR)\*.pch
rm -f test.exe
.cpp{$(OUTDIR)}.obj::
cl $(CFLAGS) $<
.c{$(OUTDIR)}.obj::
cl $(CFLAGS) $<
test_OBJ=$(OUTDIR)/regex.obj $(OUTDIR)/test.obj
test.exe: $(test_OBJ)
link $(LFLAGS) -subsystem:console -out:test.exe $(test_OBJ) $(LIBS)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -