2 # kqemu for Windows NT Makefile
5 OBJECTS = kqemu-mod-i386-win32.o kqemu-win32.o
6 CROSS_PREFIX=i386-mingw32-
12 all: $(OBJECTS) $(TARGET)
15 rm -f kqemu-win32.o $(TARGET)
18 $(CROSS_PREFIX)gcc $(CFLAGS) -c $< -o $@
21 $(CROSS_PREFIX)windres -i $< -o $@
24 $(CROSS_PREFIX)dlltool -d $< -l $@ --kill-at
27 $(CROSS_PREFIX)gcc -Wl,--base-file,base.tmp -Wl,--entry,_DriverEntry@8 \
28 -nostartfiles -nostdlib -o junk.tmp $(OBJECTS) -lntoskrnl -lhal
30 $(CROSS_PREFIX)dlltool --as=as --dllname $(TARGET) --base-file base.tmp \
33 $(CROSS_PREFIX)gcc -Wl,--subsystem,native -Wl,--image-base,0x10000 \
34 -Wl,--file-alignment,0x1000 -Wl,--section-alignment,0x1000 \
35 -Wl,--entry,_DriverEntry@8 -Wl,--stack,0x40000 -Wl,temp.exp \
36 -mdll -nostartfiles -nostdlib -o $(TARGET) \
37 $(OBJECTS) -lntoskrnl -lhal