X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Makefile.cfg;h=022a02ef573eb705a4711817ffb39f28f401e64a;hb=624e1386acc66a0a5fa51fa9c4aa1f616eddaaa4;hp=7b0ad8c324ab1ea6835df742dd696dfb09bc787b;hpb=fb3abbad5dfd71ea2b190d0b33d9c57e879fb15a;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