Rev 3343 | Rev 3493 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 3343 | Rev 3492 | ||
|---|---|---|---|
| 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 148... | Line 148... | ||
| 148 | DEFS += -DCONFIG_VESA_HEIGHT=$(CONFIG_VESA_HEIGHT) |
148 | DEFS += -DCONFIG_VESA_HEIGHT=$(CONFIG_VESA_HEIGHT) |
| 149 | DEFS += -DCONFIG_VESA_BPP=$(CONFIG_VESA_BPP) |
149 | DEFS += -DCONFIG_VESA_BPP=$(CONFIG_VESA_BPP) |
| 150 | endif |
150 | endif |
| 151 | endif |
151 | endif |
| 152 | 152 | ||
| - | 153 | ifeq ($(CONFIG_UDEBUG),y) |
|
| - | 154 | DEFS += -DCONFIG_UDEBUG |
|
| - | 155 | endif |
|
| - | 156 | ||
| 153 | ## Simple detection for the type of the host system |
157 | ## Simple detection for the type of the host system |
| 154 | # |
158 | # |
| 155 | HOST = $(shell uname) |
159 | HOST = $(shell uname) |
| 156 | 160 | ||
| 157 | ## On Solaris, some utilities have slightly different names |
161 | ## On Solaris, some utilities have slightly different names |
| Line 281... | Line 285... | ||
| 281 | generic/src/ipc/ipcrsc.c \ |
285 | generic/src/ipc/ipcrsc.c \ |
| 282 | generic/src/ipc/irq.c \ |
286 | generic/src/ipc/irq.c \ |
| 283 | generic/src/security/cap.c \ |
287 | generic/src/security/cap.c \ |
| 284 | generic/src/sysinfo/sysinfo.c |
288 | generic/src/sysinfo/sysinfo.c |
| 285 | 289 | ||
| - | 290 | ## Udebug interface sources |
|
| - | 291 | # |
|
| - | 292 | ||
| - | 293 | ifeq ($(CONFIG_UDEBUG),y) |
|
| - | 294 | GENERIC_SOURCES += \ |
|
| - | 295 | generic/src/ipc/kbox.c \ |
|
| - | 296 | generic/src/udebug/udebug.c \ |
|
| - | 297 | generic/src/udebug/udebug_ops.c \ |
|
| - | 298 | generic/src/udebug/udebug_ipc.c |
|
| - | 299 | endif |
|
| - | 300 | ||
| 286 | ## Test sources |
301 | ## Test sources |
| 287 | # |
302 | # |
| 288 | 303 | ||
| 289 | ifeq ($(CONFIG_TEST),y) |
304 | ifeq ($(CONFIG_TEST),y) |
| 290 | DEFS += -DCONFIG_TEST |
305 | DEFS += -DCONFIG_TEST |
| Line 348... | Line 363... | ||
| 348 | archlinks: |
363 | archlinks: |
| 349 | ln -sfn ../../arch/$(ARCH)/include/ generic/include/arch |
364 | ln -sfn ../../arch/$(ARCH)/include/ generic/include/arch |
| 350 | ln -sfn ../../genarch/include/ generic/include/genarch |
365 | ln -sfn ../../genarch/include/ generic/include/genarch |
| 351 | 366 | ||
| 352 | depend: archlinks |
367 | depend: archlinks |
| 353 | -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 |
| 354 | 369 | ||
| 355 | arch/$(ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in |
370 | arch/$(ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in |
| 356 | $(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 "^\#" > $@ |
| 357 | 372 | ||
| 358 | 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) |