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

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