X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Makefile.cfg;h=ff49c162a2ecb1a38f2f896acb5f127504d6f50c;hb=c967d91a4794ec9c0ec7dab438c033f4c0b49952;hp=b2cb47d18287e7f4064f0b51f8e29661bb73d7a3;hpb=1e7db40300bc594cf708bb6082a6e05a268da946;p=tpg%2Facess2.git diff --git a/Makefile.cfg b/Makefile.cfg index b2cb47d1..ff49c162 100644 --- a/Makefile.cfg +++ b/Makefile.cfg @@ -2,22 +2,50 @@ # Acess2 Build Configuration # -CC = gcc -LD = ld -AS = nasm -OBJDUMP = objdump -RM = @rm -f -STRIP = strip -MKDIR = mkdir -RMDIR = rm -rf +# 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 -ACESSDIR = ~/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