2 # Acess2 Build Configuration
5 ACESSDIR := $(dir $(lastword $(MAKEFILE_LIST)))
6 ACESSDIR := $(shell cd $(ACESSDIR) && pwd)
8 # Install destination configuration
9 DISTROOT := -i $(ACESSDIR)/Acess2.img ::/Acess2
14 -include $(ACESSDIR)/Makefile.Version.cfg
16 # Default build programs
20 DISASM := objdump -d -S
29 # Load Architecture settings
33 include $(ACESSDIR)/BuildConf/$(ARCH)/Makefile.cfg
39 CC = $(COMPILERDIR)bin/$(TRIPLET)-gcc
40 CXX = $(COMPILERDIR)bin/$(TRIPLET)-g++
41 LD = $(COMPILERDIR)bin/$(TRIPLET)-ld
42 OBJDUMP = $(COMPILERDIR)bin/$(TRIPLET)-objdump
45 ifneq ($(ARCHDIR),$(ARCH))
46 include $(ACESSDIR)/BuildConf/$(ARCHDIR)/Makefile.cfg
50 COMPILERDIR := $(ACESSDIR)/Externals/Output/$(ARCHDIR)-BUILD/
51 PATH := $(COMPILERDIR)bin/ $(PATH)
57 # Makefile.user.cfg is not part of the Acess git repo,
58 # It is for overriding the options in this file
59 -include $(ACESSDIR)/Makefile.user.cfg
64 MODULES += Filesystems/RAMDisk
65 MODULES += Filesystems/Ext2
66 MODULES += Filesystems/FAT
67 MODULES += Filesystems/NTFS
68 MODULES += Storage/LVM
70 include $(ACESSDIR)/BuildConf/$(ARCH)/$(PLATFORM).mk
72 MODULES += Input/Keyboard Input/Mouse
73 MODULES += IPStack # So the other modules are loaded before it
75 #DYNMODS += Filesystems/InitRD
77 # BUILD_DIST=y - Install to ./Dist
78 ifneq ($(BUILD_DIST),)
79 DISTROOT := $(ACESSDIR)/Dist