Fixed `make install` issues, bugs with VESA
[tpg/acess2.git] / Makefile.cfg
index 834f970..0ccb74a 100644 (file)
@@ -2,9 +2,13 @@
 # Acess2 Build Configuration
 #
 
-# Source and destination configuration
+# Install destination configuration
 DISTROOT := a:/Acess2
-ACESSDIR := /home/tpg/Projects/Acess2
+xCP := mcopy -D o
+xMKDIR := mmd
+
+ACESSDIR := $(dir $(lastword $(MAKEFILE_LIST)))
+ACESSDIR := $(shell cd $(ACESSDIR) && pwd)
 
 # Default build programs
 CC := gcc
@@ -13,11 +17,9 @@ AS := nasm
 DISASM := objdump -d -S
 RM := @rm -f
 STRIP := strip
-MKDIR := mkdir
+MKDIR := mkdir -p
 RMDIR := rm -rf
 lCP := cp
-xCP := mcopy -D o
-xMKDIR := mmd
 
 # Load Architecture settings
 ifeq ($(ARCH),)
@@ -29,6 +31,10 @@ ifeq ($(ARCHDIR),)
 endif
 -include $(ACESSDIR)/Makefile.$(ARCHDIR).cfg
 
+# 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 := 
 MODULES := Storage/ATA Storage/FDD

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