Changeset 177e4ea in mainline
- Timestamp:
- 2010-03-18T23:34:00Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3c80f2b
- Parents:
- 3ad309d
- Files:
-
- 1 added
- 1 deleted
- 59 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r3ad309d r177e4ea 32 32 CSCOPE = cscope 33 33 CONFIG = tools/config.py 34 SANITY = tools/sanity.py34 AUTOTOOL = tools/autotool.py 35 35 36 .PHONY: all config config_default distclean clean cscope precheck36 .PHONY: all precheck cscope autotool config_default config distclean clean 37 37 38 all: Makefile.config config.h config.defs 39 $(SANITY) 38 all: Makefile.common Makefile.config config.h config.defs 40 39 $(MAKE) -C kernel PRECHECK=$(PRECHECK) 41 40 $(MAKE) -C uspace PRECHECK=$(PRECHECK) … … 47 46 cscope: 48 47 find kernel boot uspace -regex '^.*\.[chsS]$$' | xargs $(CSCOPE) -b -k -u -f$(CSCOPE).out 48 49 Makefile.common: autotool 50 51 autotool: Makefile.config 52 $(AUTOTOOL) 49 53 50 54 Makefile.config: config_default … … 61 65 62 66 distclean: clean 63 rm -f $(CSCOPE).out Makefile.co nfig config.h config.defs tools/*.pyc tools/checkers/*.pyc67 rm -f $(CSCOPE).out Makefile.common Makefile.config config.h config.defs tools/*.pyc tools/checkers/*.pyc 64 68 65 69 clean: -
boot/Makefile
r3ad309d r177e4ea 30 30 # 31 31 32 -include ../Makefile.common 32 33 -include ../Makefile.config 33 34 -include ../config.defs … … 42 43 .PHONY: all build clean generic_clean 43 44 44 all: ../Makefile.co nfig ../config.h ../config.defs build45 all: ../Makefile.common ../Makefile.config ../config.h ../config.defs build 45 46 46 47 -include arch/$(BARCH)/Makefile.inc -
boot/Makefile.common
r3ad309d r177e4ea 27 27 # 28 28 29 -include ../Makefile.common 29 30 -include ../Makefile.config 30 31 -
boot/arch/arm32/loader/Makefile
r3ad309d r177e4ea 32 32 .PHONY: all clean 33 33 34 all: ../../../../version ../../../../Makefile.co nfig ../../../../config.h ../../../../config.defs34 all: ../../../../version ../../../../Makefile.common ../../../../Makefile.config ../../../../config.h ../../../../config.defs 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) -
boot/arch/arm32/loader/Makefile.build
r3ad309d r177e4ea 32 32 33 33 include ../../../../version 34 include ../../../../Makefile.common 34 35 include ../../../../Makefile.config 35 36 include ../../../../config.defs -
boot/arch/arm32/loader/Makefile.toolchain
r3ad309d r177e4ea 27 27 # 28 28 29 ## Toolchain configuration30 #31 32 ifndef CROSS_PREFIX33 CROSS_PREFIX = /usr/local34 endif35 36 29 BFD_NAME = elf32-littlearm 37 30 BFD_ARCH = arm 38 TARGET = arm-linux-gnu39 TOOLCHAIN_DIR = $(CROSS_PREFIX)/arm32/bin40 31 41 32 JOBFILE = ../../../../tools/jobfile.py 42 43 ifeq ($(COMPILER),gcc_native)44 CC = gcc45 AS = as46 LD = ld47 OBJCOPY = objcopy48 OBJDUMP = objdump49 endif50 51 ifeq ($(COMPILER),gcc_cross)52 CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc53 AS = $(TOOLCHAIN_DIR)/$(TARGET)-as54 LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld55 OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy56 OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump57 endif58 33 59 34 CFLAGS = \ -
boot/arch/ia64/loader/Makefile
r3ad309d r177e4ea 29 29 30 30 include Makefile.common 31 include ../../../../Makefile.common 31 32 include ../../../../Makefile.config 32 33 33 34 .PHONY: all clean 34 35 35 all: ../../../../version ../../../../Makefile.co nfig ../../../../config.h ../../../../config.defs36 all: ../../../../version ../../../../Makefile.common ../../../../Makefile.config ../../../../config.h ../../../../config.defs 36 37 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 37 38 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) -
boot/arch/ia64/loader/Makefile.build
r3ad309d r177e4ea 32 32 33 33 include ../../../../version 34 include ../../../../Makefile.common 34 35 include ../../../../Makefile.config 35 36 include ../../../../config.defs … … 60 61 $(OUTPUT): $(OBJECTS) $(COMPONENT_OBJECTS) $(LINK) 61 62 $(LD) -no-check-sections -N -T $(LINK) $(COMPONENT_OBJECTS) $(OBJECTS) -o $@ 62 $(MAKE) -C gefi/HelenOS PREFIX=$(GEFI_PREFIX)63 $(MAKE) -C gefi/HelenOS 63 64 cp gefi/HelenOS/hello.efi ../../../../ 64 65 cp gefi/HelenOS/image.bin ../../../../ -
boot/arch/ia64/loader/Makefile.common
r3ad309d r177e4ea 31 31 # 32 32 33 include ../../../../Makefile.common 33 34 include ../../../../Makefile.config 34 35 include ../../../Makefile.common -
boot/arch/ia64/loader/Makefile.toolchain
r3ad309d r177e4ea 27 27 # 28 28 29 ## Toolchain configuration30 #31 32 ifndef CROSS_PREFIX33 CROSS_PREFIX = /usr/local34 endif35 36 29 BFD_NAME = elf64-ia64-little 37 30 BFD_ARCH = ia64 38 TARGET = ia64-pc-linux-gnu39 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ia64/bin40 31 41 32 JOBFILE = ../../../../tools/jobfile.py 42 43 ifeq ($(COMPILER),gcc_native)44 CC = gcc45 AS = as46 LD = ld47 OBJCOPY = objcopy48 OBJDUMP = objdump49 GEFI_PREFIX =50 endif51 52 ifeq ($(COMPILER),icc)53 CC = icc54 AS = as55 LD = ld56 OBJCOPY = objcopy57 OBJDUMP = objdump58 GEFI_PREFIX =59 endif60 61 ifeq ($(COMPILER),gcc_cross)62 CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc63 AS = $(TOOLCHAIN_DIR)/$(TARGET)-as64 LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld65 OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy66 OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump67 GEFI_PREFIX = $(TOOLCHAIN_DIR)/$(TARGET)-68 endif69 33 70 34 CFLAGS = \ -
boot/arch/ia64/loader/gefi/HelenOS/Makefile
r3ad309d r177e4ea 22 22 # 23 23 24 prefix=$(PREFIX)25 24 include ../Make.defaults 26 25 CDIR=$(TOPDIR)/.. … … 69 68 70 69 gefi: 71 $(MAKE) -C .. prefix=$(PREFIX)70 $(MAKE) -C .. -
boot/arch/ia64/loader/gefi/Make.defaults
r3ad309d r177e4ea 26 26 # lib and include under the root 27 27 # 28 29 include ../../../../../Makefile.common 30 28 31 INSTALLROOT=/usr/local 29 32 … … 31 34 32 35 ARCH = ia64 33 INCDIR = -I. -I$(CDIR)/inc -I$(CDIR)/inc/$(ARCH) -I$(CDIR)/inc/protocol 36 INCDIR = -I. -I$(CDIR)/inc -I$(CDIR)/inc/$(ARCH) -I$(CDIR)/inc/protocol 34 37 CPPFLAGS = -DCONFIG_$(ARCH) 35 38 CFLAGS = -O2 -fpic -Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -frename-registers -mfixed-range=f32-f127 36 39 LDFLAGS = -nostdlib 37 40 INSTALL = install 38 39 CC = $(prefix)gcc40 AS = $(prefix)as41 LD = $(prefix)ld42 AR = $(prefix)ar43 RANLIB = $(prefix)ranlib44 OBJCOPY = $(prefix)objcopy45 OBJDUMP = $(prefix)objdump -
boot/arch/mips32/loader/Makefile
r3ad309d r177e4ea 32 32 .PHONY: all clean 33 33 34 all: ../../../../version ../../../../Makefile.co nfig ../../../../config.h ../../../../config.defs34 all: ../../../../version ../../../../Makefile.common ../../../../Makefile.config ../../../../config.h ../../../../config.defs 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) -
boot/arch/mips32/loader/Makefile.build
r3ad309d r177e4ea 32 32 33 33 include ../../../../version 34 include ../../../../Makefile.common 34 35 include ../../../../Makefile.config 35 36 include ../../../../config.defs -
boot/arch/mips32/loader/Makefile.toolchain
r3ad309d r177e4ea 27 27 # 28 28 29 ## Toolchain configuration30 #31 32 ifndef CROSS_PREFIX33 CROSS_PREFIX = /usr/local34 endif35 36 29 BFD_ARCH = mips 37 TARGET = mipsel-linux-gnu38 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips32/bin39 30 40 31 JOBFILE = ../../../../tools/jobfile.py … … 48 39 BFD_NAME = elf32-tradbigmips 49 40 BFD = ecoff-bigmips 50 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips32eb/bin51 TARGET = mips-linux-gnu52 41 endif 53 42 … … 55 44 BFD_NAME = elf32-tradlittlemips 56 45 BFD = binary 57 endif58 59 ifeq ($(COMPILER),gcc_native)60 CC = gcc61 AS = as62 LD = ld63 OBJCOPY = objcopy64 OBJDUMP = objdump65 endif66 67 ifeq ($(COMPILER),gcc_cross)68 CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc69 AS = $(TOOLCHAIN_DIR)/$(TARGET)-as70 LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld71 OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy72 OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump73 46 endif 74 47 -
boot/arch/ppc32/loader/Makefile
r3ad309d r177e4ea 32 32 .PHONY: all clean 33 33 34 all: ../../../../version ../../../../Makefile.co nfig ../../../../config.h ../../../../config.defs34 all: ../../../../version ../../../../Makefile.common ../../../../Makefile.config ../../../../config.h ../../../../config.defs 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) -
boot/arch/ppc32/loader/Makefile.build
r3ad309d r177e4ea 32 32 33 33 include ../../../../version 34 include ../../../../Makefile.common 34 35 include ../../../../Makefile.config 35 36 include ../../../../config.defs -
boot/arch/ppc32/loader/Makefile.toolchain
r3ad309d r177e4ea 27 27 # 28 28 29 ## Toolchain configuration30 #31 32 ifndef CROSS_PREFIX33 CROSS_PREFIX = /usr/local34 endif35 36 29 BFD_NAME = elf32-powerpc 37 30 BFD_ARCH = powerpc:common 38 TARGET = ppc-linux-gnu39 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ppc32/bin40 31 41 32 JOBFILE = ../../../../tools/jobfile.py 42 43 ifeq ($(COMPILER),gcc_native)44 CC = gcc45 AS = as46 LD = ld47 OBJCOPY = objcopy48 OBJDUMP = objdump49 endif50 51 ifeq ($(COMPILER),gcc_cross)52 CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc53 AS = $(TOOLCHAIN_DIR)/$(TARGET)-as54 LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld55 OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy56 OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump57 endif58 33 59 34 CFLAGS = \ -
boot/arch/sparc64/loader/Makefile
r3ad309d r177e4ea 32 32 .PHONY: all clean 33 33 34 all: ../../../../version ../../../../Makefile.co nfig ../../../../config.h ../../../../config.defs34 all: ../../../../version ../../../../Makefile.common ../../../../Makefile.config ../../../../config.h ../../../../config.defs 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) -
boot/arch/sparc64/loader/Makefile.build
r3ad309d r177e4ea 32 32 33 33 include ../../../../version 34 include ../../../../Makefile.common 34 35 include ../../../../Makefile.config 35 36 include ../../../../config.defs -
boot/arch/sparc64/loader/Makefile.toolchain
r3ad309d r177e4ea 27 27 # 28 28 29 ## Toolchain configuration30 #31 32 ifndef CROSS_PREFIX33 CROSS_PREFIX = /usr/local34 endif35 36 29 BFD_NAME = elf64-sparc 37 30 BFD_ARCH = sparc 38 TARGET = sparc64-linux-gnu39 TOOLCHAIN_DIR = $(CROSS_PREFIX)/sparc64/bin40 31 41 32 JOBFILE = ../../../../tools/jobfile.py 42 43 ifeq ($(COMPILER),gcc_native)44 CC = gcc45 AS = as46 LD = ld47 OBJCOPY = objcopy48 OBJDUMP = objdump49 endif50 51 ifeq ($(COMPILER),gcc_cross)52 CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc53 AS = $(TOOLCHAIN_DIR)/$(TARGET)-as54 LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld55 OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy56 OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump57 endif58 33 59 34 CFLAGS = \ -
kernel/Makefile
r3ad309d r177e4ea 31 31 .PHONY: all clean 32 32 33 all: ../version ../Makefile.co nfig ../config.h ../config.defs33 all: ../version ../Makefile.common ../Makefile.config ../config.h ../config.defs 34 34 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 35 35 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) -
kernel/Makefile.build
r3ad309d r177e4ea 33 33 include Makefile.common 34 34 include ../version 35 include ../Makefile.common 35 36 include ../Makefile.config 36 37 include ../config.defs … … 42 43 INCLUDES = generic/include 43 44 OPTIMIZATION = 3 44 45 ifndef CROSS_PREFIX46 CROSS_PREFIX = /usr/local47 endif48 45 49 46 ## Common compiler flags … … 89 86 # Makefile.inc. 90 87 # 88 91 89 ATSIGN ?= @ 92 90 93 91 ## Cross-platform assembly to start a symtab.data section 94 92 # 93 95 94 SYMTAB_SECTION = ".section symtab.data, \"a\", $(ATSIGN)progbits;" 96 95 97 ## Simple detection for the type of the host system 98 # 99 HOST = $(shell uname) 100 101 ## On Solaris, some utilities have slightly different names 102 # 103 ifeq ($(HOST),SunOS) 104 BINUTILS_PREFIX = "g" 105 else 106 BINUTILS_PREFIX = "" 107 endif 108 109 ## Toolchain configuration 96 ## Compilation options 110 97 # 111 98 112 99 ifeq ($(COMPILER),gcc_native) 113 CC = gcc114 GCC = gcc115 AS = $(BINUTILS_PREFIX)as116 LD = $(BINUTILS_PREFIX)ld117 OBJCOPY = $(BINUTILS_PREFIX)objcopy118 OBJDUMP = $(BINUTILS_PREFIX)objdump119 100 CFLAGS = $(GCC_CFLAGS) 120 101 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) … … 122 103 123 104 ifeq ($(COMPILER),gcc_cross) 124 CC = $(TOOLCHAIN_DIR)/bin/$(TARGET)-gcc125 GCC = $(CC)126 AS = $(TOOLCHAIN_DIR)/bin/$(TARGET)-as127 LD = $(TOOLCHAIN_DIR)/bin/$(TARGET)-ld128 OBJCOPY = $(TOOLCHAIN_DIR)/bin/$(TARGET)-objcopy129 OBJDUMP = $(TOOLCHAIN_DIR)/bin/$(TARGET)-objdump130 105 CFLAGS = $(GCC_CFLAGS) 131 106 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) … … 133 108 134 109 ifeq ($(COMPILER),icc) 135 CC = icc136 GCC = gcc137 AS = as138 LD = ld139 OBJCOPY = objcopy140 OBJDUMP = objdump141 110 CFLAGS = $(ICC_CFLAGS) 142 111 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) … … 144 113 145 114 ifeq ($(COMPILER),suncc) 146 CC = suncc147 GCC = gcc148 AS = $(BINUTILS_PREFIX)as149 LD = $(BINUTILS_PREFIX)ld150 OBJCOPY = $(BINUTILS_PREFIX)objcopy151 OBJDUMP = $(BINUTILS_PREFIX)objdump152 115 CFLAGS = $(SUNCC_CFLAGS) 153 116 DEFS += $(CONFIG_DEFS) … … 156 119 157 120 ifeq ($(COMPILER),clang) 158 CC = clang159 GCC = gcc160 AS = $(BINUTILS_PREFIX)as161 LD = $(BINUTILS_PREFIX)ld162 OBJCOPY = $(BINUTILS_PREFIX)objcopy163 OBJDUMP = $(BINUTILS_PREFIX)objdump164 121 CFLAGS = $(CLANG_CFLAGS) 165 122 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) -
kernel/arch/abs32le/Makefile.inc
r3ad309d r177e4ea 27 27 # 28 28 29 ## Toolchain configuration30 #31 32 29 BFD = binary 33 30 34 31 ifeq ($(COMPILER),gcc_cross) 35 TOOLCHAIN_DIR = $(CROSS_PREFIX)/$(CROSS_TARGET)36 37 32 ifeq ($(CROSS_TARGET),arm32) 38 TARGET = arm-linux-gnu39 33 ATSIGN = % 40 34 endif 41 35 42 ifeq ($(CROSS_TARGET),ia32)43 TARGET = i686-pc-linux-gnu44 endif45 46 36 ifeq ($(CROSS_TARGET),mips32) 47 TARGET = mipsel-linux-gnu48 37 GCC_CFLAGS += -mno-abicalls 49 38 endif -
kernel/arch/amd64/Makefile.inc
r3ad309d r177e4ea 27 27 # 28 28 29 ## Toolchain configuration30 #31 32 29 BFD_NAME = elf64-x86-64 33 30 BFD_ARCH = i386:x86-64 34 31 BFD = binary 35 TARGET = amd64-linux-gnu36 32 CLANG_ARCH = x86_64 37 TOOLCHAIN_DIR = $(CROSS_PREFIX)/amd6438 33 39 34 FPU_NO_CFLAGS = -mno-sse -mno-sse2 -
kernel/arch/arm32/Makefile.inc
r3ad309d r177e4ea 27 27 # 28 28 29 ## Toolchain configuration30 #31 32 29 BFD_NAME = elf32-littlearm 33 30 BFD_ARCH = arm 34 31 BFD = binary 35 TARGET = arm-linux-gnu36 TOOLCHAIN_DIR = $(CROSS_PREFIX)/arm3237 32 38 33 ATSIGN = % -
kernel/arch/ia32/Makefile.inc
r3ad309d r177e4ea 27 27 # 28 28 29 ## Toolchain configuration30 #31 32 29 BFD_NAME = elf32-i386 33 30 BFD_ARCH = i386 34 31 BFD = binary 35 TARGET = i686-pc-linux-gnu36 32 CLANG_ARCH = i386 37 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ia3238 33 39 34 BITS = 32 -
kernel/arch/ia64/Makefile.inc
r3ad309d r177e4ea 27 27 # 28 28 29 ## Toolchain configuration30 #31 32 29 BFD_NAME = elf64-little 33 30 BFD_ARCH = ia64-elf64 34 TARGET = ia64-pc-linux-gnu35 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ia6436 31 37 32 CMN1 = -mconstant-gp -fno-unwind-tables -mfixed-range=f32-f127 -
kernel/arch/mips32/Makefile.inc
r3ad309d r177e4ea 27 27 # 28 28 29 ## Toolchain configuration30 #31 32 29 BFD_ARCH = mips 33 30 BFD = binary 34 TARGET = mipsel-linux-gnu35 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips3236 37 31 GCC_CFLAGS += -mno-abicalls -G 0 -fno-zero-initialized-in-bss -mips3 38 32 … … 48 42 ifeq ($(MACHINE),bgxemul) 49 43 BFD_NAME = elf32-tradbigmips 50 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips32eb51 TARGET = mips-linux-gnu52 44 ENDIANESS = BE 53 45 GCC_CFLAGS += -D__BE__ -
kernel/arch/ppc32/Makefile.inc
r3ad309d r177e4ea 27 27 # 28 28 29 ## Toolchain configuration30 #31 32 29 BFD_NAME = elf32-powerpc 33 30 BFD_ARCH = powerpc:common 34 31 BFD = binary 35 TARGET = ppc-linux-gnu36 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ppc3237 32 38 33 GCC_CFLAGS += -mcpu=powerpc -msoft-float -m32 -
kernel/arch/sparc64/Makefile.inc
r3ad309d r177e4ea 27 27 # 28 28 29 ## Toolchain configuration30 #31 32 29 BFD_NAME = elf64-sparc 33 30 BFD_ARCH = sparc 34 31 BFD = binary 35 TARGET = sparc64-linux-gnu36 TOOLCHAIN_DIR = $(CROSS_PREFIX)/sparc6437 32 38 33 GCC_CFLAGS += -m64 -mcpu=ultrasparc -
uspace/Makefile
r3ad309d r177e4ea 30 30 # 31 31 32 -include ../Makefile.common 32 33 -include ../Makefile.config 33 34 -
uspace/app/Makefile.common
r3ad309d r177e4ea 60 60 all: \ 61 61 $(LIBC_PREFIX)/../../../version \ 62 $(LIBC_PREFIX)/../../../Makefile.common \ 62 63 $(LIBC_PREFIX)/../../../Makefile.config \ 63 64 $(LIBC_PREFIX)/../../../config.h \ -
uspace/lib/Makefile.common
r3ad309d r177e4ea 50 50 OBJECTS = $(addsuffix .o,$(basename $(SOURCES))) 51 51 52 -include $(USPACE_PREFIX)/../Makefile.common 52 53 -include $(USPACE_PREFIX)/../Makefile.config 53 54 include $(LIBC_PREFIX)/Makefile.toolchain … … 59 60 all: \ 60 61 $(LIBC_PREFIX)/../../../version \ 62 $(LIBC_PREFIX)/../../../Makefile.common \ 61 63 $(LIBC_PREFIX)/../../../Makefile.config \ 62 64 $(LIBC_PREFIX)/../../../config.h \ -
uspace/lib/libc/Makefile
r3ad309d r177e4ea 28 28 # 29 29 30 -include ../../../Makefile.common 30 31 -include ../../../Makefile.config 31 32 -
uspace/lib/libc/Makefile.toolchain
r3ad309d r177e4ea 53 53 AFLAGS = 54 54 55 ## Cross-toolchain prefix56 #57 58 ifndef CROSS_PREFIX59 CROSS_PREFIX = /usr/local60 endif61 62 55 ## Setup platform configuration 63 56 # 64 57 58 -include $(LIBC_PREFIX)/../../../Makefile.common 65 59 -include $(LIBC_PREFIX)/../../../Makefile.config 66 60 -include $(LIBC_PREFIX)/../../../config.defs 67 61 -include $(LIBC_PREFIX)/arch/$(UARCH)/Makefile.inc 68 62 69 ## Simple detection of the host system 70 # 71 HOST = $(shell uname) 72 73 ## On Solaris, some utilities have different names 74 # 75 ifeq ($(HOST),SunOS) 76 BINUTILS_PREFIX = "g" 77 else 78 BINUTILS_PREFIX = "" 79 endif 80 81 ## Toolchain configuration 63 ## Compilation options 82 64 # 83 65 … … 85 67 86 68 ifeq ($(COMPILER),gcc_cross) 87 CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc88 GCC = $(CC)89 AS = $(TOOLCHAIN_DIR)/$(TARGET)-as90 LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld91 AR = $(TOOLCHAIN_DIR)/$(TARGET)-ar92 OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy93 OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump94 69 CFLAGS = $(GCC_CFLAGS) 95 70 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) … … 97 72 98 73 ifeq ($(COMPILER),gcc_native) 99 CC = gcc100 GCC = $(CC)101 AS = $(BINUTILS_PREFIX)as102 LD = $(BINUTILS_PREFIX)ld103 AR = $(BINUTILS_PREFIX)ar104 OBJCOPY = $(BINUTILS_PREFIX)objcopy105 OBJDUMP = $(BINUTILS_PREFIX)objdump106 74 CFLAGS = $(GCC_CFLAGS) 107 75 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) … … 109 77 110 78 ifeq ($(COMPILER),icc) 111 CC = icc112 GCC = gcc113 AS = as114 LD = ld115 AR = ar116 OBJCOPY = objcopy117 OBJDUMP = objdump118 79 CFLAGS = $(ICC_CFLAGS) 119 80 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) … … 121 82 122 83 ifeq ($(COMPILER),clang) 123 CC = clang124 GCC = gcc125 AS = $(BINUTILS_PREFIX)as126 LD = $(BINUTILS_PREFIX)ld127 AR = $(BINUTILS_PREFIX)ar128 OBJCOPY = $(BINUTILS_PREFIX)objcopy129 OBJDUMP = $(BINUTILS_PREFIX)objdump130 84 CFLAGS = $(CLANG_CFLAGS) 131 85 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) -
uspace/lib/libc/arch/abs32le/Makefile.inc
r3ad309d r177e4ea 27 27 # 28 28 29 ## Toolchain configuration30 #31 32 ifeq ($(COMPILER),gcc_cross)33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/$(CROSS_TARGET)/bin34 35 ifeq ($(CROSS_TARGET),arm32)36 TARGET = arm-linux-gnu37 endif38 39 ifeq ($(CROSS_TARGET),ia32)40 TARGET = i686-pc-linux-gnu41 endif42 43 ifeq ($(CROSS_TARGET),mips32)44 TARGET = mipsel-linux-gnu45 endif46 endif47 48 29 ifeq ($(COMPILER),clang) 49 30 CLANG_ARCH = i386 -
uspace/lib/libc/arch/amd64/Makefile.inc
r3ad309d r177e4ea 27 27 # 28 28 29 ## Toolchain configuration30 #31 32 TARGET = amd64-linux-gnu33 29 CLANG_ARCH = x86_64 34 TOOLCHAIN_DIR = $(CROSS_PREFIX)/amd64/bin35 30 36 31 ARCH_SOURCES = \ -
uspace/lib/libc/arch/arm32/Makefile.inc
r3ad309d r177e4ea 28 28 # 29 29 30 ## Toolchain configuration31 #32 33 TARGET = arm-linux-gnu34 TOOLCHAIN_DIR = $(CROSS_PREFIX)/arm32/bin35 36 30 ARCH_SOURCES = \ 37 31 arch/$(UARCH)/src/entry.s \ -
uspace/lib/libc/arch/ia32/Makefile.inc
r3ad309d r177e4ea 27 27 # 28 28 29 ## Toolchain configuration30 #31 32 TARGET = i686-pc-linux-gnu33 29 CLANG_ARCH = i386 34 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ia32/bin35 30 36 31 ARCH_SOURCES = \ -
uspace/lib/libc/arch/ia64/Makefile.inc
r3ad309d r177e4ea 27 27 # 28 28 29 ## Toolchain configuration30 #31 32 TARGET = ia64-pc-linux-gnu33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ia64/bin34 35 29 ARCH_SOURCES = \ 36 30 arch/$(UARCH)/src/entry.s \ -
uspace/lib/libc/arch/mips32/Makefile.inc
r3ad309d r177e4ea 27 27 # 28 28 29 ## Toolchain configuration30 #31 32 TARGET = mipsel-linux-gnu33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips32/bin34 35 29 ARCH_SOURCES = \ 36 30 arch/$(UARCH)/src/entry.s \ -
uspace/lib/libc/arch/mips32eb/Makefile.inc
r3ad309d r177e4ea 27 27 # 28 28 29 ## Toolchain configuration30 #31 32 TARGET = mips-linux-gnu33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips32eb/bin34 35 29 ARCH_SOURCES = \ 36 30 arch/$(UARCH)/src/entry.s \ -
uspace/lib/libc/arch/ppc32/Makefile.inc
r3ad309d r177e4ea 27 27 # 28 28 29 ## Toolchain configuration30 #31 32 TARGET = ppc-linux-gnu33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/ppc32/bin34 35 29 ARCH_SOURCES = \ 36 30 arch/$(UARCH)/src/entry.s \ -
uspace/lib/libc/arch/sparc64/Makefile.inc
r3ad309d r177e4ea 27 27 # 28 28 29 ## Toolchain configuration30 #31 32 TARGET = sparc64-linux-gnu33 TOOLCHAIN_DIR = $(CROSS_PREFIX)/sparc64/bin34 35 29 ARCH_SOURCES = \ 36 30 arch/$(UARCH)/src/entry.s \ -
uspace/srv/Makefile.common
r3ad309d r177e4ea 64 64 all: \ 65 65 $(LIBC_PREFIX)/../../../version \ 66 $(LIBC_PREFIX)/../../../Makefile.common \ 66 67 $(LIBC_PREFIX)/../../../Makefile.config \ 67 68 $(LIBC_PREFIX)/../../../config.h \ -
uspace/srv/hid/console/Makefile
r3ad309d r177e4ea 32 32 .PHONY: all clean 33 33 34 all: $(LIBC_PREFIX)/../../../Makefile.co nfig $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)34 all: $(LIBC_PREFIX)/../../../Makefile.common $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) -
uspace/srv/hid/fb/Makefile
r3ad309d r177e4ea 32 32 .PHONY: all clean 33 33 34 all: $(LIBC_PREFIX)/../../../Makefile.co nfig $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)34 all: $(LIBC_PREFIX)/../../../Makefile.common $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) -
uspace/srv/hid/kbd/Makefile
r3ad309d r177e4ea 32 32 .PHONY: all clean 33 33 34 all: $(LIBC_PREFIX)/../../../Makefile.co nfig $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS)34 all: $(LIBC_PREFIX)/../../../Makefile.common $(LIBC_PREFIX)/../../../Makefile.config $(LIBC_PREFIX)/../../../config.h $(LIBC_PREFIX)/../../../config.defs $(LIBS) 35 35 -[ -f $(DEPEND) ] && mv -f $(DEPEND) $(DEPEND_PREV) 36 36 $(MAKE) -f Makefile.build PRECHECK=$(PRECHECK) -
uspace/srv/loader/Makefile
r3ad309d r177e4ea 28 28 # 29 29 30 -include ../../../Makefile.common 30 31 -include ../../../Makefile.config 31 32 -include arch/$(UARCH)/Makefile.inc -
uspace/srv/net/Makefile
r3ad309d r177e4ea 27 27 # 28 28 29 include ../../../Makefile.common 29 30 include ../../../Makefile.config 30 31 -
uspace/srv/net/app/echo/Makefile
r3ad309d r177e4ea 32 32 STRUCTURES = $(NET_BASE)structures/ 33 33 34 include ../../../../../Makefile.common 34 35 include ../../../../../Makefile.config 35 36 -
uspace/srv/net/app/nettest1/Makefile
r3ad309d r177e4ea 32 32 STRUCTURES = $(NET_BASE)structures/ 33 33 34 include ../../../../../Makefile.common 34 35 include ../../../../../Makefile.config 35 36 -
uspace/srv/net/app/nettest2/Makefile
r3ad309d r177e4ea 32 32 STRUCTURES = $(NET_BASE)structures/ 33 33 34 include ../../../../../Makefile.common 34 35 include ../../../../../Makefile.config 35 36 -
uspace/srv/net/app/ping/Makefile
r3ad309d r177e4ea 32 32 STRUCTURES = $(NET_BASE)structures/ 33 33 34 include ../../../../../Makefile.common 34 35 include ../../../../../Makefile.config 35 36 -
uspace/srv/net/net/Makefile
r3ad309d r177e4ea 32 32 STRUCTURES = $(NET_BASE)structures/ 33 33 34 include $(NET_BASE)../../../Makefile.common 34 35 include $(NET_BASE)../../../Makefile.config 35 36 -
uspace/srv/net/net/start/Makefile
r3ad309d r177e4ea 32 32 STRUCTURES = $(NET_BASE)structures/ 33 33 34 include ../../../../../Makefile.common 34 35 include ../../../../../Makefile.config 35 36 -
uspace/srv/net/netif/dp8390/Makefile
r3ad309d r177e4ea 32 32 STRUCTURES = $(NET_BASE)structures/ 33 33 34 include $(NET_BASE)../../../Makefile.common 34 35 include $(NET_BASE)../../../Makefile.config 35 36 -
uspace/srv/net/netif/lo/Makefile
r3ad309d r177e4ea 32 32 STRUCTURES = $(NET_BASE)structures/ 33 33 34 include $(NET_BASE)../../../Makefile.common 34 35 include $(NET_BASE)../../../Makefile.config 35 36
Note:
See TracChangeset
for help on using the changeset viewer.