12 # Programs, flags, etc.
16 CPPFLAGS
=-I
$i -I
$a/include
17 CFLAGS
=$(CPROFILE
) $(CPPFLAGS
) $(EXTRA_OPTS
)
20 # first-stage, arch-dependent startup code
23 OBJS
= start.o table.o main.o proc.o \
24 system.o clock.o utility.o debug.o profile.o interrupt.o
26 ARCHLIB
= $a/$(ARCH
).a
31 kernel build
install: $(OBJS
)
32 cd system
&& $(MAKE
) $@
34 $(LD
) $(CFLAGS
) $(LDFLAGS
) -o kernel
$(HEAD
) $(OBJS
) \
35 $(SYSTEM
) $(ARCHLIB
) $(LIBS
)
39 cd system
&& $(MAKE
) -$(MAKEFLAGS
) $@
40 cd
$a && $(MAKE
) -$(MAKEFLAGS
) $@
41 rm -f
*.a
*.o
*~
*.bak kernel
44 cd system
&& $(MAKE
) -$(MAKEFLAGS
) $@
46 mkdep
"$(CC) -E $(CPPFLAGS)" *.c
> .depend
50 $(CC
) $(CFLAGS
) -c
-o
$@
$<
52 # Include generated dependencies.