X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Makefile.cfg;h=ff49c162a2ecb1a38f2f896acb5f127504d6f50c;hb=f3d0d7fcf0496a63625c92e5ab95471e202e958e;hp=991a98da8e5e949b82775bb3d9468c573832ead6;hpb=b98fbd4e9c71447d81fc9bd643fb174c76346e0f;p=tpg%2Facess2.git diff --git a/Makefile.cfg b/Makefile.cfg index 991a98da..ff49c162 100644 --- a/Makefile.cfg +++ b/Makefile.cfg @@ -2,40 +2,50 @@ # Acess2 Build Configuration # -CC = gcc -LD = ld -AS = nasm -OBJDUMP = objdump -RM = @rm -f -STRIP = strip -MKDIR = mkdir -RMDIR = rm -rf -lCP = cp -xCP = mcopy -D o -xMKDIR = mmd -xRMDIR = mdeltree -xRM = mdel +# Install destination configuration +DISTROOT := a:/Acess2 +xCP := mcopy -D o +xMKDIR := mmd -D s +ACESSDIR := $(dir $(lastword $(MAKEFILE_LIST))) +ACESSDIR := $(shell cd $(ACESSDIR) && pwd) + +# Default build programs +#CC := gcc +#LD := ld +AS := nasm +DISASM := objdump -d -S +RM := @rm -f +STRIP := strip +MKDIR := mkdir -p +RMDIR := rm -rf +lCP := cp + +# Load Architecture settings ifeq ($(ARCH),) - ARCH = i386 + ARCH := i386 endif --include Makefile.$(ARCH).cfg +-include $(ACESSDIR)/Makefile.$(ARCH).cfg ifeq ($(ARCHDIR),) - ARCHDIR = x86 + ARCHDIR := x86 +endif +ifneq ($(ARCH),host) +-include $(ACESSDIR)/Makefile.$(ARCHDIR).cfg endif -FILESYSTEMS = -DRIVERS = -MODULES = Storage/ATA Storage/FDD +# Makefile.user.cfg is not part of the Acess git repo, +# It is for overriding the options in this file +-include $(ACESSDIR)/Makefile.user.cfg + +FILESYSTEMS := +DRIVERS := +MODULES := Storage/ATA Storage/FDD MODULES += Network/NE2000 MODULES += Display/VESA -MODULES += Display/BochsGA +#MODULES += Display/BochsGA MODULES += Filesystems/Ext2 MODULES += Filesystems/FAT +MODULES += Filesystems/NTFS MODULES += IPStack -DYNMODS = USB/Core Interfaces/UDI - -#DISTROOT = /mnt/AcessHDD/Acess2 -#DISTROOT = ~/Projects/Acess2/Filesystem -DISTROOT = a:/Acess2 -ACESSDIR = /home/tpg/Projects/Acess2 +DYNMODS := USB/Core +MODULES += Interfaces/UDI