2024-09-01 20:09:41 +08:00
|
|
|
OBJS_PACK = out/shell.obj out/neofetch.obj
|
2024-07-14 00:54:27 +08:00
|
|
|
include ../def.mk
|
|
|
|
|
|
|
|
default: $(OBJS_PACK)
|
2024-08-31 18:25:48 +08:00
|
|
|
$(LINK) $(OBJS_PACK) $(BASIC_LIB_C) -o ../../isodir/apps/shell.bin
|
2024-07-14 00:54:27 +08:00
|
|
|
out/%.obj : %.c Makefile
|
|
|
|
$(C) -c $*.c -o out/$*.obj
|
|
|
|
out/%.obj : %.cpp Makefile
|
|
|
|
$(CPP) -c $*.cpp -o out/$*.obj
|
|
|
|
out/%.obj : %.asm Makefile
|
2024-08-14 21:58:29 +08:00
|
|
|
nasm -f elf_i386 $*.asm -o out/$*.obj
|
2024-07-14 00:54:27 +08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm out/*
|