ssslady 7794b165ae create project for qemu
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@95 bbd45198-f89e-11dd-88c7-29a3b14d5316
2009-10-14 05:30:39 +00:00

30 lines
466 B
Makefile

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 $^ > $@