Subversion Repositories HelenOS

Rev

Rev 3471 | Rev 3624 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3471 Rev 3536
Line 42... Line 42...
42
DEFS = -D$(ARCH) -DARCH=\"$(ARCH)\" -DRELEASE=\"$(RELEASE)\" "-DNAME=\"$(NAME)\"" \
42
DEFS = -D$(ARCH) -DARCH=\"$(ARCH)\" -DRELEASE=\"$(RELEASE)\" "-DNAME=\"$(NAME)\"" \
43
	-DKERNEL
43
	-DKERNEL
44
 
44
 
45
GCC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) \
45
GCC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) \
46
	-fno-builtin -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes -Werror \
46
	-fno-builtin -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes -Werror \
47
	-nostdlib -nostdinc
47
	-nostdlib -nostdinc -pipe
48
 
48
 
49
ICC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) \
49
ICC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) \
50
	-fno-builtin -Wall -Wmissing-prototypes -Werror \
50
	-fno-builtin -Wall -Wmissing-prototypes -Werror \
51
	-nostdlib -nostdinc \
51
	-nostdlib -nostdinc \
52
	-wd170
52
	-wd170
Line 363... Line 363...
363
archlinks:
363
archlinks:
364
	ln -sfn ../../arch/$(ARCH)/include/ generic/include/arch
364
	ln -sfn ../../arch/$(ARCH)/include/ generic/include/arch
365
	ln -sfn ../../genarch/include/ generic/include/genarch
365
	ln -sfn ../../genarch/include/ generic/include/genarch
366
 
366
 
367
depend: archlinks
367
depend: archlinks
368
	-makedepend $(DEFS) $(CFLAGS) -f - $(ARCH_SOURCES) $(GENARCH_SOURCES) $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null
368
	-makedepend -f - -- $(DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENARCH_SOURCES) $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null
369
 
369
 
370
arch/$(ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in
370
arch/$(ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in
371
	$(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $< | grep -v "^\#" > $@
371
	$(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $< | grep -v "^\#" > $@
372
 
372
 
373
generic/src/debug/real_map.bin: depend arch/$(ARCH)/_link.ld $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS)
373
generic/src/debug/real_map.bin: depend arch/$(ARCH)/_link.ld $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS)