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