X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Makefile.cfg;h=0ccb74adca40febb9e79a42ba9c8f276c15acd49;hb=refs%2Ftags%2Frel0.07;hp=3875828f539ef603dea5a49f522ce14d8be14810;hpb=ebe5e8898c7e8b2a0eb6ec285d214ff52ed18803;p=tpg%2Facess2.git diff --git a/Makefile.cfg b/Makefile.cfg index 3875828f..0ccb74ad 100644 --- a/Makefile.cfg +++ b/Makefile.cfg @@ -2,28 +2,48 @@ # 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 -ARCH = i386 -ARCHDIR = x86 +ACESSDIR := $(dir $(lastword $(MAKEFILE_LIST))) +ACESSDIR := $(shell cd $(ACESSDIR) && pwd) -FILESYSTEMS = fat -DRIVERS = ata_x86 -MODULES = UDI 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 +-include $(ACESSDIR)/Makefile.$(ARCHDIR).cfg + +# 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