Changes in kernel/Makefile [072607b:550b4e0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
r072607b r550b4e0 48 48 # 49 49 50 AGDEPEND = Makefile.ag.depend51 50 DEPEND = Makefile.depend 52 51 DEPEND_PREV = $(DEPEND).prev … … 67 66 SIZEOK_MAP = generic/src/debug/sizeok_map.o 68 67 69 .PHONY: all clean autogen_clean68 .PHONY: all clean 70 69 71 70 all: $(VERSION_DEF) $(COMMON_MAKEFILE) $(COMMON_HEADER) $(CONFIG_MAKEFILE) $(CONFIG_HEADER) $(BIN) $(DISASM) 72 71 -[ -f $(DEPEND) ] && cp -a $(DEPEND) $(DEPEND_PREV) 73 72 74 clean: autogen_clean73 clean: 75 74 rm -f $(DEPEND) $(DEPEND_PREV) $(RAW) $(BIN) $(MAP) $(JOB) $(MAP_PREV) $(DISASM) $(DUMP) $(REAL_MAP).* arch/*/_link.ld arch/*/include/arch/common.h 76 find generic/src/ arch/*/src/ genarch/src/ test/ -name '*.o' -follow -exec rm '{}'\;75 find generic/src/ arch/*/src/ genarch/src/ test/ -name '*.o' -follow -exec rm \{\} \; 77 76 78 77 ## Common compiler flags … … 106 105 CLANG_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 107 106 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 108 - std=gnu99 -Wall -Werror -Wextra -Wno-unused-parameter -Wmissing-prototypes \107 -Wall -Werror -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 109 108 -Werror-implicit-function-declaration -Wwrite-strings \ 110 -integrated-as -pipe -target $(CLANG_TARGET) 109 -integrated-as \ 110 -pipe -target $(CLANG_TARGET) 111 111 112 112 ifeq ($(CONFIG_DEBUG),y) … … 129 129 # AFLAGS and LFLAGS must be initialized before the inclusion. 130 130 # 131 AFLAGS = --fatal-warnings132 LFLAGS = -n -T $(LINK) -M --fatal-warnings131 AFLAGS = 132 LFLAGS = -n -T $(LINK) -M 133 133 134 134 # … … 139 139 -include genarch/Makefile.inc 140 140 -include $(DEPEND) 141 -include $(AGDEPEND)142 141 143 142 ## The at-sign … … 173 172 endif 174 173 175 ifeq ($(COMPILER),gcc_helenos)176 CFLAGS = $(GCC_CFLAGS)177 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)178 INSTRUMENTATION = -finstrument-functions179 endif180 181 174 ifeq ($(COMPILER),icc) 182 175 CFLAGS = $(ICC_CFLAGS) … … 199 192 generic/src/adt/bitmap.c \ 200 193 generic/src/adt/btree.c \ 201 generic/src/adt/cht.c \202 194 generic/src/adt/hash_table.c \ 203 195 generic/src/adt/list.c \ … … 206 198 generic/src/console/prompt.c \ 207 199 generic/src/cpu/cpu.c \ 208 generic/src/cpu/cpu_mask.c \209 200 generic/src/ddi/ddi.c \ 210 201 generic/src/ddi/irq.c \ … … 215 206 generic/src/debug/debug.c \ 216 207 generic/src/interrupt/interrupt.c \ 217 generic/src/log/log.c \218 208 generic/src/main/main.c \ 219 209 generic/src/main/kinit.c \ … … 230 220 generic/src/mm/km.c \ 231 221 generic/src/mm/reserve.c \ 222 generic/src/mm/buddy.c \ 232 223 generic/src/mm/frame.c \ 233 224 generic/src/mm/page.c \ … … 237 228 generic/src/mm/backend_elf.c \ 238 229 generic/src/mm/backend_phys.c \ 239 generic/src/mm/backend_user.c \240 230 generic/src/mm/slab.c \ 241 231 generic/src/lib/func.c \ … … 261 251 generic/src/synch/semaphore.c \ 262 252 generic/src/synch/smc.c \ 263 generic/src/synch/smp_memory_barrier.c \264 253 generic/src/synch/waitq.c \ 265 254 generic/src/synch/futex.c \ 266 generic/src/synch/workqueue.c \267 generic/src/synch/rcu.c \268 255 generic/src/smp/ipi.c \ 269 256 generic/src/smp/smp.c \ 270 generic/src/smp/smp_call.c \271 257 generic/src/ipc/ipc.c \ 272 258 generic/src/ipc/sysipc.c \ … … 279 265 generic/src/ipc/ops/datawrite.c \ 280 266 generic/src/ipc/ops/debug.c \ 281 generic/src/ipc/ops/pagein.c \282 267 generic/src/ipc/ops/sharein.c \ 283 268 generic/src/ipc/ops/shareout.c \ … … 319 304 test/atomic/atomic1.c \ 320 305 test/btree/btree1.c \ 321 test/cht/cht1.c \322 306 test/avltree/avltree1.c \ 323 307 test/fault/fault1.c \ … … 329 313 test/synch/semaphore1.c \ 330 314 test/synch/semaphore2.c \ 331 test/synch/workqueue2.c \332 test/synch/workqueue3.c \333 test/synch/rcu1.c \334 315 test/print/print1.c \ 335 316 test/print/print2.c \ … … 337 318 test/print/print4.c \ 338 319 test/print/print5.c \ 339 test/thread/thread1.c \ 340 test/smpcall/smpcall1.c 320 test/thread/thread1.c 341 321 342 322 ifeq ($(KARCH),mips32) … … 381 361 GENARCH_OBJECTS := $(addsuffix .o,$(basename $(GENARCH_SOURCES))) 382 362 383 GENARCH_AUTOGENS_H := $(addsuffix .h,$(basename $(GENARCH_AUTOGENS_AG)))384 GENARCH_AUTOGENS_PROBE_C := $(addsuffix .ag.probe.c,$(basename $(GENARCH_AUTOGENS_AG)))385 GENARCH_AUTOGENS_PROBE_S := $(addsuffix .ag.probe.s,$(basename $(GENARCH_AUTOGENS_AG)))386 387 ARCH_AUTOGENS_H := $(addsuffix .h,$(basename $(ARCH_AUTOGENS_AG)))388 ARCH_AUTOGENS_PROBE_C := $(addsuffix .ag.probe.c,$(basename $(ARCH_AUTOGENS_AG)))389 ARCH_AUTOGENS_PROBE_S := $(addsuffix .ag.probe.s,$(basename $(ARCH_AUTOGENS_AG)))390 391 AUTOGENS_H := $(ARCH_AUTOGENS_H) $(GENARCH_AUTOGENS_H)392 AUTOGENS_AG := $(ARCH_AUTOGENS_AG) $(GENARCH_AUTOGENS_AG)393 394 363 LFLAGS_LTO := $(addprefix -Xlinker ,$(LFLAGS)) 395 364 … … 422 391 $(LINK): $(LINK).in $(DEPEND) 423 392 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $< | grep -v "^\#" > $@ 424 425 %.h: %.ag426 $(AUTOGEN) probe $< >$<.probe.c427 $(CC) $(DEFS) $(CFLAGS) -S -o $<.probe.s $<.probe.c428 $(AUTOGEN) generate $< <$<.probe.s >$@429 393 430 394 %.o: %.S $(DEPEND) … … 471 435 $(GENMAP) $(MAP_PREV) $(DUMP) $@ 472 436 473 $(AUTOGENS_H): $(AGDEPEND) 474 475 $(AGDEPEND): $(AUTOGENS_AG) 476 echo "# DO NOT EDIT" >$@ 477 for g in $^; do \ 478 h=`dirname $$g`/`basename $$g .ag`.h; \ 479 for l in `$(AUTOGEN) depend $$g`; do \ 480 echo "$$h: $$l" >>$@; \ 481 done \ 482 done 483 484 $(DEPEND): $(COMMON_HEADER_ARCH) $(AUTOGENS_H) 437 $(DEPEND): $(COMMON_HEADER_ARCH) 485 438 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENARCH_SOURCES) $(GENERIC_SOURCES) > $@ 2> /dev/null 486 439 -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@ … … 488 441 $(COMMON_HEADER_ARCH): $(COMMON_HEADER) 489 442 ln -sfn ../../../../$< $@ 490 491 autogen_clean:492 -rm $(ARCH_AUTOGENS_H) $(ARCH_AUTOGENS_PROBE_C) $(ARCH_AUTOGENS_PROBE_S)493 -rm $(GENARCH_AUTOGENS_H) $(GENARCH_AUTOGENS_PROBE_C) $(GENARCH_AUTOGENS_PROBE_S)494 -rm $(AGDEPEND)
Note:
See TracChangeset
for help on using the changeset viewer.