diff options
author | lloyd <[email protected]> | 2014-11-12 01:50:35 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-11-12 01:50:35 +0000 |
commit | 62ff505146cac307ca751109297332035bdc8b73 (patch) | |
tree | 55b31ba6d635338f8f4c8e3906b7f16ba003e72a /src/build-data/makefile/gmake.in | |
parent | 8b0cbccc7b11e545ed27bc6d7bda04b5cf632e60 (diff) |
Add a new Python install script and clean up the makefile templates
Diffstat (limited to 'src/build-data/makefile/gmake.in')
-rw-r--r-- | src/build-data/makefile/gmake.in | 35 |
1 files changed, 5 insertions, 30 deletions
diff --git a/src/build-data/makefile/gmake.in b/src/build-data/makefile/gmake.in index e9320ce02..6b2703cb7 100644 --- a/src/build-data/makefile/gmake.in +++ b/src/build-data/makefile/gmake.in @@ -3,12 +3,9 @@ %{commands_in} # Library targets -LIBRARIES = $(STATIC_LIB) - -LIBNAME = %{lib_prefix}libbotan -STATIC_LIB = $(LIBNAME)-$(BRANCH).a +STATIC_LIB = %{out_dir}/$(LIBNAME).%{static_suffix} -LIBPATH = botan-$(BRANCH) +LIBRARIES = $(STATIC_LIB) # File Lists INCLUDE_DIR = %{botan_include_dir} @@ -30,10 +27,10 @@ TESTOBJS = %{test_objs} %{dso_in} $(APP): $(LIBRARIES) $(APPOBJS) - $(CXX) $(LDFLAGS) $(APPOBJS) -L. -l$(LIBPATH) $(APP_LINKS_TO) -o $(APP) + $(CXX) $(LDFLAGS) $(APPOBJS) -L%{out_dir} -l%{libname} $(APP_LINKS_TO) -o $(APP) $(TEST): $(LIBRARIES) $(TESTOBJS) - $(CXX) $(LDFLAGS) $(TESTOBJS) -L. -l$(LIBPATH) $(TEST_LINKS_TO) -o $(TEST) + $(CXX) $(LDFLAGS) $(TESTOBJS) -L%{out_dir} -l%{libname} $(TEST_LINKS_TO) -o $(TEST) $(STATIC_LIB): $(LIBOBJS) $(RM) $(STATIC_LIB) @@ -64,29 +61,7 @@ docs: %{build_doc_commands} install: $(LIBRARIES) docs - $(MKDIR_INSTALL) $(DOCDIR) - $(COPY_R) %{doc_output_dir}/* $(DOCDIR) - - $(MKDIR_INSTALL) $(HEADERDIR) - for i in $(INCLUDE_DIR)/*.h; do \ - $(INSTALL_CMD_DATA) $$i $(HEADERDIR); \ - done - - $(MKDIR_INSTALL) $(LIBDIR) - $(INSTALL_CMD_DATA) $(STATIC_LIB) $(LIBDIR) - -ifneq ($(SHARED_LIB),) - $(INSTALL_CMD_EXEC) $(SHARED_LIB) $(LIBDIR) - $(CD) $(LIBDIR); $(LN) $(SHARED_LIB) $(SYMLINK) - $(CD) $(LIBDIR); $(LN) $(SHARED_LIB) $(SONAME) -endif - - $(MKDIR_INSTALL) $(BINDIR) - $(INSTALL_CMD_EXEC) $(CONFIG_SCRIPT) $(BINDIR) - $(INSTALL_CMD_EXEC) $(APP) $(BINDIR) - - $(MKDIR_INSTALL) $(PKGCONF_DIR) - $(INSTALL_CMD_DATA) $(PKGCONFIG) $(PKGCONF_DIR) + $(SCRIPTS_DIR)/install.py --destdir=%{destdir} --bindir=%{bindir} --libdir=%{libdir} --docdir=%{docdir} --includedir=%{includedir} website: rm -rf $(WEBSITE_SRC_DIR) $(WEBSITE_DIR) |