Merge branch 'master' of git.mutabah.net:acess2
[tpg/acess2.git] / Makefile.cfg
1 #
2 # Acess2 Build Configuration
3 #
4
5 # Install destination configuration
6 DISTROOT := a:/Acess2
7 xCP := mcopy -D o
8 xMKDIR := mmd -D s
9
10 ACESSDIR := $(dir $(lastword $(MAKEFILE_LIST)))
11 ACESSDIR := $(shell cd $(ACESSDIR) && pwd)
12
13 -include $(ACESSDIR)/Makefile.Version.cfg
14
15 # Default build programs
16 #CC := gcc
17 #LD := ld
18 AS := nasm
19 DISASM := objdump -d -S
20 RM := @rm -f
21 STRIP := strip
22 MKDIR := mkdir -p
23 RMDIR := rm -rf
24 lCP := cp
25 ASSUFFIX = asm
26
27
28 # Load Architecture settings
29 ifeq ($(ARCH),)
30         ARCH := x86
31 endif
32 include $(ACESSDIR)/BuildConf/$(ARCH)/Makefile.cfg
33 ifeq ($(ARCHDIR),)
34         ARCHDIR := x86
35 endif
36
37 ifneq ($(ARCH),host)
38  ifneq ($(ARCHDIR),$(ARCH))
39   include $(ACESSDIR)/BuildConf/$(ARCHDIR)/Makefile.cfg
40  endif
41 endif
42
43 ifeq ($(PLATFORM),)
44         PLATFORM := default
45 endif
46
47 # Makefile.user.cfg is not part of the Acess git repo,
48 # It is for overriding the options in this file
49 -include $(ACESSDIR)/Makefile.user.cfg
50
51 DRIVERS := 
52 MODULES :=
53
54 MODULES += Filesystems/RAMDisk
55 MODULES += Filesystems/Ext2
56 MODULES += Filesystems/FAT
57 MODULES += Filesystems/NTFS
58 MODULES += Storage/LVM
59
60 include $(ACESSDIR)/BuildConf/$(ARCH)/$(PLATFORM).mk
61
62 MODULES += Input/Keyboard Input/Mouse
63 MODULES += IPStack      # So the other modules are loaded before it
64 #DYNMODS := USB/Core
65 #DYNMODS += Filesystems/InitRD

UCC git Repository :: git.ucc.asn.au