1all: shell.o cmd.o cmd_help.o cmd_test.o
2
3	ld -b elf64-x86-64 -z muldefs -o $(tmp_output_dir)/shell  $(shell find . -name "*.o") $(shell find $(sys_libs_dir) -name "*.o") -T shell.lds
4
5	objcopy -I elf64-x86-64 -R ".eh_frame" -R ".comment" -O elf64-x86-64 $(tmp_output_dir)/shell $(output_dir)/shell.elf
6shell.o: shell.c
7	$(CC) $(CFLAGS) -c shell.c  -o shell.o
8
9cmd.o: cmd.c
10	$(CC) $(CFLAGS) -c cmd.c  -o cmd.o
11
12cmd_test.o: cmd_test.c
13	$(CC) $(CFLAGS) -c cmd_test.c  -o cmd_test.o
14
15cmd_help.o: cmd_help.c
16	$(CC) $(CFLAGS) -c cmd_help.c  -o cmd_help.o
17