X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Makefile.cfg;h=c030d4754f09c00385f7b4cf98c141b5a80d9035;hb=b0da731b2d89b9dd58de2c98eaf6218a41a21920;hp=5fc3af1d1aacacf3354cfe9b147aeadebb9372c9;hpb=1e25b20fd5d119d3b5673d6a31f60b2da676de98;p=tpg%2Facess2.git diff --git a/Makefile.cfg b/Makefile.cfg index 5fc3af1d..c030d475 100644 --- a/Makefile.cfg +++ b/Makefile.cfg @@ -2,38 +2,64 @@ # 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 +ACESSDIR := $(dir $(lastword $(MAKEFILE_LIST))) +ACESSDIR := $(shell cd $(ACESSDIR) && pwd) +# Install destination configuration +DISTROOT := -i $(ACESSDIR)/Acess2.img ::/Acess2 +xCP := mcopy -D o +xMKDIR := mmd -D s + +-include $(ACESSDIR)/Makefile.Version.cfg + +# 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 +ASSUFFIX = asm + + +# Load Architecture settings ifeq ($(ARCH),) - ARCH = i386 + ARCH := x86 endif +include $(ACESSDIR)/BuildConf/$(ARCH)/Makefile.cfg ifeq ($(ARCHDIR),) - ARCHDIR = x86 + ARCHDIR := x86 +endif + +ifneq ($(ARCH),host) + ifneq ($(ARCHDIR),$(ARCH)) + include $(ACESSDIR)/BuildConf/$(ARCHDIR)/Makefile.cfg + endif endif -FILESYSTEMS = -DRIVERS = -MODULES = Storage/ATA Storage/FDD -#MODULES += Network/NE2000 -#MODULES += Display/BochsGA +ifeq ($(PLATFORM),) + PLATFORM := default +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 + +DRIVERS := +MODULES := + +MODULES += Filesystems/RAMDisk MODULES += Filesystems/Ext2 MODULES += Filesystems/FAT -#MODULES += IPStack -DYNMODS = USB Interfaces/UDI +MODULES += Filesystems/NTFS +MODULES += Storage/LVM + +include $(ACESSDIR)/BuildConf/$(ARCH)/$(PLATFORM).mk -#DISTROOT = /mnt/AcessHDD/Acess2 -#DISTROOT = ~/Projects/Acess2/Filesystem -DISTROOT = a:/Acess2 -ACESSDIR = /home/tpg/Projects/Acess2 +MODULES += Input/Keyboard Input/Mouse +MODULES += IPStack # So the other modules are loaded before it +#DYNMODS := USB/Core +#DYNMODS += Filesystems/InitRD