Usermode/libaxwin4 - Handle demarshal failure
[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 NCXX := $(CXX)
12 xCP := mcopy -D o
13 xMKDIR := mmd -D s
14
15 -include $(ACESSDIR)/Makefile.Version.cfg
16
17 # Default build programs
18 #CC := gcc
19 #LD := ld
20 AS := nasm
21 DISASM := objdump -d -S
22 RM := @rm -f
23 STRIP := strip
24 MKDIR := mkdir -p
25 RMDIR := rm -rf
26 lCP := cp
27 ASSUFFIX = asm
28
29
30 # Load Architecture settings
31 ifeq ($(ARCH),)
32         ARCH := x86
33 endif
34 include $(ACESSDIR)/BuildConf/$(ARCH)/Makefile.cfg
35 ifeq ($(ARCHDIR),)
36         ARCHDIR := x86
37 endif
38
39 # Default compilers
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
45 endif
46
47 ifneq ($(ARCH),host)
48  ifneq ($(ARCHDIR),$(ARCH))
49   include $(ACESSDIR)/BuildConf/$(ARCHDIR)/Makefile.cfg
50  endif
51 endif
52
53 COMPILERDIR := $(ACESSDIR)/Externals/Output/$(ARCHDIR)-BUILD/
54 PATH := $(COMPILERDIR)bin/ $(PATH)
55
56 ifeq ($(PLATFORM),)
57         PLATFORM := default
58 endif
59
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
63
64 DRIVERS := 
65 MODULES :=
66
67 MODULES += Filesystems/RAMDisk
68 MODULES += Filesystems/Ext2
69 MODULES += Filesystems/FAT
70 MODULES += Filesystems/NTFS
71 MODULES += Storage/LVM
72
73 include $(ACESSDIR)/BuildConf/$(ARCH)/$(PLATFORM).mk
74
75 MODULES += Input/Keyboard Input/Mouse
76 MODULES += IPStack      # So the other modules are loaded before it
77 #DYNMODS := USB/Core
78 #DYNMODS += Filesystems/InitRD
79
80 # BUILD_DIST=y - Install to ./Dist
81 ifneq ($(BUILD_DIST),)
82         DISTROOT := $(ACESSDIR)/Dist
83         xCP := cp
84         xMKDIR := mkdir -p
85 endif

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