diff --git a/kernel/makefile b/kernel/makefile index 4ecf824..aa0fd1c 100644 --- a/kernel/makefile +++ b/kernel/makefile @@ -158,7 +158,7 @@ initclk.obj: initclk.c $(INITHEADERS) $(TARGET).lnk #the string functions for INIT_TEXT iasmsupt.obj: asmsupt.asm $(TARGET).lnk - $(NASM) -D$(COMPILER) -D_INIT -f obj $(NASMFLAGS) -o iasmsupt.obj asmsupt.asm + $(NASM) -D$(COMPILER) -D_INIT -f obj $(NASMFLAGS) -o $@ asmsupt.asm #the printf for INIT_TEXT - yet another special case, this file includes prf.c iprf.obj: iprf.c prf.c $(HDR)portab.h $(TARGET).lnk diff --git a/mkfiles/gcc.mak b/mkfiles/gcc.mak index dea06e2..189c267 100644 --- a/mkfiles/gcc.mak +++ b/mkfiles/gcc.mak @@ -25,7 +25,7 @@ NASMFLAGS+=-DWITHFAT32 endif NASM=$(XNASM) -NASMFLAGS+=-i../hdr/ -DXCPU=$(XCPU) -felf -o $@ +NASMFLAGS+=-i../hdr/ -DXCPU=$(XCPU) -felf CC=ia16-elf-gcc -c CL=ia16-elf-gcc @@ -78,7 +78,7 @@ LINK=$(XLINK) -Tkernel.ld -Wl,-Map,kernel.map -o kernel.exe $(OBJS) -Wl,--whole- # *Implicit Rules* .asm.obj : - $(NASM) -D$(COMPILER) $(NASMFLAGS) $*.asm + $(NASM) -D$(COMPILER) $(NASMFLAGS) -o $@ $< .c.obj : $(CC) $(CFLAGS) $*.c