win-pvdrivers

view xenpci/makefile.mingw @ 347:f31625adca93

add docs on mingw building and modify makefile for private build of w32api link libraries
author Andy Grover <andy.grover@oracle.com>
date Tue Jul 01 15:21:35 2008 -0700 (2008-07-01)
parents 2be08f708250
children fa0a44a14fe3
line source
1 W32API_PATH=/home/agrover/temp/w32api-3.11/lib/ddk
3 CFLAGS = -Wall -L$(W32API_PATH) -I../mingw/inc -I/usr/i586-mingw32msvc/include/ddk/ -I../common/include -I../common/include/public -Wno-multichar -Wno-unknown-pragmas
5 xenpci.sys: xenpci.c xenbus.c evtchn.c gnttbl.c xenpci_fdo.c xenpci_pdo.c memory.c mingw_extras.c
6 i586-mingw32msvc-gcc $(CFLAGS) -o $@ -s -shared -Wl,--entry,_load@8 -nostdlib $^ -lntoskrnl -lhal
8 test.exe: test.c kexec.h
9 i586-mingw32msvc-gcc $(CFLAGS) -o $@ -s $^ -lkernel32
11 all: xenpci.sys