X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Makefile.cfg;h=022a02ef573eb705a4711817ffb39f28f401e64a;hb=6ac891beaf396d9d425c68b03237ef58be014baf;hp=7b0ad8c324ab1ea6835df742dd696dfb09bc787b;hpb=e8b89fea150a06598b9edd6a36d67fdc970a1219;p=tpg%2Facess2.git diff --git a/Makefile.cfg b/Makefile.cfg index 7b0ad8c3..022a02ef 100644 --- a/Makefile.cfg +++ b/Makefile.cfg @@ -2,14 +2,15 @@ # Acess2 Build Configuration # +ACESSDIR := $(dir $(lastword $(MAKEFILE_LIST))) +ACESSDIR := $(shell cd $(ACESSDIR) && pwd) + # Install destination configuration -DISTROOT := a:/Acess2 +DISTROOT := -i $(ACESSDIR)/Acess2.img ::/Acess2 +NCC := $(CC) xCP := mcopy -D o xMKDIR := mmd -D s -ACESSDIR := $(dir $(lastword $(MAKEFILE_LIST))) -ACESSDIR := $(shell cd $(ACESSDIR) && pwd) - -include $(ACESSDIR)/Makefile.Version.cfg # Default build programs @@ -63,3 +64,10 @@ MODULES += Input/Keyboard Input/Mouse MODULES += IPStack # So the other modules are loaded before it #DYNMODS := USB/Core #DYNMODS += Filesystems/InitRD + +# BUILD_DIST=y - Install to ./Dist +ifneq ($(BUILD_DIST),) + DISTROOT := $(ACESSDIR)/Dist + xCP := cp + xMKDIR := mkdir -p +endif