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