Makefile 466 字节
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 26 27 28 29
KERNEL_ROOT=..

include $(KERNEL_ROOT)/config.mk

SRC		= cmd.c shell.c symbol.c finsh_error.c finsh_node.c finsh_token.c \
	finsh_heap.c finsh_ops.c finsh_var.c finsh_compiler.c finsh_init.c\
	finsh_parser.c finsh_vm.c
OBJ		= $(SRC:.c=.o) 

CFLAGS  += -I.


all: $(LIBFINSH)

$(LIBFINSH): $(OBJ)
	$(AR) -r $@ $?
	$(RANLIB) $@

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

dep : .depend

include .depend

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