You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
866 B
45 lines
866 B
4 years ago
|
# Build the lexers test with Microsoft Visual C++ using nmake
|
||
|
# Tested with Visual C++ 2019
|
||
|
|
||
|
DEL = del /q
|
||
|
EXE = TestLexers.exe
|
||
|
|
||
3 years ago
|
INCLUDEDIRS = -I ../../scintilla/include -I ../include -I ../access
|
||
4 years ago
|
|
||
|
!IFDEF LEXILLA_STATIC
|
||
|
STATIC_FLAG = -D LEXILLA_STATIC
|
||
3 years ago
|
LIBS = ../bin/liblexilla.lib
|
||
4 years ago
|
!ENDIF
|
||
|
|
||
|
!IFDEF DEBUG
|
||
|
DEBUG_OPTIONS = -Od -MTd -DDEBUG $(STATIC_FLAG)
|
||
|
!ELSE
|
||
|
DEBUG_OPTIONS=-O1 -MT -DNDEBUG $(STATIC_FLAG) -GL
|
||
|
!ENDIF
|
||
|
|
||
|
CXXFLAGS = /EHsc /std:c++latest $(DEBUG_OPTIONS) $(INCLUDEDIRS)
|
||
|
|
||
|
OBJS = TestLexers.obj TestDocument.obj LexillaAccess.obj
|
||
|
|
||
|
all: $(EXE)
|
||
|
|
||
|
test: $(EXE)
|
||
|
$(EXE)
|
||
|
|
||
|
clean:
|
||
|
$(DEL) *.o *.obj *.exe
|
||
|
|
||
|
$(EXE): $(OBJS) $(LIBS)
|
||
|
$(CXX) $(CXXFLAGS) $(LIBS) /Fe$@ $**
|
||
|
|
||
|
.cxx.obj::
|
||
|
$(CXX) $(CXXFLAGS) -c $<
|
||
3 years ago
|
{..\access}.cxx.obj::
|
||
|
$(CXX) $(CXXFLAGS) -c $(NAME) $<
|
||
4 years ago
|
|
||
3 years ago
|
.cxx.obj::
|
||
|
$(CXX) $(CXXFLAGS) -c $<
|
||
|
|
||
|
TestLexers.obj: $*.cxx TestDocument.h
|
||
4 years ago
|
TestDocument.obj: $*.cxx $*.h
|