Makefile 388 字节
Newer Older
S
ssslady 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
KERNEL_ROOT=..

include $(KERNEL_ROOT)/config.mk

SRC	= kservice.c clock.c object.c ipc.c timer.c irq.c scheduler.c \
	thread.c idle.c mempool.c mem.c slab.c device.c
OBJ	= $(SRC:.c=.o)

all: $(KERNEL)

$(KERNEL): $(OBJ)
	$(AR) r $@ $?
	$(RANLIB) $@

clean :
	$(RM) *.o *~ *.bak
	$(RM) $(KERNEL)
	$(RM) .depend

dep : .depend

include .depend

.depend: $(SRC)
	$(CC) $(CFLAGS) -M $^ > $@