CoolPotOS/apps/init/Makefile
2024-08-14 21:58:29 +08:00

14 lines
328 B
Makefile

OBJS_PACK = out/init.obj
include ../def.mk
default: $(OBJS_PACK)
$(LINK) $(OBJS_PACK) $(BASIC_LIB_C) -o ../../isodir/apps/init.bin
out/%.obj : %.c Makefile
$(C) -c $*.c -o out/$*.obj
out/%.obj : %.cpp Makefile
$(CPP) -c $*.cpp -o out/$*.obj
out/%.obj : %.asm Makefile
nasm -f elf_i386 $*.asm -o out/$*.obj
clean:
rm out/*