Changes in / [05bab88:e4a1497] in mainline
- Files:
-
- 575 added
- 575 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile
r05bab88 re4a1497 61 61 mkdir "$(DIST_PATH)/inc/c/" 62 62 cp -r -L "$(USPACE_PATH)/lib/c/include/." "$(DIST_PATH)/inc/c/" 63 cp -r -L "$(ROOT_PATH)/abi/include/." "$(DIST_PATH)/inc/c/"64 cp -r -L "$(USPACE_PATH)/lib/c/arch/$(UARCH)/include/." "$(DIST_PATH)/inc/c/"65 63 cat "$(USPACE_PATH)/lib/c/arch/$(UARCH)/_link.ld" | sed 's/^STARTUP(.*)$$//g' > "$(DIST_PATH)/inc/_link.ld" 66 64 endif -
kernel/Makefile
r05bab88 re4a1497 36 36 COMMON_MAKEFILE = $(ROOT_PATH)/Makefile.common 37 37 COMMON_HEADER = $(ROOT_PATH)/common.h 38 COMMON_HEADER_ARCH = arch/$(KARCH)/include/ arch/common.h38 COMMON_HEADER_ARCH = arch/$(KARCH)/include/common.h 39 39 40 40 CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config … … 59 59 REAL_MAP = generic/src/debug/real_map 60 60 61 ABI_INCLUDE = generic/include/abi 62 ARCH_INCLUDE = generic/include/arch 63 GENARCH_INCLUDE = generic/include/genarch 64 61 65 GENMAP = tools/genmap.py 62 66 JOBFILE = $(ROOT_PATH)/tools/jobfile.py … … 72 76 73 77 clean: 74 rm -f $(DEPEND) $(DEPEND_PREV) $(RAW) $(BIN) $(MAP) $(JOB) $(MAP_PREV) $(DISASM) $(DUMP) $(REAL_MAP).* arch/*/_link.ld arch/*/include/arch/common.h78 rm -f $(DEPEND) $(DEPEND_PREV) $(RAW) $(BIN) $(MAP) $(JOB) $(MAP_PREV) $(DISASM) $(DUMP) $(REAL_MAP).* $(ABI_INCLUDE) $(ARCH_INCLUDE) $(GENARCH_INCLUDE) arch/*/_link.ld arch/*/include/common.h 75 79 find generic/src/ arch/*/src/ genarch/src/ test/ -name '*.o' -follow -exec rm \{\} \; 76 80 … … 78 82 # 79 83 80 INCLUDES = generic/include genarch/include arch/$(KARCH)/include ../abi/include 81 INCLUDES_FLAGS = $(addprefix -I,$(INCLUDES)) 84 INCLUDES = generic/include 82 85 83 86 ifeq ($(CONFIG_OPTIMIZE_FOR_SIZE),y) … … 89 92 DEFS = -DKERNEL -DRELEASE=$(RELEASE) "-DCOPYRIGHT=$(COPYRIGHT)" "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__ 90 93 91 GCC_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \94 GCC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 92 95 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 93 96 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ … … 96 99 -pipe 97 100 98 ICC_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \101 ICC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 99 102 -ffreestanding -fno-builtin -nostdlib -nostdinc -Wall -Wmissing-prototypes \ 100 103 -Werror-implicit-function-declaration -wd170 101 104 102 CLANG_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \105 CLANG_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 103 106 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 104 107 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ … … 432 435 $(GENMAP) $(MAP_PREV) $(DUMP) $@ 433 436 434 $(DEPEND): $( COMMON_HEADER_ARCH)437 $(DEPEND): $(ABI_INCLUDE) $(ARCH_INCLUDE) $(GENARCH_INCLUDE) $(COMMON_HEADER_ARCH) 435 438 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENARCH_SOURCES) $(GENERIC_SOURCES) > $@ 2> /dev/null 436 439 -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@ 437 440 441 $(ABI_INCLUDE): ../abi/include/ 442 ln -sfn ../../$< $@ 443 444 $(ARCH_INCLUDE): arch/$(KARCH)/include/ 445 ln -sfn ../../$< $@ 446 447 $(GENARCH_INCLUDE): genarch/include/ 448 ln -sfn ../../$< $@ 449 438 450 $(COMMON_HEADER_ARCH): $(COMMON_HEADER) 439 ln -sfn ../../../ ../$< $@451 ln -sfn ../../../$< $@ -
uspace/Makefile.common
r05bab88 re4a1497 103 103 104 104 LIBC_PREFIX = $(LIB_PREFIX)/c 105 LIBC_INCLUDES_FLAGS = \106 -I$(LIBC_PREFIX)/include \107 -I$(LIBC_PREFIX)/arch/$(UARCH)/include \108 -I$(ROOT_PATH)/abi/include109 105 LIBSOFTFLOAT_PREFIX = $(LIB_PREFIX)/softfloat 110 106 LIBSOFTINT_PREFIX = $(LIB_PREFIX)/softint … … 184 180 find . -name '*.lo' -follow -exec rm \{\} \; 185 181 186 GCC_CFLAGS = $(LIBC_INCLUDES_FLAGS)-O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \182 GCC_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 187 183 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 188 184 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ … … 191 187 -pipe -g -D__$(ENDIANESS)__ 192 188 193 ICC_CFLAGS = $(LIBC_INCLUDES_FLAGS)-O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \189 ICC_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 194 190 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 195 191 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ … … 198 194 -pipe -g -D__$(ENDIANESS)__ 199 195 200 CLANG_CFLAGS = $(LIBC_INCLUDES_FLAGS)-O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \196 CLANG_CFLAGS = -I$(LIBC_PREFIX)/include -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 201 197 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 202 198 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ -
uspace/lib/c/Makefile
r05bab88 re4a1497 31 31 ROOT_PATH = $(USPACE_PREFIX)/.. 32 32 33 INCLUDE_ABI = include/abi 34 INCLUDE_LIBARCH = include/libarch 35 33 36 COMMON_MAKEFILE = $(ROOT_PATH)/Makefile.common 34 37 COMMON_HEADER = $(ROOT_PATH)/common.h 35 COMMON_HEADER_ARCH = arch/$(UARCH)/include/ libarch/common.h38 COMMON_HEADER_ARCH = arch/$(UARCH)/include/common.h 36 39 37 40 CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config … … 43 46 $(LIBC_PREFIX)/arch/$(UARCH)/_link-dlexe.ld 44 47 45 PRE_DEPEND = $( COMMON_HEADER_ARCH)48 PRE_DEPEND = $(INCLUDE_ABI) $(INCLUDE_LIBARCH) $(COMMON_HEADER_ARCH) 46 49 EXTRA_OUTPUT = $(LINKER_SCRIPTS) 47 EXTRA_CLEAN = $( COMMON_HEADER_ARCH) $(LINKER_SCRIPTS)50 EXTRA_CLEAN = $(INCLUDE_ABI) $(INCLUDE_LIBARCH) $(COMMON_HEADER_ARCH) $(LINKER_SCRIPTS) 48 51 LIBRARY = libc 49 52 SLIBRARY = libc.so.0.0 … … 159 162 include $(USPACE_PREFIX)/Makefile.common 160 163 164 $(INCLUDE_LIBARCH): arch/$(UARCH)/include 165 ln -sfn ../$< $@ 166 167 $(INCLUDE_ABI): ../../../abi/include/ 168 ln -sfn ../$< $@ 161 169 162 170 $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld: $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld.in … … 173 181 174 182 $(COMMON_HEADER_ARCH): $(COMMON_HEADER) 175 ln -sfn ../../../ ../$< $@183 ln -sfn ../../../$< $@ -
version
r05bab88 re4a1497 47 47 NAME = Fajtl 48 48 COPYRIGHT = Copyright (c) 2001-2012 HelenOS project 49
Note:
See TracChangeset
for help on using the changeset viewer.