X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Makefile.cfg;h=547f1bbb95baad0670b17e0048713ec721c7f7bf;hb=e4ed0acbb2779cd319d0fad9d993c3488a6a0b28;hp=51c4802d9e2ff3c969e4dfc0dc3eb48f8c93eae2;hpb=d1714d8a27a603ce8ac4ba91e8c0c3d060d767ee;p=tpg%2Facess2.git diff --git a/Makefile.cfg b/Makefile.cfg index 51c4802d..547f1bbb 100644 --- a/Makefile.cfg +++ b/Makefile.cfg @@ -2,39 +2,44 @@ # 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 +# Source and destination configuration +DISTROOT := a:/Acess2 +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 +RMDIR := rm -rf +lCP := cp +xCP := mcopy -D o +xMKDIR := mmd + +# Load Architecture settings ifeq ($(ARCH),) - ARCH = i386 + ARCH := i386 endif +-include $(ACESSDIR)/Makefile.$(ARCH).cfg ifeq ($(ARCHDIR),) - ARCHDIR = x86 + ARCHDIR := x86 endif +-include $(ACESSDIR)/Makefile.$(ARCHDIR).cfg -FILESYSTEMS = -DRIVERS = -MODULES = Storage/ATA Storage/FDD +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 Interfaces/UDI - -#DISTROOT = /mnt/AcessHDD/Acess2 -#DISTROOT = ~/Projects/Acess2/Filesystem -DISTROOT = a:/Acess2 -ACESSDIR = /home/tpg/Projects/Acess2 +DYNMODS := USB/Core +MODULES += Interfaces/UDI