2024-07-14 00:54:27 +08:00
|
|
|
OBJS_PACK = out/syscall.obj
|
|
|
|
|
|
|
|
|
|
|
|
default : $(OBJS_PACK)
|
|
|
|
ar rv ../libo/libp.a $(OBJS_PACK)
|
|
|
|
out/%.obj : %.c Makefile
|
2024-08-30 16:12:44 +08:00
|
|
|
gcc -m32 -I../include -nostdlib -fno-builtin -ffreestanding -fno-stack-protector -Qn -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fomit-frame-pointer -march=pentium -O0 -w -c $*.c -o out/$*.obj
|
2024-07-14 00:54:27 +08:00
|
|
|
out/%.obj : %.cpp Makefile
|
|
|
|
gcc -m32 -I../include -nostdinc -nostdlib -fno-builtin -ffreestanding -fno-stack-protector -Qn -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fomit-frame-pointer -march=pentium -O0 -w -c $*.cpp -o out/$*.obj
|
|
|
|
out/%.obj : %.asm Makefile
|
|
|
|
nasm -f elf $*.asm -o out/$*.obj
|
|
|
|
clean:
|
|
|
|
rm out/*
|
|
|
|
rm ../libo/*
|