xref: /DragonOS/user/apps/about/Makefile (revision 7a03b221a6ac2366e535d8992cf055371b3f477a)
1all: about.o
2
3	ld -b elf64-x86-64 -z muldefs -o $(tmp_output_dir)/about  $(shell find . -name "*.o") $(shell find $(sys_libs_dir) -name "*.o") -T about.lds
4
5	objcopy -I elf64-x86-64 -R ".eh_frame" -R ".comment" -O elf64-x86-64 $(tmp_output_dir)/about $(output_dir)/about.elf
6about.o: about.c
7	gcc $(CFLAGS) -c about.c  -o about.o
8