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