add file dirwr.c

add entry to generate test executables

svn path=/trunk/; revision=163
This commit is contained in:
jean 1999-01-13 15:37:47 +00:00
parent 3c80407d9b
commit 2b59b2c1c2

View file

@ -3,12 +3,20 @@
%.o: %.asm
$(NASM) $(NFLAGS) $< -o $@
OBJECTS= blockdev.o iface.o dir.o
OBJECTS= blockdev.o iface.o dir.o dirwr.o
all: vfatfsd.o
tests: tstvfat5.bin tstvfat6.bin
vfatfsd.o: $(OBJECTS)
$(LD) $(OBJECTS) -r -o vfatfsd.o
$(NM) --numeric-sort vfatfsd.o > vfatfsd.sym
OBJECTS2 = ../../../apps/common/crt0.o
LIBS= ../../../lib/kernel32/kernel32.a ../../../lib/ntdll/ntdll.a
%.bin: $(OBJECTS) %.o
$(LD) -Ttext 0x10000 $(OBJECTS2) $*.o $(LIBS) -o $*.exe
$(OBJCOPY) -O binary $*.exe $*.bin
include ../../../rules.mak