-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
?
Macros.sh
: more close to make
protocols, improve
codeflows too. Is for issue #21 (but also, somewhat, for issue #18). Is followup to: 3ee82e4 (?`Macros.sh`: more close to `make` protocols). ?`Macros.sh`: ?`SUSUWU_SETUP_BUILD_FLAGS()`: +`OBJECTLIST=""`. ?`SUSUWU_SETUP_OUTPUT()`: +`BUILDNEW={true,false}`. Moved below `SUSUWU_SETUP_BINDIR` (plus `SUSUWU_SETUP_OBJDIR`), since `BUILDNMEW` depends on `BINDIR` (also since `BINDIR` (plus `OBJDIR`) is used first throughout `Macros.sh`). ?`SUSUWU_CLEAN_OUTPUT()`: hide error messages (without dangerous `-f` flag). `:%s/NOTICE/INFO/`: isn't usual path. -`SUSUWU_CLEAN_OUTPUT()`: to shorten/reuse messages (avoids out-of-sync changes to messages,) split into +`SUSUWU_CLEAN_OUTPUT_IMPL()`, +`SUSUWU_CLEAN_OUTPUT()`, +`SUSUWU_REBUILD_OUTPUT()` (, which have comments on howto use.) ?`SUSUWU_PROCESS_CLEAN_REBUILD()`, ?`SUSUWU_PROCESS_SOURCES()`: use new {`SUSUWU_CLEAN_OUT()`,`SUSUWU_REBUILD_OUTPUT()`} functions. ?`SUSUWU_PROCESS_MINGW()`, ?`SUSUWU_SETUPCXX()`: -`CXXFLAGS_DEBUG+=CXXFLAGS_FSAN`, +`USE_FSAN={true, false}`. ?`SUSUWU_PROCESS_RELEASE_DEBUG()`: If `USE_FSAN`; `CXXFLAGS+=FLAGS_FSAN`, `LDFLAGS+=FLAGS_FSAN`, `export ASAN_OPTIONS=...`. Comment typo (mismatched ``) fix. ?`SUSUWU_PROCESS_INCLUDE()`: `:%s/${CXX_SOURCE_PATH}/$(dirname ${SOURCE})\//` (non-C++ path fix.) ?`SUSUWU_BUILD_SOURCES()`: -`SUSUWU_BUILD_SOURCES()`: since it used hardcoded suffixes plus paths, split into; So multiple `SUSUWU_BUILD_OBJECTS()` calls won't duplicated those: -`OBJECTLIST=""` (moved into ?`SUSUWU_SETUP_BUILD_FLAGS()`,) -`BUILDNEW={true,false}` (moved into ?`SUSUWU_SETUP_OUTPUT()`.) +`SUSUWU_BUILD_OBJECTS()`: Has comment (on howto pass suffix plus paths.) `:%s/test -e/test -s/` (exists -> non-zero plus exists). +`SUSUWU_BUILD_EXECUTABLE()`: Is generic (without params.) If linker errors; print status code, plus suggest howto fix this. ?`SUSUWU_TEST_OUTPUT()`: if `./build.sh --mingw`, test that `wine` exists ("./bin/a.exe: 1: Syntax error: word unexpected (expecting ")")" fix.) +`SUSUWU_TODO_LIST()`: allows to reuse common "TODO" messages for unimplemented features. +`SUSUWU_FORMAT()`, +`SUSUWU_DOCS()`, +`SUSUWU_INSTALL()`, +`SUSUWU_UNINSTALL()`: placeholders for common `make` tools. ?`Macros.sh`, ?`build.sh`: `:%s/CXXFLAGS_FSAN/FLAGS_FSAN`: to prevent "ld.lld: error: undefined symbol: __asan_*", `${LDFLAGS}` must have `-fsan*`. ?`build.sh`: ?`SUSUWU_SETUP_OUTPUT`: since it now uses `OBJDIR`, move down below `SUSUWU_SETUP_OBJDIR`. -`SUSUWU_BUILD_SOURCES`: `Macros.sh` split this into multiple functions. +`SUSUWU_BUILD_OBJECTS "${CC} ${CCFLAGS}" ".c" "${C_SOURCE_PATH}rfc6234/sha1.c" "${C_SOURCE_PATH}rfc6234/sha224-256.c" "${C_SOURCE_PATH}rfc6234/sha384-512.c`. +`SUSUWU_BUILD_OBJECTS "${CXX} ${CXXFLAGS}" ".cxx" "${CXX_SOURCE_PATH}*.cxx"` +`SUSUWU_BUILD_EXECUTABLE` ?`SUSUWU_SETUP_CXX`, ?`SUSUWU_SETUP_BUILD_FLAGS`, ?`SUSUWU_TEST_OUTPUT`: Now has comment.
- Loading branch information
1 parent
3ee82e4
commit d6332e9
Showing
2 changed files
with
94 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters