Fix typo in comment
[kqemu.git] / Makefile.winnt
blob88fb655247081f33af7aee8b6aead3ef4fb9e03a
2 # kqemu for Windows NT Makefile
3 # (c) Filip Navara
5 OBJECTS = kqemu-win32.o kqemu-mod-i386-win32.o
6 CROSS_PREFIX=i386-mingw32-
8 TARGET = kqemu.sys
10 CFLAGS = -O2 -I.
12 all: $(TARGET)
14 clean:
15         make -C common clean
16         rm -f kqemu-win32.o $(TARGET)
18 %.o: %.c
19         $(CROSS_PREFIX)gcc $(CFLAGS) -c $< -o $@
21 %.coff: %.rc
22         $(CROSS_PREFIX)windres -i $< -o $@
24 %.a: %.def
25         $(CROSS_PREFIX)dlltool -d $< -l $@ --kill-at
27 $(TARGET): kqemu-win32.o
28         make -C common all
29         $(CROSS_PREFIX)gcc -Wl,--base-file,base.tmp -Wl,--entry,_DriverEntry@8 \
30             -nostartfiles -nostdlib -o junk.tmp $(OBJECTS) -lntoskrnl -lhal
31         rm junk.tmp
32         $(CROSS_PREFIX)dlltool --as=as --dllname $(TARGET) --base-file base.tmp \
33                 --output-exp temp.exp 
34         rm 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
40         rm temp.exp