aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2021-06-23 01:27:35 +0200
committercbdev <cb@cbcdn.com>2021-06-23 01:27:35 +0200
commit653c41a208ac004a412e4529f494b8b07baa2172 (patch)
treeb424278a2dc3e44aaedc4da69d18dc8a362a9d2c
parentfe4598558ee7d63ae35511c3fa1dc8c49ba52cb7 (diff)
downloadmidimonster-653c41a208ac004a412e4529f494b8b07baa2172.tar.gz
midimonster-653c41a208ac004a412e4529f494b8b07baa2172.tar.bz2
midimonster-653c41a208ac004a412e4529f494b8b07baa2172.zip
Fix sanitize build circular include
-rw-r--r--DEVELOPMENT.md12
-rw-r--r--Makefile2
2 files changed, 13 insertions, 1 deletions
diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md
index 79005a9..3fc2268 100644
--- a/DEVELOPMENT.md
+++ b/DEVELOPMENT.md
@@ -19,6 +19,7 @@ in spirit rather than by the letter.
* Commit messages should be in the imperative voice ("When applied, this commit will: ").
* The working language for this repository is english.
* External dependencies are only acceptable when necessary and available from package repositories.
+ * Note that external dependencies make OS portability complicated
### Code style
@@ -43,8 +44,19 @@ in spirit rather than by the letter.
* Avoid `atoi()`/`itoa()`, use `strto[u]l[l]()` and `snprintf()`
* Avoid unsafe functions without explicit bounds parameters (eg. `strcat()`).
+# Repository layout
+
+* Keep the root directory as clean as possible
+ * Files that are not related directly to the MIDIMonster implementation go into the `assets/` directory
+* Prefer vendor-neutral names for configuration files where necessary
+
# Build pipeline
+* The primary build pipeline is `make`
+
# Architecture
+* If there is significant potential for sharing functionality between backends, consider implementing it in `libmmbackend`
+
# Debugging
+
diff --git a/Makefile b/Makefile
index 50fc73e..de9b24e 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ CFLAGS += -fvisibility=hidden
# Subdirectory objects need the include path
RCCFLAGS += -I./
-CFLAGS += -I./
+core/%: CFLAGS += -I./
midimonster: LDLIBS = -ldl
# Replace version string with current git-describe if possible