aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data/makefile/nmake.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/build-data/makefile/nmake.in')
-rw-r--r--src/build-data/makefile/nmake.in40
1 files changed, 13 insertions, 27 deletions
diff --git a/src/build-data/makefile/nmake.in b/src/build-data/makefile/nmake.in
index 1ebba3c9f..9a248117b 100644
--- a/src/build-data/makefile/nmake.in
+++ b/src/build-data/makefile/nmake.in
@@ -1,23 +1,4 @@
-### Compiler Options
-CXX = %{cc}
-LIB_OPT = %{lib_opt}
-APP_OPT = %{app_opt}
-LANG_FLAGS = %{lang_flags}
-WARN_FLAGS = %{warn_flags}
-SO_OBJ_FLAGS = %{shared_flags}
-LIB_LINK_CMD = %{so_link}
-APP_LINKS_TO = $(LIB_LINKS_TO) -lboost_thread
-TEST_LINKS_TO = $(LIB_LINKS_TO) -lboost_filesystem
-
-LIB_FLAGS = $(LIB_OPT) $(LANG_FLAGS) $(WARN_FLAGS) $(SO_OBJ_FLAGS)
-APP_FLAGS = $(APP_OPT) $(LANG_FLAGS) $(WARN_FLAGS)
-TEST_FLAGS = $(APP_OPT) $(LANG_FLAGS) $(WARN_FLAGS)
-
-### Version Numbers
-VERSION = %{version}
-
-### Installation Settings
-DESTDIR = %{prefix}
+%{header_in}
### Aliases for Common Programs
AR = %{ar_command}
@@ -33,8 +14,8 @@ RM_R = $(RM) /S
RMDIR = @rmdir
### File Lists
-APP = botan
-TEST = botan-test
+APP = %{app_prefix}botan
+TEST = %{app_prefix}botan-test
LIBOBJS = %{lib_objs}
@@ -51,14 +32,14 @@ BOTAN_LIB = $(LIBNAME).%{static_suffix}
all: $(APP) $(TEST)
-### Build Commands
+# Build Commands
%{lib_build_cmds}
%{app_build_cmds}
%{test_build_cmds}
-### Link Commands
+# Link Commands
$(APP): $(LIBRARIES) $(APPOBJS)
$(CXX) /Fe$@ $(APPOBJS) $(BOTAN_LIB) $(LINK_TO)
@@ -72,7 +53,13 @@ $(BOTAN_LIB): $(LIBOBJS)
$(LIB_LINK_CMD) /Fe$(LIBNAME) $(LIBOBJS) $(LINK_TO)
!Endif
-### Fake Targets
+%{python_in}
+
+# Fake Targets
+
+SPHINX_CONFIG = %{sphinx_config_dir}
+SPHINX_OPTS = -b html
+
docs:
%{build_doc_commands}
@@ -90,8 +77,7 @@ distclean: clean
$(RMDIR) %{build_dir}
$(RM) Makefile $(LIBNAME).* $(APP).*
-### Install Commands
-install: $(LIBRARIES)
+install: $(LIBRARIES) docs
-$(MKDIR) $(DESTDIR)\include\botan
$(INSTALL_CMD) botan.* $(DESTDIR)
$(INSTALL_CMD) build\include\botan\*.h $(DESTDIR)\include\botan