xref: /DragonOS/user/apps/test_signal/Makefile (revision 2291ffdece1dc5a703602f79f74df8a4854d215b)
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