2024-09-08 22:43:05 +08:00
|
|
|
OBJS_PACK = out/syscall.obj out/print.obj out/string.obj out/libc.obj out/math.obj out/timer.obj out/asmfunc.obj
|
2024-07-14 00:54:27 +08:00
|
|
|
|
|
|
|
|
|
|
|
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/*
|
2024-09-08 22:43:05 +08:00
|
|
|
rm ../libo/libp.a
|