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