From 653c41a208ac004a412e4529f494b8b07baa2172 Mon Sep 17 00:00:00 2001 From: cbdev Date: Wed, 23 Jun 2021 01:27:35 +0200 Subject: Fix sanitize build circular include --- DEVELOPMENT.md | 12 ++++++++++++ Makefile | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3