2 # Acess2 Build Configuration
7 ACESSDIR := $(dir $(lastword $(MAKEFILE_LIST)))
8 ACESSDIR := $(shell cd $(ACESSDIR) && pwd)
10 # Install destination configuration
11 DISTROOT := -i $(ACESSDIR)/Acess2.img ::/Acess2
17 -include $(ACESSDIR)/Makefile.Version.cfg
19 # Default build programs
22 DISASM := objdump -d -S
31 # Load Architecture settings
35 include $(ACESSDIR)/BuildConf/$(ARCH)/Makefile.cfg
41 ifneq ($(ARCHDIR),native)
42 CC = $(COMPILERDIR)bin/$(TRIPLET)-gcc
43 CXX = $(COMPILERDIR)bin/$(TRIPLET)-g++
44 LD = $(COMPILERDIR)bin/$(TRIPLET)-ld
45 OBJDUMP = $(COMPILERDIR)bin/$(TRIPLET)-objdump
47 AS = $(COMPILERDIR)bin/$(TRIPLET)-gcc -c
52 ifneq ($(ARCHDIR),$(ARCH))
53 include $(ACESSDIR)/BuildConf/$(ARCHDIR)/Makefile.cfg
57 COMPILERDIR := $(ACESSDIR)/Externals/Output/$(ARCHDIR)-BUILD/
58 PATH := $(COMPILERDIR)bin/ $(PATH)
64 # Makefile.user.cfg is not part of the Acess git repo,
65 # It is for overriding the options in this file
66 -include $(ACESSDIR)/Makefile.user.cfg
71 MODULES += Filesystems/RAMDisk
72 MODULES += Filesystems/Ext2
73 MODULES += Filesystems/FAT
74 MODULES += Filesystems/NTFS
75 MODULES += Storage/LVM
77 include $(ACESSDIR)/BuildConf/$(ARCH)/$(PLATFORM).mk
79 MODULES += Input/Keyboard Input/Mouse
80 MODULES += IPStack # So the other modules are loaded before it
82 #DYNMODS += Filesystems/InitRD
84 # BUILD_DIST=y - Install to ./Dist
85 ifneq ($(BUILD_DIST),)
86 DISTROOT := $(ACESSDIR)/Dist