From dbd32efbc5fab6fc07aebdad5946244953acf43f Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Fri, 14 Dec 2018 11:56:07 +0100 Subject: [PATCH] Makefile: adding some comments. --- Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 422bd6f..271b6df 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,18 @@ - +# --------------------------------------------------------------------------- +# m16 Makefile. +# --------------------------------------------------------------------------- +# +# The following debug flags exists: +# +# * MEM_SIZE= +# Defines the memory size of the virtual machine (in bytes) +# +# * M16_DEBUG_MEM +# Prints memory after program execution +# +# * M16_DEBUG_INSTR +# Outputs the instructions executed in a human-readable format. +# CC = gcc CFLAGS = -Iinclude -DMEM_SIZE=32 -DM16_DEBUG_MEM LD = $(CC)