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 ifneq ($(ARCHDIR),native)
41 CC = $(COMPILERDIR)bin/$(TRIPLET)-gcc
42 CXX = $(COMPILERDIR)bin/$(TRIPLET)-g++
43 LD = $(COMPILERDIR)bin/$(TRIPLET)-ld
44 OBJDUMP = $(COMPILERDIR)bin/$(TRIPLET)-objdump
48 ifneq ($(ARCHDIR),$(ARCH))
49 include $(ACESSDIR)/BuildConf/$(ARCHDIR)/Makefile.cfg
53 COMPILERDIR := $(ACESSDIR)/Externals/Output/$(ARCHDIR)-BUILD/
54 PATH := $(COMPILERDIR)bin/ $(PATH)
60 # Makefile.user.cfg is not part of the Acess git repo,
61 # It is for overriding the options in this file
62 -include $(ACESSDIR)/Makefile.user.cfg
67 MODULES += Filesystems/RAMDisk
68 MODULES += Filesystems/Ext2
69 MODULES += Filesystems/FAT
70 MODULES += Filesystems/NTFS
71 MODULES += Storage/LVM
73 include $(ACESSDIR)/BuildConf/$(ARCH)/$(PLATFORM).mk
75 MODULES += Input/Keyboard Input/Mouse
76 MODULES += IPStack # So the other modules are loaded before it
78 #DYNMODS += Filesystems/InitRD
80 # BUILD_DIST=y - Install to ./Dist
81 ifneq ($(BUILD_DIST),)
82 DISTROOT := $(ACESSDIR)/Dist