From 8eaa3e212f5ebcd9561ed5871e78d3a90f10071e Mon Sep 17 00:00:00 2001 From: John Brandwood Date: Sun, 1 Dec 2024 15:44:11 -0500 Subject: [PATCH] Add the missing include/hucc/globals.h and enable compiling HuCC examples. --- examples/Makefile | 2 +- include/hucc/globals.h | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 include/hucc/globals.h diff --git a/examples/Makefile b/examples/Makefile index e0753439..aeb69654 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -2,7 +2,7 @@ # Makefile for examples # -SUBDIRS = huc asm +SUBDIRS = hucc huc asm all clean: @$(MAKE) $(SUBDIRS) "COMMAND=$@" diff --git a/include/hucc/globals.h b/include/hucc/globals.h new file mode 100644 index 00000000..de33e03e --- /dev/null +++ b/include/hucc/globals.h @@ -0,0 +1,18 @@ +// ************************************************************************** +// ************************************************************************** +// +// globals.h +// +// ************************************************************************** +// ************************************************************************** +// +// The idea is that you, a PCE developer, copy this file from the ../include/ +// directory and into your project's directory, and then define the variables +// that you want to have shared access to in all overlay programs on your CD. +// +// Because PCEAS searches the current (i.e. project) directory for an include +// file first, then it will find your customized copy of the file rather than +// the original copy in the ../include/ directory. +// +// ************************************************************************** +// **************************************************************************