Changes in kernel/Makefile [855e0d8:c0699467] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
r855e0d8 rc0699467 59 59 REAL_MAP = generic/src/debug/real_map 60 60 61 ABI_INCLUDE = generic/include/abi 61 62 ARCH_INCLUDE = generic/include/arch 62 63 GENARCH_INCLUDE = generic/include/genarch … … 75 76 76 77 clean: 77 rm -f $(DEPEND) $(DEPEND_PREV) $(RAW) $(BIN) $(MAP) $(JOB) $(MAP_PREV) $(DISASM) $(DUMP) $(REAL_MAP).* $(A RCH_INCLUDE) $(GENARCH_INCLUDE) arch/*/_link.ld arch/*/include/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 78 79 find generic/src/ arch/*/src/ genarch/src/ test/ -name '*.o' -follow -exec rm \{\} \; 79 80 … … 94 95 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 95 96 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 96 - Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \97 -std=gnu99 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 97 98 -Werror-implicit-function-declaration -Wwrite-strings \ 98 99 -pipe … … 134 135 # 135 136 AFLAGS = 136 LFLAGS = - N-T $(LINK) -M137 LFLAGS = -n -T $(LINK) -M 137 138 138 139 # … … 226 227 generic/src/proc/task.c \ 227 228 generic/src/proc/the.c \ 228 generic/src/proc/tasklet.c \229 229 generic/src/syscall/syscall.c \ 230 230 generic/src/syscall/copy.c \ 231 generic/src/mm/reserve.c \ 231 232 generic/src/mm/buddy.c \ 232 233 generic/src/mm/frame.c \ … … 240 241 generic/src/lib/func.c \ 241 242 generic/src/lib/memstr.c \ 243 generic/src/lib/memfnc.c \ 242 244 generic/src/lib/sort.c \ 243 245 generic/src/lib/str.c \ … … 328 330 endif 329 331 330 ifeq ($(CONFIG_FPU),y)331 ifeq ($(KARCH),ia32)332 TEST_FPU1 = y333 TEST_SSE1 = y334 GENERIC_SOURCES += test/fpu/fpu1_x86.c335 endif336 337 ifeq ($(KARCH),amd64)338 TEST_FPU1 = y339 TEST_SSE1 = y340 GENERIC_SOURCES += test/fpu/fpu1_x86.c341 endif342 343 ifeq ($(KARCH),ia64)344 TEST_FPU1 = y345 GENERIC_SOURCES += test/fpu/fpu1_ia64.c346 endif347 348 ifeq ($(KARCH),mips32)349 TEST_MIPS2 = y350 endif351 endif352 353 ifneq ($(TEST_FPU1),y)354 GENERIC_SOURCES += test/fpu/fpu1_skip.c355 endif356 357 ifeq ($(TEST_SSE1),y)358 GENERIC_SOURCES += test/fpu/sse1.c359 else360 GENERIC_SOURCES += test/fpu/sse1_skip.c361 endif362 363 ifeq ($(TEST_MIPS2),y)364 GENERIC_SOURCES += test/fpu/mips2.c365 else366 GENERIC_SOURCES += test/fpu/mips2_skip.c367 endif368 369 332 endif 370 333 … … 381 344 generic/src/main/kinit.c \ 382 345 generic/src/proc/the.c \ 383 generic/src/proc/tasklet.c \384 346 generic/src/mm/frame.c \ 385 347 generic/src/mm/page.c \ … … 439 401 $(JOBFILE) $(JOB) $< $@ as asm $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) 440 402 endif 441 442 #443 # The FPU tests are the only objects for which we allow the compiler to generate444 # FPU instructions.445 #446 447 test/fpu/%.o: test/fpu/%.c $(DEPEND)448 $(CC) $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) -c -o $@ $<449 ifeq ($(PRECHECK),y)450 $(JOBFILE) $(JOB) $< $@ cc test $(DEFS) $(CFLAGS) $(EXTRA_FLAGS)451 endif452 453 #454 # Ordinary objects.455 #456 403 457 404 %.o: %.c $(DEPEND) … … 486 433 $(GENMAP) $(MAP_PREV) $(DUMP) $@ 487 434 488 $(DEPEND): $(A RCH_INCLUDE) $(GENARCH_INCLUDE) $(COMMON_HEADER_ARCH)435 $(DEPEND): $(ABI_INCLUDE) $(ARCH_INCLUDE) $(GENARCH_INCLUDE) $(COMMON_HEADER_ARCH) 489 436 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENARCH_SOURCES) $(GENERIC_SOURCES) > $@ 2> /dev/null 490 437 -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@ 491 438 439 $(ABI_INCLUDE): ../abi/include/ 440 ln -sfn ../../$< $@ 441 492 442 $(ARCH_INCLUDE): arch/$(KARCH)/include/ 493 443 ln -sfn ../../$< $@
Note:
See TracChangeset
for help on using the changeset viewer.