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

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