diff options
Diffstat (limited to 'cmark/Makefile.nmake')
| -rw-r--r-- | cmark/Makefile.nmake | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/cmark/Makefile.nmake b/cmark/Makefile.nmake new file mode 100644 index 0000000000..47d166563f --- /dev/null +++ b/cmark/Makefile.nmake @@ -0,0 +1,28 @@ +SRCDIR=src +DATADIR=data +BUILDDIR=build +INSTALLDIR=windows +PROG=$(BUILDDIR)\src\cmark.exe +GENERATOR=NMake Makefiles + +all: $(BUILDDIR)/CMakeFiles + cmake --build $(BUILDDIR) + +$(BUILDDIR)/CMakeFiles: + cmake \ + -S . -B $(BUILDDIR) -G "$(GENERATOR)" \ + -D CMAKE_BUILD_TYPE=$(BUILD_TYPE) \ + -D CMAKE_INSTALL_PREFIX=$(INSTALLDIR) + +install: all + cmake --install $(BUILDDIR) + +clean: + -rmdir /s /q $(BUILDDIR) $(MINGW_INSTALLDIR) 2> nul + +test: all + ctest --test-dir $(BUILDDIR) --output-on-failure + +distclean: clean + del /q src\scanners.c 2> nul + del /q spec.md spec.html 2> nul |
