diff --git a/Makefile b/Makefile index 947d134..594287b 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,9 @@ # CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE # OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# Ganeral flags +DEBUG := 0 + # Tools TOOLS_DIR := ./tools VASM_DIR := $(TOOLS_DIR)/vasm @@ -24,12 +27,22 @@ VLINK_DIR := $(TOOLS_DIR)/vlink # The assembler ASM := $(VASM_DIR)/vasmm68k_mot -ASM_ARGS := -quiet -m68000 -Fhunk -linedebug -I./include +ASM_ARGS := -quiet -m68000 -Fhunk -I./include + +ifeq ($(DEBUG),1) +# Debug vasm args.. +ASM_ARGS += -linedebug +endif # The linker LD := $(VLINK_DIR)/vlink LINK_ARGS := -mrel -bamigahunk -Bstatic +ifneq ($(DEBUG),1) +# Release vlink args.. +LINK_ARGS += -s +endif + # Source files SRC_DIR := ./src MAIN_SRC := $(SRC_DIR)/main.s diff --git a/README.md b/README.md index 085ac07..c9e6867 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ for CI/CD automated building in the the cloud. * Only RAW files with 'interleaved' bitplanes data are generated (no 'back-to-back' support) * Only images for low resolution (non-EHB) mode apps are supported. * No compression/packing support. +* No support for attached sprites palette generation * No special treatment for AGA * Bare bones 'no frills' bootable AmigaDOS ADFs. i.e. no loading messages etc. @@ -186,6 +187,12 @@ The various useful targets are described in the table below | `assets` | Only converts image assets (and generates palette include files) | | `tools` | Only builds the tools (`vasm` & `vlink`) | +By default the target will not include `linedebug` data and will be stripped of symbols. To preserver these pass `DEBUG=1`: + +```sh +make DEBUG=1 +``` + The Makefile also supports a set of 'clean-up' targets to remove files: | Target | Description |