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