14 lines
329 B
Makefile
14 lines
329 B
Makefile
|
OBJS_PACK = out/service.obj
|
||
|
include ../def.mk
|
||
|
|
||
|
default: $(OBJS_PACK)
|
||
|
$(LINK) $(OBJS_PACK) $(BASIC_LIB_C) -o ../../isodir/apps/service.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 $*.asm -o out/$*.obj
|
||
|
|
||
|
clean:
|
||
|
rm out/*
|