mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-16 09:56:47 +00:00
8 lines
348 B
Makefile
8 lines
348 B
Makefile
all: main.o
|
|
|
|
$(LD) -b elf64-x86-64 -z muldefs -o $(tmp_output_dir)/test_signal $(shell find . -name "*.o") $(ROOT_PATH)/bin/sysroot/usr/lib/libc.a -T link.lds
|
|
|
|
$(OBJCOPY) -I elf64-x86-64 -R ".eh_frame" -R ".comment" -O elf64-x86-64 $(tmp_output_dir)/test_signal $(output_dir)/test_signal.elf
|
|
main.o: main.c
|
|
$(CC) $(CFLAGS) -c main.c -o main.o
|