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