4 # You can use this for various things but the most obvious is as a powerful
5 # interactive debugger.
7 # Other modules might use it as well to prototype parts of the kernel, and
8 # to implement policy. Since kjs can read the registry, it is possible to
9 # load libraries from there. Also, I'm adding an easy interface that allows
10 # a module to introduce its own kjs methods.
15 TARGET_BOOTSTRAP = yes
21 TARGET_CFLAGS = -g -D__NTKJS__ -D__NO_INLINE__ -Werror -Wall -I. -Isrc -Iinclude
23 # require os code to explicitly request A/W version of structs/functions
24 TARGET_CFLAGS += -D_DISABLE_TIDENTS
26 TARGET_ASFLAGS = -I $(PATH_TO_TOP)/include
28 TARGET_LFLAGS = -Wl,--file-alignment,0x1000 \
29 -Wl,--section-alignment,0x1000 \
30 -nostartfiles -nostdlib \
34 TARGET_BASE = 0x79f60000
42 ARCH_OBJECTS = ksrc/setjmp.o ksrc/longjmp.o
43 MOD_OBJECTS = ksrc/alloc.o \
62 ORIG_OBJECTS = src/b_array.o \
73 TARGET_OBJECTS = $(ORIG_OBJECTS) $(MOD_OBJECTS) $(ARCH_OBJECTS)
74 DEP_OBJECTS = $(TARGET_OBJECTS)
76 include $(PATH_TO_TOP)/rules.mak
78 include $(TOOLS_PATH)/helper.mk
80 include $(TOOLS_PATH)/depend.mk
83 etags -o $(@D)/TAGS $(@D)/\*.c
85 etags: csr/TAGS dbg/TAGS ldr/TAGS main/TAGS rtl/TAGS stdio/TAGS stdlib/TAGS string/TAGS stubs/TAGS
86 etags -i csr/TAGS -i dbg/TAGS -i ldr/TAGS -i main/TAGS -i rtl/TAGS -i stdio/TAGS -i stdlib/TAGS -i string/TAGS -i stubs/TAGS