X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Makefile.cfg;h=ff49c162a2ecb1a38f2f896acb5f127504d6f50c;hb=f3d0d7fcf0496a63625c92e5ab95471e202e958e;hp=441718cb82cbded3b0163567ceb15fc4e937a926;hpb=4c846dc6c5b4e8bc39f1ecc3370db690400b40e2;p=tpg%2Facess2.git diff --git a/Makefile.cfg b/Makefile.cfg index 441718cb..ff49c162 100644 --- a/Makefile.cfg +++ b/Makefile.cfg @@ -2,28 +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 -ARCH = i386 -ARCHDIR = x86 +ACESSDIR := $(dir $(lastword $(MAKEFILE_LIST))) +ACESSDIR := $(shell cd $(ACESSDIR) && pwd) -FILESYSTEMS = fat -DRIVERS = ata_x86 -MODULES = FS_Ext2 FDD NE2000 BochsGA +# 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 -#DISTROOT = /mnt/AcessHDD/Acess2 -#DISTROOT = ~/Projects/Acess2/Filesystem -DISTROOT = a:/Acess2 -ACESSDIR = /home/hodgeja/Projects/Acess2 +# Load Architecture settings +ifeq ($(ARCH),) + ARCH := i386 +endif +-include $(ACESSDIR)/Makefile.$(ARCH).cfg +ifeq ($(ARCHDIR),) + ARCHDIR := x86 +endif +ifneq ($(ARCH),host) +-include $(ACESSDIR)/Makefile.$(ARCHDIR).cfg +endif + +# 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 += Filesystems/Ext2 +MODULES += Filesystems/FAT +MODULES += Filesystems/NTFS +MODULES += IPStack +DYNMODS := USB/Core +MODULES += Interfaces/UDI