xref: /DragonOS/user/apps/test_kvm/Makefile (revision 40314b30ab2a7e1fd06a05a00f693e644e446035)
1*40314b30SXiaoye ZhengOLD_LIBC_INSTALL_PATH=$(ROOT_PATH)/bin/sysroot/usr/old_libc
2*40314b30SXiaoye Zheng
3*40314b30SXiaoye Zhengall: main.o
4*40314b30SXiaoye Zheng
5*40314b30SXiaoye Zheng	$(LD) -b elf64-x86-64 -z muldefs -o $(tmp_output_dir)/test_kvm  $(shell find . -name "*.o") $(OLD_LIBC_INSTALL_PATH)/lib/libc.a -T link.lds
6*40314b30SXiaoye Zheng
7*40314b30SXiaoye Zheng	$(OBJCOPY) -I elf64-x86-64 -R ".eh_frame" -R ".comment" -O elf64-x86-64 $(tmp_output_dir)/test_kvm $(output_dir)/test_kvm.elf
8*40314b30SXiaoye Zhengmain.o: main.c
9*40314b30SXiaoye Zheng	$(CC) $(CFLAGS) -c main.c  -o main.o
10