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
15 -include $(ACESSDIR)/Makefile.Version.cfg
17 # Default build programs
21 DISASM := objdump -d -S
30 # Load Architecture settings
34 include $(ACESSDIR)/BuildConf/$(ARCH)/Makefile.cfg
40 CC = $(COMPILERDIR)bin/$(TRIPLET)-gcc
41 CXX = $(COMPILERDIR)bin/$(TRIPLET)-g++
42 LD = $(COMPILERDIR)bin/$(TRIPLET)-ld
43 OBJDUMP = $(COMPILERDIR)bin/$(TRIPLET)-objdump
46 ifneq ($(ARCHDIR),$(ARCH))
47 include $(ACESSDIR)/BuildConf/$(ARCHDIR)/Makefile.cfg
51 COMPILERDIR := $(ACESSDIR)/Externals/Output/$(ARCHDIR)-BUILD/
52 PATH := $(COMPILERDIR)bin/ $(PATH)
58 # Makefile.user.cfg is not part of the Acess git repo,
59 # It is for overriding the options in this file
60 -include $(ACESSDIR)/Makefile.user.cfg
65 MODULES += Filesystems/RAMDisk
66 MODULES += Filesystems/Ext2
67 MODULES += Filesystems/FAT
68 MODULES += Filesystems/NTFS
69 MODULES += Storage/LVM
71 include $(ACESSDIR)/BuildConf/$(ARCH)/$(PLATFORM).mk
73 MODULES += Input/Keyboard Input/Mouse
74 MODULES += IPStack # So the other modules are loaded before it
76 #DYNMODS += Filesystems/InitRD
78 # BUILD_DIST=y - Install to ./Dist
79 ifneq ($(BUILD_DIST),)
80 DISTROOT := $(ACESSDIR)/Dist