git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AxWin2 - More fiddling
[tpg/acess2.git]
/
Makefile.cfg
diff --git
a/Makefile.cfg
b/Makefile.cfg
index
9c08aea
..
b0de662
100644
(file)
--- a/
Makefile.cfg
+++ b/
Makefile.cfg
@@
-2,22
+2,24
@@
# Acess2 Build Configuration
#
# Acess2 Build Configuration
#
-#
Source and
destination configuration
+#
Install
destination configuration
DISTROOT := a:/Acess2
DISTROOT := a:/Acess2
-ACESSDIR := /home/tpg/Projects/Acess2
+xCP := mcopy -D o
+xMKDIR := mmd -D s
+
+ACESSDIR := $(dir $(lastword $(MAKEFILE_LIST)))
+ACESSDIR := $(shell cd $(ACESSDIR) && pwd)
# Default build programs
# Default build programs
-CC := gcc
-LD := ld
+
#
CC := gcc
+
#
LD := ld
AS := nasm
AS := nasm
-DISASM := objdump -d
+DISASM := objdump -d
-S
RM := @rm -f
STRIP := strip
RM := @rm -f
STRIP := strip
-MKDIR := mkdir
+MKDIR := mkdir
-p
RMDIR := rm -rf
lCP := cp
RMDIR := rm -rf
lCP := cp
-xCP := mcopy -D o
-xMKDIR := mmd
# Load Architecture settings
ifeq ($(ARCH),)
# Load Architecture settings
ifeq ($(ARCH),)
@@
-27,16
+29,30
@@
endif
ifeq ($(ARCHDIR),)
ARCHDIR := x86
endif
ifeq ($(ARCHDIR),)
ARCHDIR := x86
endif
+ifneq ($(ARCH),host)
-include $(ACESSDIR)/Makefile.$(ARCHDIR).cfg
-include $(ACESSDIR)/Makefile.$(ARCHDIR).cfg
+endif
+
+# Makefile.user.cfg is not part of the Acess git repo,
+# It is for overriding the options in this file
+-include $(ACESSDIR)/Makefile.user.cfg
FILESYSTEMS :=
DRIVERS :=
FILESYSTEMS :=
DRIVERS :=
-MODULES := Storage/ATA Storage/FDD
+MODULES :=
+MODULES += Filesystems/Ext2
+MODULES += Filesystems/FAT
+MODULES += Filesystems/NTFS
+
+ifeq ($(ARCHDIR),x86)
+MODULES += Storage/ATA Storage/FDD
MODULES += Network/NE2000
MODULES += Display/VESA
MODULES += Display/BochsGA
MODULES += Network/NE2000
MODULES += Display/VESA
MODULES += Display/BochsGA
-MODULES += Filesystems/Ext2
-MODULES += Filesystems/FAT
-MODULES += IPStack
-DYNMODS := USB/Core
MODULES += Interfaces/UDI
MODULES += Interfaces/UDI
+MODULES += Input/PS2KbMouse
+MODULES += x86/ISADMA x86/VGAText
+endif
+
+MODULES += IPStack # So the other modules are loaded before it
+DYNMODS := USB/Core
UCC
git Repository :: git.ucc.asn.au